Skip to content

Commit

Permalink
Add procps to Conda-based container builds
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Sep 21, 2023
1 parent f26d7b8 commit 2537882
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {

dependencies {
implementation 'io.seqera:wave-api:0.5.0'
implementation 'io.seqera:wave-utils:0.7.4'
implementation 'io.seqera:wave-utils:0.7.5'
implementation 'info.picocli:picocli:4.6.1'
implementation 'com.squareup.moshi:moshi:1.14.0'
implementation 'com.squareup.moshi:moshi-adapters:1.14.0'
Expand Down
28 changes: 17 additions & 11 deletions app/src/test/groovy/io/seqera/wavelit/AppCondaOptsTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class AppCondaOptsTest extends Specification {
FROM mambaorg/micromamba:1.4.9
COPY --chown=$MAMBA_USER:$MAMBA_USER conda.yml /tmp/conda.yml
RUN micromamba install -y -n base -f /tmp/conda.yml \\
&& micromamba install -y -n base conda-forge::procps-ng \\
&& micromamba clean -a -y
USER root
'''.stripIndent()
Expand All @@ -138,6 +139,7 @@ class AppCondaOptsTest extends Specification {
FROM mambaorg/micromamba:1.4.9
COPY --chown=$MAMBA_USER:$MAMBA_USER conda.yml /tmp/conda.yml
RUN micromamba install -y -n base -f /tmp/conda.yml \\
&& micromamba install -y -n base conda-forge::procps-ng \\
&& micromamba clean -a -y
USER root
'''.stripIndent()
Expand Down Expand Up @@ -166,8 +168,8 @@ class AppCondaOptsTest extends Specification {
new String(req.containerFile.decodeBase64()) == '''\
FROM mambaorg/micromamba:1.4.9
RUN \\
micromamba install -y -n base -c seqera -c bioconda -c conda-forge -c defaults \\
-f https://host.com/file-lock.yml \\
micromamba install -y -n base -c seqera -c bioconda -c conda-forge -c defaults -f https://host.com/file-lock.yml \\
&& micromamba install -y -n base conda-forge::procps-ng \\
&& micromamba clean -a -y
USER root
'''.stripIndent()
Expand Down Expand Up @@ -197,6 +199,7 @@ class AppCondaOptsTest extends Specification {
FROM my/mamba:latest
COPY --chown=$MAMBA_USER:$MAMBA_USER conda.yml /tmp/conda.yml
RUN micromamba install -y -n base -f /tmp/conda.yml \\
&& micromamba install -y -n base conda-forge::procps-ng \\
&& micromamba clean -a -y
USER root
RUN one
Expand Down Expand Up @@ -235,8 +238,9 @@ class AppCondaOptsTest extends Specification {
%files
{{wave_context_dir}}/conda.yml /scratch/conda.yml
%post
micromamba install -y -n base -f /scratch/conda.yml \\
&& micromamba clean -a -y
micromamba install -y -n base -f /scratch/conda.yml
micromamba install -y -n base conda-forge::procps-ng
micromamba clean -a -y
%environment
export PATH="$MAMBA_ROOT_PREFIX/bin:$PATH"
'''.stripIndent()
Expand Down Expand Up @@ -264,8 +268,9 @@ class AppCondaOptsTest extends Specification {
%files
{{wave_context_dir}}/conda.yml /scratch/conda.yml
%post
micromamba install -y -n base -f /scratch/conda.yml \\
&& micromamba clean -a -y
micromamba install -y -n base -f /scratch/conda.yml
micromamba install -y -n base conda-forge::procps-ng
micromamba clean -a -y
%environment
export PATH="$MAMBA_ROOT_PREFIX/bin:$PATH"
'''.stripIndent()
Expand Down Expand Up @@ -305,8 +310,9 @@ class AppCondaOptsTest extends Specification {
%files
{{wave_context_dir}}/conda.yml /scratch/conda.yml
%post
micromamba install -y -n base -f /scratch/conda.yml \\
&& micromamba clean -a -y
micromamba install -y -n base -f /scratch/conda.yml
micromamba install -y -n base conda-forge::procps-ng
micromamba clean -a -y
%environment
export PATH="$MAMBA_ROOT_PREFIX/bin:$PATH"
%post
Expand Down Expand Up @@ -339,9 +345,9 @@ class AppCondaOptsTest extends Specification {
BootStrap: docker
From: mambaorg/micromamba:1.4.9
%post
micromamba install -y -n base -c seqera -c bioconda -c conda-forge -c defaults \\
-f https://host.com/file-lock.yml \\
&& micromamba clean -a -y
micromamba install -y -n base -c seqera -c bioconda -c conda-forge -c defaults -f https://host.com/file-lock.yml
micromamba install -y -n base conda-forge::procps-ng
micromamba clean -a -y
%environment
export PATH="$MAMBA_ROOT_PREFIX/bin:$PATH"
'''.stripIndent()
Expand Down

0 comments on commit 2537882

Please sign in to comment.