Commit 07dcef21 authored by Jan Janssen's avatar Jan Janssen Committed by GitHub

Write __conda_setup to ~/.profile

Some conda packages rely in the `conda activate` to set the corresponding environment variables, therefore just including the `bin` directory in the `PATH` is not sufficient.
parent 612aa571
...@@ -84,6 +84,7 @@ WORKDIR /tmp ...@@ -84,6 +84,7 @@ WORKDIR /tmp
RUN wget --quiet https://repo.continuum.io/miniconda/Miniconda3-py38_${MINICONDA_VERSION}-Linux-x86_64.sh && \ RUN wget --quiet https://repo.continuum.io/miniconda/Miniconda3-py38_${MINICONDA_VERSION}-Linux-x86_64.sh && \
echo "${MINICONDA_MD5} *Miniconda3-py38_${MINICONDA_VERSION}-Linux-x86_64.sh" | md5sum -c - && \ echo "${MINICONDA_MD5} *Miniconda3-py38_${MINICONDA_VERSION}-Linux-x86_64.sh" | md5sum -c - && \
/bin/bash Miniconda3-py38_${MINICONDA_VERSION}-Linux-x86_64.sh -f -b -p $CONDA_DIR && \ /bin/bash Miniconda3-py38_${MINICONDA_VERSION}-Linux-x86_64.sh -f -b -p $CONDA_DIR && \
echo "__conda_setup=\"\$(\"${CONDA_DIR}bin/conda\" \"shell.bash\" \"hook\" 2> /dev/null)\"\nif [ $? -eq 0 ]; then\n eval \"\$__conda_setup\"\nelse\n if [ -f \"${CONDA_DIR}etc/profile.d/conda.sh\" ]; then\n . \"${CONDA_DIR}etc/profile.d/conda.sh\"\n else\n export PATH=\"${CONDA_DIR}bin:\$PATH\"\n fi\nfi\nunset __conda_setup\n" > ${HOME}/.profile && \
rm Miniconda3-py38_${MINICONDA_VERSION}-Linux-x86_64.sh && \ rm Miniconda3-py38_${MINICONDA_VERSION}-Linux-x86_64.sh && \
echo "conda ${CONDA_VERSION}" >> $CONDA_DIR/conda-meta/pinned && \ echo "conda ${CONDA_VERSION}" >> $CONDA_DIR/conda-meta/pinned && \
conda config --system --prepend channels conda-forge && \ conda config --system --prepend channels conda-forge && \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment