-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Streamline environment bootstrapping, move contents of
docker/
to t…
…op level (#510) In this commit, we: - consolidate sources of local development config (`.env.dist` `local_dev.env`) to one `.env.example`, which is copied to `.env` with `Make` - move contents of `docker/` to top level, which allows us to remove some config options with Docker commands - delete `docker/log_config.json`, which appeared to be unused
- Loading branch information
1 parent
d475774
commit b037a13
Showing
14 changed files
with
59 additions
and
117 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This file is for settings that are specific to your local development | ||
# environment | ||
|
||
# Linux users may want to set these to their own UID and GID | ||
# so that files created in the container will have the same permissions | ||
# id -u and id -g may return the proper values | ||
# This is unnecessary for Docker Desktop for Mac or Windows | ||
# CTMS_UID= | ||
# CTMS_GID= | ||
|
||
# Docker | ||
# Set this to always call docker-compose run with --service-ports in the Makefile | ||
# MK_WITH_SERVICE_PORTS=--service-ports | ||
# Set this to skip calling "docker-compose down" after "make tests" | ||
# MK_KEEP_DOCKER_UP=1 | ||
|
||
# Logging | ||
CTMS_USE_MOZLOG=False | ||
CTMS_LOGGING_LEVEL=INFO | ||
CTMS_LOG_SQLALCHEMY=False | ||
|
||
# Change the webserver port | ||
# PORT=8000 | ||
|
||
# Database | ||
# The host for this URL is so that services running outside of docker | ||
# (e.g. pytest) can use the database. It's overridden in docker-compose.yaml | ||
# for use with `docker-compose up` | ||
CTMS_DB_URL=postgresql://postgres@localhost:5432/postgres | ||
|
||
# Encryption key for OAuth2 and other hashes | ||
CTMS_SECRET_KEY=dev_only_secret_key_not_for_production | ||
|
||
# Webserver protocol and domain | ||
CTMS_SERVER_PREFIX=http://localhost:8000 | ||
|
||
# Reload server when files are changed | ||
CTMS_APP_RELOAD=True |
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,6 +1,7 @@ | ||
.bash_history | ||
.cache | ||
.coverage | ||
.DS_STORE | ||
.env | ||
.idea/ | ||
.mypy_cache/ | ||
|
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
File renamed without changes.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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