Skip to content

Commit

Permalink
allow for images to built and pushed to quay
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Cook <[email protected]>
  • Loading branch information
cooktheryan committed Jun 18, 2024
1 parent ed5d7bb commit f25197f
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions training/instructlab/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit f25197f

Please sign in to comment.