-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update flu config file for master docker deployment * Remove example_data_folder field from config, consolidate dev and prod config files * Separate docker deployments for gisaid/genbank flu sites * formatting * More serotype consolidation, add H5, H7, and H9 * switch to real data folder * Robustness to references with no data (i.e., missing serotypes). really only useful for test datasets * Annotate more possible fields to download from NCBI virus * Backfill missing isolate IDs (set_id) with strain and then, as a last resort, Accession ID. Seems like recent sequences prefer to use strain rather than set_id * Rename ingest files to conform with main workflow inputs (make it the same as other workflows) * Ignore flu genbank data folder
- Loading branch information
Showing
22 changed files
with
288 additions
and
107 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
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
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# docker compose -f docker-compose.flu.genbank.yml up -d | ||
name: pathmut-flu-genbank | ||
version: "3.7" | ||
|
||
services: | ||
server: | ||
restart: always | ||
build: | ||
context: ./ | ||
dockerfile: ./services/server/dev.Dockerfile | ||
environment: | ||
- LOGINS=user1:pass1,user2:pass2 | ||
- FLASK_APP=cg_server/main.py | ||
- FLASK_ENV=development | ||
- CONFIGFILE=/opt/config/config_flu_genbank.yaml | ||
- CONSTANTSFILE=/opt/constants/defs.json | ||
- DATA_PATH=/data | ||
- STATIC_DATA_PATH=/opt/static_data | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=cg | ||
- POSTGRES_DB=flu_genbank_dev | ||
- POSTGRES_HOST=db | ||
- POSTGRES_PORT=5432 | ||
- POSTGRES_MAX_CONN=20 | ||
- FRONTEND_PORT=3002 | ||
# command: "gunicorn --bind :5003 --workers 1 --threads 8 --timeout 0 cg_server.main:app" | ||
command: "flask run --host 0.0.0.0 --port=5003" | ||
ports: | ||
- 5003:5003 | ||
working_dir: /app | ||
volumes: | ||
- ./services/server:/app:cached # Mount the server python code at run-time, so that the flask development server can refresh on changes | ||
- ./example_data_genbank/flu:/data:cached # Mount the data at run-time (for database seeding only). Should prevent sending all the data over unnecessarily at build-time | ||
- ./src/constants:/opt/constants:cached | ||
- ./config:/opt/config:cached | ||
- ./static_data/flu:/opt/static_data:cached | ||
depends_on: | ||
- db | ||
db: | ||
image: postgres:12-alpine | ||
environment: | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=cg | ||
- POSTGRES_DB=flu_genbank_dev | ||
- POSTGRES_HOST=db | ||
- POSTGRES_PORT=5432 | ||
- POSTGRES_MAX_CONN=20 | ||
command: "postgres -c 'config_file=/etc/postgresql/postgresql.conf'" | ||
volumes: | ||
- postgres_data:/var/lib/postgresql/data/ | ||
- ./services/postgres/postgres.conf:/etc/postgresql/postgresql.conf # Custom config | ||
ports: # Expose 5432 so we can use DB administration tools | ||
- 5432:5432 | ||
frontend: | ||
restart: always | ||
build: | ||
context: ./ | ||
dockerfile: ./services/frontend/Dockerfile | ||
environment: | ||
CONFIGFILE: /app/config/config_flu_genbank.yaml | ||
working_dir: /app | ||
volumes: | ||
- ./src:/app/src:cached # Mount the JS code at run-time, so the babel server can recompile the app on file changes | ||
- ./config:/app/config:cached | ||
- ./static_data:/app/static_data:cached | ||
command: "npm start -s" | ||
ports: | ||
- 3002:3000 | ||
|
||
volumes: | ||
postgres_data: |
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
Oops, something went wrong.