-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #301 from CSCfi/feature/update-dev-build
This commit adds the use of .env file for `docker-compose up` so that developer's own environment variables would not be accidentally pushed to the repository. Also makes it easy to handle your own development environment. ### Changes Made Docker-compose and docker-compose-tls files changed to use variables from .env file. Adds .env.example file to copy it to user's local .env file. Updates README with instructions. Updates .gitignore to ignore .env file Updates github workflow commands on docker-compose with env file flag Additional changes: Update README with instructions on Python requirements. Update pre-commit script to execute tests even if .tox folder does not exist.
- Loading branch information
Showing
7 changed files
with
107 additions
and
48 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,33 @@ | ||
# authentication | ||
AAI_CLIENT_SECRET=secret_must_be_long | ||
AAI_CLIENT_ID=aud2 | ||
ISS_URL=http://mockauth:8000 | ||
AUTH_URL=http://localhost:8000/authorize | ||
OIDC_URL=http://mockauth:8000 | ||
AUTH_REFERER=http://mockauth:8000 | ||
JWK_URL=http://mockauth:8000/keyset | ||
|
||
# app urls | ||
BASE_URL=http://localhost:5430 | ||
# change to http://frontend:3000 if started using docker-compose for frontend | ||
REDIRECT_URL=http://localhost:3000 | ||
|
||
# logging | ||
LOG_LEVEL=DEBUG | ||
|
||
# database | ||
MONGO_HOST=database:27017 | ||
MONGO_DATABASE=default | ||
MONGO_AUTHDB=admin | ||
MONGO_INITDB_ROOT_PASSWORD=admin | ||
MONGO_INITDB_ROOT_USERNAME=admin | ||
MONGO_SSL=true | ||
MONGO_SSL_CA=/tls/cacert | ||
MONGO_SSL_CLIENT_KEY=/tls/key | ||
MONGO_SSL_CLIENT_CERT=/tls/cert | ||
|
||
# doi | ||
DOI_API=http://mockdoi:8001/dois | ||
DOI_PREFIX=10.xxxx | ||
DOI_USER=user | ||
DOI_KEY=key |
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 |
---|---|---|
|
@@ -93,6 +93,7 @@ venv/ | |
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
.env | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
|
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