forked from getredash/redash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make frontend build in Docker image optional (getredash#4879)
* Add build arg to Dockerfile to control if we should build frontend assets * Move more env settings into the shared one. * Use build arg in docker-compose to skip frontend build. * CirlceCI: Skip building frontend assets in backend tests * Create dummy template files * Expand file names manually. * Add build arg to skip dev dependencies. * Update Dockerfile * Reverse logic of skip_dev_deps to what it should be.
- Loading branch information
Showing
4 changed files
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
# This configuration file is for the **development** setup. | ||
# For a production example please refer to getredash/setup repository on GitHub. | ||
version: '2' | ||
version: "2" | ||
x-redash-service: &redash-service | ||
build: . | ||
build: | ||
context: . | ||
args: | ||
skip_frontend_build: "true" | ||
volumes: | ||
- .:/app | ||
x-redash-environment: &redash-environment | ||
REDASH_LOG_LEVEL: "INFO" | ||
REDASH_REDIS_URL: "redis://redis:6379/0" | ||
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres" | ||
REDASH_RATELIMIT_ENABLED: "false" | ||
REDASH_MAIL_DEFAULT_SENDER: "[email protected]" | ||
REDASH_MAIL_SERVER: "email" | ||
services: | ||
|
@@ -22,9 +28,6 @@ services: | |
environment: | ||
<<: *redash-environment | ||
PYTHONUNBUFFERED: 0 | ||
REDASH_LOG_LEVEL: "INFO" | ||
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres" | ||
REDASH_RATELIMIT_ENABLED: "false" | ||
scheduler: | ||
<<: *redash-service | ||
command: dev_scheduler | ||
|
@@ -40,8 +43,6 @@ services: | |
environment: | ||
<<: *redash-environment | ||
PYTHONUNBUFFERED: 0 | ||
REDASH_LOG_LEVEL: "INFO" | ||
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres" | ||
redis: | ||
image: redis:3-alpine | ||
restart: unless-stopped | ||
|