File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11FROM continuumio/miniconda3 as upstream
22
33# Temporary: Upgrade python packages
4- # COPY ./apply_security_patches.sh /tmp/apply_security_patches.sh
5- # RUN chmod +x /tmp/apply_security_patches.sh
6- # RUN /tmp/apply_security_patches.sh
4+ COPY ./apply_security_patches.sh /tmp/apply_security_patches.sh
5+ RUN chmod +x /tmp/apply_security_patches.sh
6+ RUN /tmp/apply_security_patches.sh
77
88# Reset and copy updated files with updated privs to keep image size down
99FROM mcr.microsoft.com/devcontainers/base:1-bullseye
Original file line number Diff line number Diff line change 22
33# define array of packages for pinning to the patched versions
44# vulnerable_packages=( "package1=version1" "package2=version2" "package3=version3" )
5- vulnerable_packages=( " " )
5+ vulnerable_packages=( " tqdm=4.66.4 " )
66
77# Define the number of rows (based on the length of vulnerable_packages)
88rows=${# vulnerable_packages[@]}
@@ -31,7 +31,7 @@ for ((i=0; i<rows; i++)); do
3131 echo "${packages_array[$i,0]} version v${CURRENT_VERSION} installed by the base image is not greater or equal to the required: v${REQUIRED_VERSION} "
3232 # Check whether conda channel has a greater or equal version available, so install from conda, otherwise use pip package manager
3333 channel_name="anaconda"
34- CONDA_VERSION=$(conda search --override-channels "${packages_array[$i,0]} " - c "$channel_name " | \
34+ CONDA_VERSION=$(conda search "${packages_array[$i,0]} " - c "$channel_name " | \
3535 grep -E '^[[:alnum:]]' | \
3636 awk '{print $2 }' | \
3737 sort -V | \
@@ -53,4 +53,4 @@ for ((i=0; i<rows; i++)); do
5353 python3 -m pip install --upgrade --no-cache-dir "${packages_array[$i,0]} == ${REQUIRED_VERSION} "
5454 fi
5555 fi
56- done
56+ done
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ checkCondaPackageVersion "wheel" "0.38.1"
2828checkCondaPackageVersion " requests" " 2.31.0"
2929checkCondaPackageVersion " urllib3" " 1.26.17"
3030checkCondaPackageVersion " idna" " 3.7"
31+ checkCondaPackageVersion " tqdm" " 4.66.4"
3132
3233check " conda-update-conda" bash -c " conda update -y conda"
3334check " conda-install-tensorflow" bash -c " conda create --name test-env -c conda-forge --yes tensorflow"
You can’t perform that action at this time.
0 commit comments