File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff 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.
4852RUN 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
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ checkCommon
88
99# Image specific tests
1010check " conda" conda --version
11+ check " anaconda" bash -c " conda list anaconda$ | grep -oP 'anaconda\\ s+\\ K[^\\ s]+'"
1112check " python" python --version
1213check " pylint" pylint --version
1314check " flake8" flake8 --version
@@ -42,7 +43,8 @@ checkPythonPackageVersion "werkzeug" "2.2.3"
4243checkPythonPackageVersion " certifi" " 2022.12.07"
4344checkPythonPackageVersion " 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"
4648check " conda-install" bash -c " conda install -c conda-forge --yes tensorflow"
4749check " conda-install" bash -c " conda install -c conda-forge --yes pytorch"
4850
You can’t perform that action at this time.
0 commit comments