From 5d7234b0908988cac9f435c838f953a06ae00e78 Mon Sep 17 00:00:00 2001 From: munishchouhan Date: Tue, 17 Sep 2024 18:08:43 +0200 Subject: [PATCH] added condalock to stdout Signed-off-by: munishchouhan --- .../templates/conda/dockerfile-conda-file.txt | 10 +++++++--- .../templates/conda/dockerfile-conda-packages.txt | 9 +++++++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/wave-utils/src/main/resources/templates/conda/dockerfile-conda-file.txt b/wave-utils/src/main/resources/templates/conda/dockerfile-conda-file.txt index 4dfc867..c499574 100644 --- a/wave-utils/src/main/resources/templates/conda/dockerfile-conda-file.txt +++ b/wave-utils/src/main/resources/templates/conda/dockerfile-conda-file.txt @@ -2,8 +2,12 @@ FROM {{base_image}} COPY --chown=$MAMBA_USER:$MAMBA_USER conda.yml /tmp/conda.yml RUN micromamba install -y -n base -f /tmp/conda.yml \ {{base_packages}} - && micromamba env export --explicit > environment.lock \ - && cat environment.lock - && micromamba clean -a -y + && micromamba env export --explicit > environment.lock + +RUN echo "conda_lock_start" \ + && cat environment.lock \ + && echo "conda_lock_end" + +RUN micromamba clean -a -y USER root ENV PATH="$MAMBA_ROOT_PREFIX/bin:$PATH" diff --git a/wave-utils/src/main/resources/templates/conda/dockerfile-conda-packages.txt b/wave-utils/src/main/resources/templates/conda/dockerfile-conda-packages.txt index b36e303..26283d3 100644 --- a/wave-utils/src/main/resources/templates/conda/dockerfile-conda-packages.txt +++ b/wave-utils/src/main/resources/templates/conda/dockerfile-conda-packages.txt @@ -2,7 +2,12 @@ FROM {{base_image}} RUN \ micromamba install -y -n base {{channel_opts}} {{target}} \ {{base_packages}} - && micromamba env export --explicit > environment.lock \ - && micromamba clean -a -y + && micromamba env export --explicit > environment.lock + +RUN echo "conda_lock_start" \ + && cat environment.lock \ + && echo "conda_lock_end" + +RUN micromamba clean -a -y USER root ENV PATH="$MAMBA_ROOT_PREFIX/bin:$PATH"