Skip to content

Commit 6c14e94

Browse files
Merge branch 'main' into v0.3.19
2 parents 132988f + 1e46f1c commit 6c14e94

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

src/anaconda/.devcontainer/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ RUN . /etc/os-release && if [ "${VERSION_CODENAME}" != "bullseye" ]; then exit 1
66
# Temporary: Upgrade python packages due to mentioned CVEs
77
# They are installed by the base image (continuumio/anaconda3) which does not have the patch.
88
RUN conda install \
9-
# https://github.com/advisories/GHSA-5cpq-8wj7-hf2v
9+
# pyopenssl should be updated to be compatible with latest version of cryptography
1010
pyopenssl=23.2.0 \
11-
cryptography=41.0.2 \
11+
# https://github.com/advisories/GHSA-jm77-qphf-c4w8
12+
cryptography=41.0.3 \
1213
# https://github.com/advisories/GHSA-j8r2-6x86-q33q
1314
requests=2.31.0 \
1415
# https://github.com/advisories/GHSA-f865-m6cq-j9vx

src/anaconda/test-project/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ checkPythonPackageVersion "nbconvert" "6.5.1"
4040
checkPythonPackageVersion "werkzeug" "2.2.3"
4141
checkPythonPackageVersion "certifi" "2022.12.07"
4242
checkPythonPackageVersion "requests" "2.31.0"
43-
checkPythonPackageVersion "cryptography" "41.0.2"
43+
checkPythonPackageVersion "cryptography" "41.0.3"
4444
checkPythonPackageVersion "torch" "1.13.1"
4545
checkPythonPackageVersion "transformers" "4.30.0"
4646
checkPythonPackageVersion "mpmath" "1.3.0"
@@ -51,7 +51,7 @@ tornado_version=$(python -c "import tornado; print(tornado.version)")
5151
check-version-ge "tornado-requirement" "${tornado_version}" "6.3.3"
5252

5353
checkCondaPackageVersion "pyopenssl" "23.2.0"
54-
checkCondaPackageVersion "cryptography" "41.0.2"
54+
checkCondaPackageVersion "cryptography" "41.0.3"
5555
checkCondaPackageVersion "requests" "2.31.0"
5656
checkCondaPackageVersion "pygments" "2.15.1"
5757
checkCondaPackageVersion "mpmath" "1.3.0"

src/miniconda/.devcontainer/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ FROM continuumio/miniconda3 as upstream
33
# Temporary: Upgrade python packages due to mentioned CVEs
44
# They are installed by the base image (continuumio/miniconda3) which does not have the patch.
55
RUN conda install \
6-
# https://github.com/pyca/cryptography/security/advisories/GHSA-5cpq-8wj7-hf2v
6+
# pyopenssl should be updated to be compatible with latest version of cryptography
77
pyopenssl=23.2.0 \
8-
cryptography=41.0.2 \
8+
# https://github.com/advisories/GHSA-jm77-qphf-c4w8
9+
cryptography=41.0.3 \
910
# https://github.com/advisories/GHSA-j8r2-6x86-q33q
1011
requests=2.31.0
1112

src/miniconda/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ Given JavaScript front-end web client code written for use in conjunction with a
6767
}
6868
```
6969

70+
#### Using different Conda channels
71+
72+
This image is based on the `ContinuumIO/miniconda3` docker image, which has the conda and its dependencies (*installed from conda's default channel*) in the base environment. It is not recommended to install packages from different channels in one environment since it could cause conflicts. When installing a package from a different channel (e.g., `conda-forge`) is required, the better approach is to create a new conda environment.
73+
7074
#### Installing or updating Python utilities
7175

7276
This container installs all Python development utilities using [pipx](https://pipxproject.github.io/pipx/) to avoid impacting the global Python environment. You can use this same utility add additional utilities in an isolated environment. For example:

src/miniconda/test-project/test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ check "gitconfig-contains-name" sh -c "cat /etc/gitconfig | grep 'name = devcont
1818

1919
check "usr-local-etc-config-does-not-exist" test ! -f "/usr/local/etc/gitconfig"
2020

21-
checkPythonPackageVersion "cryptography" "41.0.0"
21+
checkPythonPackageVersion "cryptography" "41.0.3"
2222
checkPythonPackageVersion "setuptools" "65.5.1"
2323
checkPythonPackageVersion "wheel" "0.38.1"
2424

25-
checkCondaPackageVersion "cryptography" "41.0.0"
25+
checkCondaPackageVersion "cryptography" "41.0.3"
2626
checkCondaPackageVersion "pyopenssl" "23.2.0"
2727
checkCondaPackageVersion "setuptools" "65.5.1"
2828
checkCondaPackageVersion "wheel" "0.38.1"
2929
checkCondaPackageVersion "requests" "2.31.0"
3030

3131
check "conda-update-conda" bash -c "conda update -y conda"
32-
check "conda-install-tensorflow" bash -c "conda install -c conda-forge --yes tensorflow"
33-
check "conda-install-pytorch" bash -c "conda install -c conda-forge --yes pytorch"
32+
check "conda-install-tensorflow" bash -c "conda create --name test-env -c conda-forge --yes tensorflow"
33+
check "conda-install-pytorch" bash -c "conda create --name test-env -c conda-forge --yes pytorch"
3434

3535
# Report result
3636
reportResults

0 commit comments

Comments
 (0)