Skip to content

Commit 9864713

Browse files
committed
Create conda environments at build time
1 parent dc6b100 commit 9864713

6 files changed

Lines changed: 41 additions & 5 deletions

File tree

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,19 @@ RUN curl -L "https://github.com/conda-forge/miniforge/releases/latest/download/M
99

1010
# Make conda available in PATH
1111
ENV PATH="/nextstrain/miniforge/bin:$PATH"
12+
13+
# Create conda environments
14+
COPY envs/csvtk.yaml /tmp/
15+
RUN conda env create --name csvtk --file /tmp/csvtk.yaml && rm /tmp/csvtk.yaml
16+
17+
COPY envs/nextstrain.yaml /tmp/
18+
RUN conda env create --name nextstrain --file /tmp/nextstrain.yaml && rm /tmp/nextstrain.yaml
19+
20+
COPY envs/snippy.yaml /tmp/
21+
RUN conda env create --name snippy --file /tmp/snippy.yaml && rm /tmp/snippy.yaml
22+
23+
COPY envs/tb-profiler.yaml /tmp/
24+
RUN conda env create --name tb-profiler --file /tmp/tb-profiler.yaml && rm /tmp/tb-profiler.yaml
25+
26+
COPY envs/tsv-utils.yaml /tmp/
27+
RUN conda env create --name tsv-utils --file /tmp/tsv-utils.yaml && rm /tmp/tsv-utils.yaml

envs/csvtk.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
channels:
2+
- conda-forge
3+
dependencies:
4+
- csvtk
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
name: env
21
channels:
3-
- bioconda
42
- conda-forge
3+
- bioconda
54
dependencies:
6-
- sra-tools
7-
- snippy
8-
- tb-profiler=6
5+
- augur=27.1.0

envs/snippy.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
channels:
2+
- conda-forge
3+
- bioconda
4+
dependencies:
5+
- sra-tools=3.2.1
6+
- snippy=4.6.0=hdfd78af_6
7+
- awscli

envs/tb-profiler.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
channels:
2+
- conda-forge
3+
- bioconda
4+
dependencies:
5+
- sra-tools=3.2.1
6+
- tb-profiler=6.6.3-0
7+
- awscli

envs/tsv-utils.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
channels:
2+
- conda-forge
3+
- bioconda
4+
dependencies:
5+
- tsv-utils

0 commit comments

Comments
 (0)