-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This changes how the docker image is built. Changes include: - Change from installing the viral-ngs conda package (easy-deploy-viral-ngs.sh setup) to something closer to setup-git (that uses the current working copy instead of cloning fresh from github). - Divorce the conda build & deploy steps from the docker build & deploy -- put each in their own separate space in the Travis build matrix and cut end-to-end build time in half. - Separate out basic infrastructural setup in the Dockerfile to a separate repository such that this Dockerfile only installs the components specific to viral-ngs and its dependencies. This also reduces build time by caching all of the apt-get steps. - Move Dockerfile to root of git repo. This allows for a direct build of either the github URI or the working copy (e.g. docker build . or docker build https://github.com/broadinstitute/viral-ngs.git).
- Loading branch information
Showing
15 changed files
with
142 additions
and
957 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,4 @@ | ||
*.pyc | ||
__pycache__ | ||
tools/conda-cache | ||
tools/conda-tools |
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,40 @@ | ||
FROM broadinstitute/viral-baseimage:0.1.2 | ||
|
||
LABEL maintainer "Chris Tomkins-Tinch <[email protected]>" | ||
|
||
# to build: | ||
# docker build --rm . | ||
# to run: | ||
# Download licensed copies of GATK and Novoalign to the host machine (for Linux-64) | ||
# export GATK_PATH=/path/to/gatk/ | ||
# export NOVOALIGN_PATH=/path/to/novoalign/ | ||
# docker run --rm -v $GATK_PATH:/gatk -v $NOVOALIGN_PATH:/novoalign -v /path/to/dir/on/host:/user-data -t -i <image_ID> "<command>.py subcommand" | ||
# if you receive a "no space on device" error: | ||
# docker kill $(docker ps -a -q) | ||
# docker rm $(docker ps -a -q) | ||
# docker rmi $(docker images -q) | ||
# docker volume rm $(docker volume ls -qf dangling=true) | ||
|
||
# DEBIAN_FRONTEND: Silence some warnings about Readline. Read more over here: | ||
# https://github.com/phusion/baseimage-docker/issues/58 | ||
ENV DEBIAN_FRONTEND=noninteractive INSTALL_PATH="/opt/viral-ngs" VIRAL_NGS_PATH="/opt/viral-ngs/source" | ||
|
||
# copy basic files | ||
COPY docker/env_wrapper.sh docker/install-viral-ngs.sh easy-deploy-script/easy-deploy-viral-ngs.sh $INSTALL_PATH/ | ||
RUN chmod a+x $INSTALL_PATH/*.sh | ||
|
||
# Prepare viral-ngs user and installation directory | ||
COPY . $VIRAL_NGS_PATH/ | ||
WORKDIR $INSTALL_PATH | ||
RUN ./install-viral-ngs.sh | ||
|
||
# Volume setup: make external tools and data available within the container | ||
VOLUME ["/gatk", "/novoalign", "/user-data"] | ||
# DEBIAN_FRONTEND: Silence some warnings about Readline. Read more over here: | ||
# https://github.com/phusion/baseimage-docker/issues/58 | ||
ENV GATK_PATH="/gatk" NOVOALIGN_PATH="/novoalign" VIRAL_NGS_DOCKER_DATA_PATH="/user-data" DEBIAN_FRONTEND=teletype | ||
|
||
# It's a wrapper script to load the viral-ngs environment via the easy-deploy script | ||
# and then run any commands desired | ||
ENTRYPOINT ["/opt/viral-ngs/env_wrapper.sh"] | ||
CMD ["/bin/bash"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.