generated from microsoft/python-package-template
-
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.
- Loading branch information
1 parent
0f59b15
commit f05e352
Showing
7 changed files
with
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Use the official Miniconda3 image as a parent image | ||
FROM continuumio/miniconda3 | ||
|
||
# Set the working directory in the container | ||
WORKDIR /app | ||
|
||
# Copy the environment.yml file into the container at /app | ||
COPY environment.yml /app/environment.yml | ||
|
||
# Create the environment and activate it | ||
RUN conda env create -f environment.yml | ||
|
||
# Make RUN commands use the new environment | ||
SHELL ["conda", "run", "-n", "sr2silo", "/bin/bash", "-c"] | ||
|
||
# Copy the current directory contents into the container at /app | ||
COPY . /app | ||
|
||
# Install the sr2silo package | ||
RUN pip install -e . | ||
|
||
# Make port 80 available to the world outside this container | ||
EXPOSE 80 | ||
|
||
# Define environment variable | ||
ENV NAME sr2silo | ||
|
||
# Ensure the environment is activated and run vp_deamon.py when the container launches | ||
ENTRYPOINT ["bash", "-c", "source activate sr2silo && python scripts/vp_daemon.py --config /app/scripts/vp_config.json"] |
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,4 @@ | ||
SAMPLE_DIR=../../../data/sr2silo/daemon_test/samples | ||
TIMELINE_FILE=../../../data/sr2silo/daemon_test/timeline.tsv | ||
DATABASE_DIR=database | ||
BACKUP_DIR=backups |
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,22 @@ | ||
version: '3.8' | ||
|
||
services: | ||
sr2silo: | ||
build: . | ||
volumes: | ||
- ${SAMPLE_DIR}:/app/samples | ||
- ${TIMELINE_FILE}:/app/timeline.tsv | ||
- ${DATABASE_DIR}:/app/database | ||
- ${BACKUP_DIR}:/app/backups | ||
- ./scripts/vp_config.json:/app/scripts/vp_config.json | ||
environment: | ||
- PYTHONUNBUFFERED=1 | ||
- SAMPLE_DIR=${SAMPLE_DIR} | ||
- TIMELINE_FILE=${TIMELINE_FILE} | ||
- DATABASE_FILE=/app/database/processed_files.db | ||
- BACKUP_DIR=${BACKUP_DIR} | ||
command: python scripts/vp_daemon.py --config /app/scripts/vp_config.json | ||
|
||
volumes: | ||
database: | ||
backups: |
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,9 +1,9 @@ | ||
{ | ||
"sample_dir": "../../../data/sr2silo/deamon_test/samples/", | ||
"result_dir": "deamon_test/results/", | ||
"timeline_file": "../../../data/sr2silo/deamon_test/timeline.tsv", | ||
"sample_dir": "/app/samples", | ||
"result_dir": "daemon_test/results/", | ||
"timeline_file": "/app/timeline.tsv", | ||
"nextclade_reference": "sars-cov-2", | ||
"database_file": "processed_files.db", | ||
"backup_dir": "backups/", | ||
"deamon_interval_m": 1 | ||
} | ||
} |
File renamed without changes.