-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy pathDockerfile
More file actions
64 lines (48 loc) · 2.2 KB
/
Copy pathDockerfile
File metadata and controls
64 lines (48 loc) · 2.2 KB
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
FROM mambaorg/micromamba:2.0.5-ubuntu22.04 AS app
ARG AUTOCYCLER_VER="0.2.1"
USER root
WORKDIR /
LABEL base.image="mambaorg/micromamba:2.0.5-ubuntu22.04"
LABEL dockerfile.version="1"
LABEL software="Autocycler"
LABEL software.version="${AUTOCYCLER_VER}"
LABEL description="generating consensus long-read assemblies for bacterial genomes"
LABEL website="https://github.com/rrwick/Autocycler"
LABEL license="https://github.com/rrwick/Autocycler/blob/main/LICENSE"
LABEL maintainer="Erin Young"
LABEL maintainer.email="eriny@utah.gov"
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
ca-certificates \
procps && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
# get conda environment file for extra tools
RUN wget -q https://github.com/rrwick/Autocycler/archive/refs/tags/v${AUTOCYCLER_VER}.tar.gz && \
tar -xvf v${AUTOCYCLER_VER}.tar.gz && \
rm v${AUTOCYCLER_VER}.tar.gz && \
micromamba env create --file /Autocycler-${AUTOCYCLER_VER}/scripts/environment.yml --name autocycler && \
micromamba clean -a -f -y && \
rm -rf /Autocycler-${AUTOCYCLER_VER} && \
mkdir /data
# install autocycler and helper scripts
WORKDIR /usr/local/bin
RUN wget https://github.com/rrwick/Autocycler/releases/download/v${AUTOCYCLER_VER}/autocycler-linux-x86_64-musl-v${AUTOCYCLER_VER}.tar.gz && \
tar -vxf autocycler-linux-x86_64-musl-v${AUTOCYCLER_VER}.tar.gz && \
rm autocycler-linux-x86_64-musl-v${AUTOCYCLER_VER}.tar.gz && \
wget https://github.com/rrwick/Autocycler/releases/download/v${AUTOCYCLER_VER}/autocycler-helper-scripts-v${AUTOCYCLER_VER}.tar.gz && \
tar -vxf autocycler-helper-scripts-v${AUTOCYCLER_VER}.tar.gz && \
rm autocycler-helper-scripts-v${AUTOCYCLER_VER}.tar.gz
ENV PATH="/opt/conda/envs/autocycler/bin/:/opt/conda/bin/:${PATH}" \
LC_ALL=C.UTF-8
CMD [ "autocycler", "--help" ]
WORKDIR /data
FROM app AS test
WORKDIR /test
RUN autocycler --help && \
autocycler --version
COPY test.sh .
RUN wget https://github.com/rrwick/Autocycler/releases/download/v0.1.0/autocycler-demo-dataset.tar && \
tar -vxf autocycler-demo-dataset.tar && \
bash test.sh && \
head autocycler_out/consensus_assembly.fasta
RUN micromamba list -n autocycler