forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
65 lines (54 loc) · 2.1 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
63
64
65
FROM mambaorg/micromamba:1.3.1 as app
# Version arguments
# ARG variables only persist during build time
ARG POPPUNK_VERSION="2.6.0"
# build and run as root users since micromamba image has 'mambauser' set as the $USER
USER root
# set workdir to default for building; set to /data at the end
WORKDIR /
LABEL base.image="mambaorg/micromamba:1.3.1"
LABEL dockerfile.version="2"
LABEL software="PopPUNK"
LABEL software.version=${POPPUNK_VERSION}
LABEL description="POPulation Partitioning Using Nucleotide Kmers"
LABEL website="https://github.com/bacpop/PopPUNK"
LABEL license="https://github.com/bacpop/PopPUNK/blob/master/LICENSE"
LABEL maintainer="Curtis Kapsak"
LABEL maintainer.email="[email protected]"
LABEL maintainer2="Harry Hung"
LABEL maintainer2.email="[email protected]"
# install dependencies; cleanup apt garbage
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
ca-certificates \
procps && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
# Create PopPUNK conda environment called poppunk-env from bioconda recipe
# clean up conda garbage
RUN micromamba create -n poppunk-env -c conda-forge -c bioconda -c defaults poppunk=${POPPUNK_VERSION} && \
micromamba clean -a -y
# set the environment, put new conda env in PATH by default; set locales to UTF-8
ENV PATH="/opt/conda/envs/poppunk-env/bin:${PATH}" \
LC_ALL=C.UTF-8
# set working directory to /data
WORKDIR /data
# new base for testing
FROM app as test
# so that mamba/conda env is active when running below commands
ENV ENV_NAME="poppunk-env"
ARG MAMBA_DOCKERFILE_ACTIVATE=1
# print out various help options and version
RUN poppunk --help && \
poppunk_assign --help && \
poppunk_visualise --help && \
poppunk_mst --help && \
poppunk_references --help && \
poppunk_info --help && \
poppunk_mandrake --help && \
poppunk --version
# Download 100 S. Pneumo assemblies from GPS Public Data on ENA
# Build PopPUNK database from the assemblies
# Assign clusters on the same assemblies using the built database
# Compare the database clusters and assigned clusters of the assemblies
COPY test.sh ftps.txt /data/
RUN bash test.sh