Skip to content

Commit 1d43a77

Browse files
jolorunyomiAyodeAwe
authored andcommitted
Setup conda-meta pinned for packages (OpenSSL and Wheel)
1 parent 7fb6c9c commit 1d43a77

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,25 @@ RUN \
7070
<<EOF
7171
# update everything in 'base' before we copy files into later targets
7272
/tmp/build-scripts/update-base-conda-environment
73+
SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
74+
EOF
75+
76+
COPY pinned /opt/conda/conda-meta/pinned
77+
78+
RUN <<EOF
79+
# Ensure new files/dirs have group write permissions
80+
umask 002
81+
82+
# install gha-tools for rapids-mamba-retry
83+
wget -q https://github.com/rapidsai/gha-tools/releases/latest/download/tools.tar.gz -O - | tar -xz -C /usr/local/bin
84+
85+
# Example of pinned package in case you require an override
86+
# echo '<PACKAGE_NAME>==<VERSION>' >> /opt/conda/conda-meta/pinned
87+
88+
# update everything before other environment changes, to ensure mixing
89+
# an older conda with newer packages still works well
90+
PATH="/opt/conda/bin:$PATH" \
91+
rapids-mamba-retry update --all -y -n base
7392
EOF
7493

7594
################################ build miniforge-cuda using updated miniforge-upstream from above ###############################
@@ -99,6 +118,7 @@ COPY pinned /opt/conda/conda-meta/pinned
99118
RUN <<EOF
100119
# Ensure new files are created with group write access & setgid. See https://unix.stackexchange.com/a/12845
101120
chmod g+ws /opt/conda
121+
EOF
102122

103123
RUN \
104124
--mount=type=bind,source=scripts,target=/tmp/build-scripts \

context/.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@
1111
!scripts/update-base-conda-environment
1212
!test_notebooks.py
1313
!pinned
14+
!test_notebooks.py

0 commit comments

Comments
 (0)