Skip to content

Commit

Permalink
Merge pull request #757 from enriquebelarte/remove-retag
Browse files Browse the repository at this point in the history
Remove retagging from ilab image
  • Loading branch information
rhatdan authored Aug 16, 2024
2 parents 925607f + ddda98a commit b9aaba6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions training/nvidia-bootc/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ RUN chmod +x /usr/bin/ilab

ARG INSTRUCTLAB_IMAGE="quay.io/ai-lab/instructlab-nvidia:latest"
ARG INSTRUCTLAB_IMAGE_PULL_SECRET="instructlab-nvidia-pull"
ARG INSTRUCTLAB_IMAGE_RETAG

RUN for i in /usr/bin/ilab*; do \
sed -i 's/__REPLACE_TRAIN_DEVICE__/cuda/' $i; \
Expand All @@ -193,10 +192,6 @@ RUN --mount=type=secret,id=${INSTRUCTLAB_IMAGE_PULL_SECRET}/.dockerconfigjson \
IID=$(sudo podman --root /usr/lib/containers/storage pull ${INSTRUCTLAB_IMAGE}); \
fi

RUN if [ ! -z "${INSTRUCTLAB_IMAGE_RETAG}" ]; then \
podman tag ${INSTRUCTLAB_IMAGE} ${INSTRUCTLAB_IMAGE%%:*}:${INSTRUCTLAB_IMAGE_RETAG}; \
fi

RUN podman system reset --force 2>/dev/null

LABEL image_version_id="${IMAGE_VERSION_ID}"

0 comments on commit b9aaba6

Please sign in to comment.