Skip to content

Commit e9c0b7b

Browse files
committed
🚧 specify packages in command, use chmod on tb-profiler/share/
1 parent 4197463 commit e9c0b7b

6 files changed

Lines changed: 15 additions & 35 deletions

File tree

β€ŽDockerfileβ€Ž

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,24 @@ ENV PATH="/nextstrain/miniforge/bin:$PATH"
1414
# Initialize conda for interactive shell use
1515
RUN conda init bash
1616

17-
# FIXME: is `umask 000` ok to use here?
18-
# This allows commands like `tb-profiler update_tbdb` to write to
19-
# /nextstrain/miniforge/envs/tb-profiler/share/tbprofiler/
2017

2118
# Create conda environments
22-
COPY --chown=nextstrain:nextstrain envs/snippy.yaml /tmp/
23-
RUN umask 000 && conda env create --name snippy --file /tmp/snippy.yaml && rm /tmp/snippy.yaml
2419

25-
COPY --chown=nextstrain:nextstrain envs/tb-profiler.yaml /tmp/
26-
RUN umask 000 && conda env create --name tb-profiler --file /tmp/tb-profiler.yaml && rm /tmp/tb-profiler.yaml
20+
RUN conda create -y --name snippy \
21+
-c conda-forge -c bioconda \
22+
sra-tools=3.2.1 \
23+
snippy=4.6.0 \
24+
&& conda clean -afy \
25+
26+
# chmod allows `tb-profiler update_tbdb` to write to
27+
# /nextstrain/miniforge/envs/tb-profiler/share/tbprofiler/
28+
RUN conda create -y --name tb-profiler \
29+
-c conda-forge -c bioconda \
30+
sra-tools=3.2.1 \
31+
tb-profiler=6.6.3-0 \
32+
&& conda clean -afy \
33+
&& chmod -R u+w /nextstrain/miniforge/envs/tb-profiler/share/
34+
2735

2836
# Switch back to root. The entrypoint will drop to nextstrain:nextstrain as
2937
# necessary when a container starts.

β€Ženvs/csvtk.yamlβ€Ž

Lines changed: 0 additions & 4 deletions
This file was deleted.

β€Ženvs/nextstrain.yamlβ€Ž

Lines changed: 0 additions & 5 deletions
This file was deleted.

β€Ženvs/snippy.yamlβ€Ž

Lines changed: 0 additions & 7 deletions
This file was deleted.

β€Ženvs/tb-profiler.yamlβ€Ž

Lines changed: 0 additions & 7 deletions
This file was deleted.

β€Ženvs/tsv-utils.yamlβ€Ž

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
Β (0)