From f25197f7a855779204f798459ff8acdf736a5e1a Mon Sep 17 00:00:00 2001 From: Ryan Cook Date: Tue, 18 Jun 2024 15:29:01 -0400 Subject: [PATCH] allow for images to built and pushed to quay Signed-off-by: Ryan Cook --- training/instructlab/Makefile | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/training/instructlab/Makefile b/training/instructlab/Makefile index 00320871..772424dd 100644 --- a/training/instructlab/Makefile +++ b/training/instructlab/Makefile @@ -8,6 +8,9 @@ help: @echo " - make amd" @echo " - make intel" @echo " - make nvidia" + @echo " - make nvidia-quay" + @echo " - make amd-quay" + @echo " - make intel-quay" default: help @@ -26,14 +29,32 @@ instructlab: .PHONY: nvidia nvidia: instructlab rm -rf ../build/instructlab-$@ - "${CONTAINER_TOOL}" build --squash-all -t oci:../build/instructlab-$@ -t quay.io/ai-lab/instructlab-nvidia:latest instructlab/containers/cuda + "${CONTAINER_TOOL}" build --squash-all -t oci:../build/instructlab-$@ instructlab/containers/cuda .PHONY: amd amd: instructlab rm -rf ../build/instructlab-$@ - "${CONTAINER_TOOL}" build --squash-all -t oci:../build/instructlab-$@ -t quay.io/ai-lab/instructlab-amd:latest -f instructlab/containers/rocm/Containerfile instructlab + "${CONTAINER_TOOL}" build --squash-all -t oci:../build/instructlab-$@ -f instructlab/containers/rocm/Containerfile instructlab .PHONY: intel intel: instructlab rm -rf ../build/instructlab-$@ - "${CONTAINER_TOOL}" build --squash-all -t oci:../build/instructlab-$@ -t quay.io/ai-lab/instructlab-intel:latest -f instructlab/containers/hpu/Containerfile instructlab + "${CONTAINER_TOOL}" build --squash-all -t oci:../build/instructlab-$@ -f instructlab/containers/hpu/Containerfile instructlab + +.PHONY: nvidia-quay +nvidia: instructlab + rm -rf ../build/instructlab-$@ + "${CONTAINER_TOOL}" build --squash-all -t quay.io/ai-lab/instructlab-nvidia:latest instructlab/containers/cuda + "${CONTAINER_TOOL}" push quay.io/ai-lab/instructlab-nvidia:latest + +.PHONY: amd-quay +amd: instructlab + rm -rf ../build/instructlab-$@ + "${CONTAINER_TOOL}" build --squash-all -t quay.io/ai-lab/instructlab-amd:latest -f instructlab/containers/rocm/Containerfile instructlab + "${CONTAINER_TOOL}" push quay.io/ai-lab/instructlab-amd:latest + +.PHONY: intel-quay +intel: instructlab + rm -rf ../build/instructlab-$@ + "${CONTAINER_TOOL}" build --squash-all -t quay.io/ai-lab/instructlab-intel:latest -f instructlab/containers/hpu/Containerfile instructlab + "${CONTAINER_TOOL}" push quay.io/ai-lab/instructlab-intel:latest \ No newline at end of file