File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 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
7392EOF
7493
7594# ############################### build miniforge-cuda using updated miniforge-upstream from above ###############################
@@ -99,6 +118,7 @@ COPY pinned /opt/conda/conda-meta/pinned
99118RUN <<EOF
100119# Ensure new files are created with group write access & setgid. See https://unix.stackexchange.com/a/12845
101120chmod g+ws /opt/conda
121+ EOF
102122
103123RUN \
104124 --mount=type=bind,source=scripts,target=/tmp/build-scripts \
Original file line number Diff line number Diff line change 1111! scripts /update-base-conda-environment
1212! test_notebooks.py
1313! pinned
14+ ! test_notebooks.py
You can’t perform that action at this time.
0 commit comments