Created
February 6, 2019 19:04
-
-
Save seandavi/410cfbbed6b8db0b4928eb36236e7dda to your computer and use it in GitHub Desktop.
Dockerfile for blog post on using GCR. Builds SRA-toolkit with dbGaP access as an example
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
FROM ubuntu:18.04 | |
RUN apt-get update | |
RUN apt-get install -y wget | |
# We do things this way to keep the docker image | |
# size down. See https://nickjanetakis.com/blog/docker-tip-3-chain-your-docker-run-instructions-to-shrink-your-images | |
RUN wget http://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/2.9.2/sratoolkit.2.9.2-ubuntu64.tar.gz \ | |
&& tar -xvzf sratoolkit.2.9.2-ubuntu64.tar.gz \ | |
&& rm sratoolkit.2.9.2-ubuntu64.tar.gz | |
# Add the new binaries to the path | |
ENV PATH="${PATH}:/sratoolkit.2.9.2-ubuntu64/bin/" | |
# Copy the local key file into the container | |
COPY prj_16049.ngc . | |
# And import the key to allow dbGaP downloads | |
RUN vdb-config --import prj_16049.ngc | |
# message will report that the project directory | |
# is /root/ncbi/dbGaP-16049. All downloads for | |
# controlled-access files must originate in that | |
# directory. | |
# Example: | |
# | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment