-
Notifications
You must be signed in to change notification settings - Fork 128
/
Copy pathDockerfile
62 lines (51 loc) · 2.03 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# FROM defines the base docker image. This command has to come first in the file
# The 'as' keyword lets you name the folowing stage. We use `app` for the production image
FROM --platform=linux/x86_64 ubuntu:focal as app
# ARG sets environment variables during the build stage
ARG IRMA_VER="1.1.3"
# LABEL instructions tag the image with metadata that might be important to the user
# Optional, but highly recommended
LABEL base.image="ubuntu:xenial"
LABEL dockerfile.version="4"
LABEL software="IRMA"
LABEL software.version=$IRMA_VER
LABEL description="IRMA was designed for the robust assembly, variant calling, and phasing of highly variable RNA viruses. Currently IRMA is deployed with modules for influenza, ebolavirus and coronavirus."
LABEL website="https://wonder.cdc.gov/amd/flu/irma/"
LABEL license="https://wonder.cdc.gov/amd/flu/irma/disclaimer.html"
LABEL maintainer="John Arnn"
LABEL maintainer.email="[email protected]"
# RUN executes code during the build
# Install dependencies via apt-get or yum if using a centos or fedora base
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
perl \
default-jre \
apt-transport-https \
ca-certificates \
gnupg \
libcurl4-openssl-dev \
libssl-dev \
libxml2 \
libxml2-dev \
libncurses5 \
wget && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
# IRMA Needs R
RUN apt-get update && apt-get -y upgrade && apt-get -y install r-base \
r-base-dev
# install IRMA
RUN wget https://wonder.cdc.gov/amd/flu/irma/flu-amd-202311.zip && \
unzip flu-amd-202311.zip && \
rm flu-amd-202311.zip && \
chmod 755 -R flu-amd && \
mkdir data
# set the environment
ENV PATH="${PATH}:/flu-amd"
# WORKDIR sets working directory
WORKDIR /data
FROM app as test
RUN cd /flu-amd/tests && \
./test_run.sh
RUN wget ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR179/072/SRR17940172/SRR17940172_1.fastq.gz && \
wget ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR179/072/SRR17940172/SRR17940172_2.fastq.gz
RUN IRMA FLU SRR17940172_1.fastq.gz SRR17940172_2.fastq.gz SRR17940172