Skip to content

Commit 340d7f5

Browse files
Merge pull request #701 from pastequo/nvidia-bootc/fix/pull-secret-command
fix(nvidia-bootc): Use INSTRUCTLAB_IMAGE_PULL_SECRET in podman pull command
2 parents 85249c0 + c05f23a commit 340d7f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

training/nvidia-bootc/Containerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,12 @@ RUN for i in /usr/bin/ilab*; do \
204204
# Added for running as an OCI Container to prevent Overlay on Overlay issues.
205205
VOLUME /var/lib/containers
206206

207-
RUN --mount=type=secret,id=instructlab-nvidia-pull/.dockerconfigjson \
207+
RUN --mount=type=secret,id=${INSTRUCTLAB_IMAGE_PULL_SECRET}/.dockerconfigjson \
208208
if [ -f "/run/.input/instructlab-nvidia/oci-layout" ]; then \
209209
IID=$(podman --root /usr/lib/containers/storage pull oci:/run/.input/instructlab-nvidia) && \
210210
podman --root /usr/lib/containers/storage image tag ${IID} ${INSTRUCTLAB_IMAGE}; \
211211
elif [ -f "/run/secrets/${INSTRUCTLAB_IMAGE_PULL_SECRET}/.dockerconfigjson" ]; then \
212-
IID=$(sudo podman --root /usr/lib/containers/storage pull --authfile /run/secrets/instructlab-nvidia-pull/.dockerconfigjson ${INSTRUCTLAB_IMAGE}); \
212+
IID=$(sudo podman --root /usr/lib/containers/storage pull --authfile /run/secrets/${INSTRUCTLAB_IMAGE_PULL_SECRET}/.dockerconfigjson ${INSTRUCTLAB_IMAGE}); \
213213
else \
214214
IID=$(sudo podman --root /usr/lib/containers/storage pull ${INSTRUCTLAB_IMAGE}); \
215215
fi

0 commit comments

Comments
 (0)