-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MNT] Created a complete test environment with docker compose (#325)
* Added submodules to prettierignore Co-authored-by: Sebastian Urchs <[email protected]> * Added `recipes` and `neurobagel_examples` as submodules * Added docker-compose file * Set up development docker compose with required services * Updated README.md with instruction for docker compose * Updated `dependabot.yml` * Addressed suggested changes from PR review --------- Co-authored-by: Sebastian Urchs <[email protected]>
- Loading branch information
Showing
5 changed files
with
85 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[submodule "recipes"] | ||
path = recipes | ||
url = https://github.com/neurobagel/recipes.git | ||
[submodule "neurobagel_examples"] | ||
path = neurobagel_examples | ||
url = https://github.com/neurobagel/neurobagel_examples.git |
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 |
---|---|---|
|
@@ -3,3 +3,7 @@ CHANGELOG.md | |
|
||
# Ignore workflow files | ||
.github/ | ||
|
||
# Ignore our submodules | ||
recipes | ||
neurobagel_examples |
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
services: | ||
api: | ||
extends: | ||
file: recipes/docker-compose.yml | ||
service: api | ||
profiles: | ||
- 'test' | ||
environment: | ||
NB_GRAPH_USERNAME: 'DBUSER' | ||
NB_RETURN_AGG: false | ||
volumes: | ||
- './recipes/scripts/api_entrypoint.sh:/usr/src/api_entrypoint.sh' | ||
entrypoint: | ||
- '/usr/src/api_entrypoint.sh' | ||
secrets: | ||
- db_user_password | ||
|
||
graph: | ||
extends: | ||
file: recipes/docker-compose.yml | ||
service: graph | ||
profiles: | ||
- 'test' | ||
volumes: | ||
- 'graphdb_home:/opt/graphdb/home' | ||
- './recipes/scripts:/usr/src/neurobagel/scripts' | ||
- './recipes/vocab:/usr/src/neurobagel/vocab' | ||
- './neurobagel_examples/data-upload/pheno-bids-derivatives-output:/data' | ||
environment: | ||
NB_GRAPH_USERNAME: 'DBUSER' | ||
secrets: | ||
- db_admin_password | ||
- db_user_password | ||
|
||
federation: | ||
extends: | ||
file: recipes/docker-compose.yml | ||
service: federation | ||
profiles: | ||
- 'test' | ||
volumes: | ||
- './recipes/local_nb_nodes.json:/usr/src/local_nb_nodes.json:ro' | ||
|
||
secrets: | ||
db_admin_password: | ||
file: ./recipes/secrets/NB_GRAPH_ADMIN_PASSWORD.txt | ||
db_user_password: | ||
file: ./recipes/secrets/NB_GRAPH_PASSWORD.txt | ||
|
||
volumes: | ||
graphdb_home: |