You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by pd...@apache.org on 2021/02/10 09:43:14 UTC

[zeppelin] branch branch-0.9 updated: [ZEPPELIN-5244] Docker build in dockerhub fails

This is an automated email from the ASF dual-hosted git repository.

pdallig pushed a commit to branch branch-0.9
in repository https://gitbox.apache.org/repos/asf/zeppelin.git


The following commit(s) were added to refs/heads/branch-0.9 by this push:
     new ecc4455  [ZEPPELIN-5244] Docker build in dockerhub fails
ecc4455 is described below

commit ecc4455b1809c01cd17b542273be37fb1ebad8d4
Author: Philipp Dallig <ph...@gmail.com>
AuthorDate: Tue Feb 9 13:49:43 2021 +0100

    [ZEPPELIN-5244] Docker build in dockerhub fails
    
    ### What is this PR for?
    This PR switches to mamba to set up the Python and R environment. [mamba](https://github.com/mamba-org/mamba) is much faster than conda and could solve the build at Dockerhub.
    
    ### What type of PR is it?
     - Bug Fix
    
    ### Todos
    * [x] - Testing
    
    ### What is the Jira issue?
    * https://issues.apache.org/jira/browse/ZEPPELIN-5244
    
    ### How should this be tested?
    * manual
    
    ### Questions:
    * Does the licenses files need update? No
    * Is there breaking changes for older versions? No
    * Does this needs documentation? No
    
    Author: Philipp Dallig <ph...@gmail.com>
    
    Closes #4051 from Reamer/mamba and squashes the following commits:
    
    92be4f767 [Philipp Dallig] Switch to mamba, which is much faster than conda
    
    (cherry picked from commit 7cc031b24944f8d3bb1c3cacf9fa76734c14d0e5)
    Signed-off-by: Philipp Dallig <ph...@gmail.com>
---
 scripts/docker/zeppelin/bin/Dockerfile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/docker/zeppelin/bin/Dockerfile b/scripts/docker/zeppelin/bin/Dockerfile
index bb611bc..30edc6d 100644
--- a/scripts/docker/zeppelin/bin/Dockerfile
+++ b/scripts/docker/zeppelin/bin/Dockerfile
@@ -48,13 +48,14 @@ RUN set -ex && \
     export PATH=/opt/conda/bin:$PATH && \
     conda config --set always_yes yes --set changeps1 no && \
     conda info -a && \
-    conda env update -f /env_python_3_with_R.yml --prune && \
+    conda install mamba -c conda-forge && \
+    mamba env update -f /env_python_3_with_R.yml --prune && \
     # Cleanup
     rm -v miniconda.sh anaconda.sha256  && \
     # Cleanup based on https://github.com/ContinuumIO/docker-images/commit/cac3352bf21a26fa0b97925b578fb24a0fe8c383
     find /opt/conda/ -follow -type f -name '*.a' -delete && \
     find /opt/conda/ -follow -type f -name '*.js.map' -delete && \
-    conda clean -ay
+    mamba clean -ay
     # Allow to modify conda packages. This allows malicious code to be injected into other interpreter sessions, therefore it is disabled by default
     # chmod -R ug+rwX /opt/conda
 ENV PATH /opt/conda/bin:$PATH