Skip to content

Commit 29e670e

Browse files
Anaconda: Adds back 'anaconda' pkg (devcontainers#580)
* Anaconda: Adds back 'anaconda' pkg * install 'requests' with conda * conda update conda * test * removes conda update requests * Update test: add --force
1 parent 2214cbd commit 29e670e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/anaconda/.devcontainer/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
4343
&& echo "conda activate base" >> ~/.bashrc \
4444
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts/add-notice.sh
4545

46+
# Since anaconda distribution 2023.03-1, continuumio/anaconda3 image no more contains `anaconda` pkg.
47+
RUN conda update -n base -c defaults conda \
48+
&& conda install --yes anaconda
49+
4650
# Temporary: Upgrade python packages due to mentioned CVEs
4751
# They are installed by the base image (continuumio/anaconda3) which does not have the patch.
4852
RUN python3 -m pip install \
@@ -54,8 +58,6 @@ RUN python3 -m pip install \
5458
mistune \
5559
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34141
5660
numpy \
57-
# https://github.com/devcontainers/images/issues/486
58-
pyOpenssl \
5961
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-25577
6062
werkzeug \
6163
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32862

src/anaconda/test-project/test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ checkCommon
88

99
# Image specific tests
1010
check "conda" conda --version
11+
check "anaconda" bash -c "conda list anaconda$ | grep -oP 'anaconda\\s+\\K[^\\s]+'"
1112
check "python" python --version
1213
check "pylint" pylint --version
1314
check "flake8" flake8 --version
@@ -42,7 +43,8 @@ checkPythonPackageVersion "werkzeug" "2.2.3"
4243
checkPythonPackageVersion "certifi" "2022.12.07"
4344
checkPythonPackageVersion "requests" "2.31.0"
4445

45-
check "conda-update-conda" bash -c "conda update -y conda"
46+
# https://github.com/conda/conda/issues/8149
47+
check "conda-update-conda" bash -c "conda update --force conda"
4648
check "conda-install" bash -c "conda install -c conda-forge --yes tensorflow"
4749
check "conda-install" bash -c "conda install -c conda-forge --yes pytorch"
4850

0 commit comments

Comments
 (0)