Skip to content

Commit

Permalink
Remove retagging from ilab image
Browse files Browse the repository at this point in the history
Retag is not needed as we are using static tags

Signed-off-by: Enrique Belarte Luque <ebelarte@redhat.com>
  • Loading branch information
enriquebelarte committed Aug 13, 2024
1 parent 18a6ad6 commit ddda98a
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 ddda98a

Please sign in to comment.