Skip to content

Commit

Permalink
Export Mamba root path in docker container
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
  • Loading branch information
pditommaso committed Oct 30, 2023
1 parent f2948e1 commit 348cf29
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ RUN micromamba install -y -n base -f /tmp/conda.yml \
{{base_packages}}
&& micromamba clean -a -y
USER root
ENV PATH="$MAMBA_ROOT_PREFIX/bin:$PATH"
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ RUN \
{{base_packages}}
&& micromamba clean -a -y
USER root
ENV PATH="$MAMBA_ROOT_PREFIX/bin:$PATH"
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ class DockerHelperTest extends Specification {
&& micromamba install -y -n base foo::bar \\
&& micromamba clean -a -y
USER root
ENV PATH="$MAMBA_ROOT_PREFIX/bin:$PATH"
'''.stripIndent()
}

Expand All @@ -229,6 +230,7 @@ class DockerHelperTest extends Specification {
&& micromamba install -y -n base conda-forge::procps-ng \\
&& micromamba clean -a -y
USER root
ENV PATH="$MAMBA_ROOT_PREFIX/bin:$PATH"
'''.stripIndent()
}

Expand All @@ -245,6 +247,7 @@ class DockerHelperTest extends Specification {
&& micromamba install -y -n base conda-forge::procps-ng \\
&& micromamba clean -a -y
USER root
ENV PATH="$MAMBA_ROOT_PREFIX/bin:$PATH"
'''.stripIndent()
}

Expand All @@ -262,6 +265,7 @@ class DockerHelperTest extends Specification {
&& micromamba install -y -n base foo::one bar::two \\
&& micromamba clean -a -y
USER root
ENV PATH="$MAMBA_ROOT_PREFIX/bin:$PATH"
'''.stripIndent()
}

Expand All @@ -278,6 +282,7 @@ class DockerHelperTest extends Specification {
&& micromamba install -y -n base conda-forge::procps-ng \\
&& micromamba clean -a -y
USER root
ENV PATH="$MAMBA_ROOT_PREFIX/bin:$PATH"
'''.stripIndent()
}

Expand All @@ -295,6 +300,7 @@ class DockerHelperTest extends Specification {
&& micromamba install -y -n base conda-forge::procps-ng \\
&& micromamba clean -a -y
USER root
ENV PATH="$MAMBA_ROOT_PREFIX/bin:$PATH"
USER my-user
RUN apt-get update -y && apt-get install -y nano
'''.stripIndent()
Expand All @@ -315,6 +321,7 @@ class DockerHelperTest extends Specification {
&& micromamba install -y -n base conda-forge::procps-ng \\
&& micromamba clean -a -y
USER root
ENV PATH="$MAMBA_ROOT_PREFIX/bin:$PATH"
USER my-user
RUN apt-get update -y && apt-get install -y procps
'''.stripIndent()
Expand Down

0 comments on commit 348cf29

Please sign in to comment.