Skip to content

Commit 8fb5d26

Browse files
[miniconda] Remove the USER instruction to fix issue with miniconda template (#563)
* [miniconda] Remove `USER` instruction - Remove `USER` instruction to make sure that all subsequent commands running form the root user * [miniconda] Backport conda-forge checks
1 parent 98b5b1d commit 8fb5d26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/miniconda/.devcontainer/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ COPY environment.yml* noop.txt /tmp/conda-tmp/
4747
RUN if [ -f "/tmp/conda-tmp/environment.yml" ]; then umask 0002 && /opt/conda/bin/conda env update -n base -f /tmp/conda-tmp/environment.yml; fi \
4848
&& rm -rf /tmp/conda-tmp
4949

50-
USER vscode
51-
5250
# Temporary: Upgrade python packages due to mentioned CVEs
5351
# They are installed by the base image (continuumio/miniconda3) which does not have the patch.
5452
RUN python3 -m conda update -y \

src/miniconda/test-project/test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ cryptography_version=$(python -c "import cryptography; print(cryptography.__vers
2222
check-version-ge "cryptography-requirement" "${cryptography_version}" "38.0.3"
2323

2424
check "conda-update-conda" bash -c "conda update -y conda"
25+
check "conda-install" bash -c "conda install -c conda-forge --yes tensorflow"
26+
check "conda-install" bash -c "conda install -c conda-forge --yes pytorch"
2527

2628
setuptools_version=$(python -c "import setuptools; print(setuptools.__version__)")
2729
check-version-ge "setuptools-requirement" "${setuptools_version}" "65.5.1"

0 commit comments

Comments
 (0)