Skip to content

Commit

Permalink
add building of instructlab container images
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan committed Apr 25, 2024
1 parent 477bda9 commit 07a33e2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions training/instructlab/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
default: instructlab

REGISTRY ?= quay.io
REGISTRY_ORG ?= ai-lab
IMAGE_TAG ?= latest

.PHONY: instructlab
instructlab:
git clone https://github.com/instructlab/instructlab.git 2> /dev/null || true
(cd instructlab; git pull origin main)

.PHONY: nvidia
nvidia: instructlab
podman build --squash-all -t ${REGISTRY}/${REGISTRY_ORG}/instructlab-$@/${IMAGE_TAG} instructlab/containers/cuda

.PHONY: amd
amd: instructlab
podman build --squash-all -t ${IMAGE} ${REGISTRY}/${REGISTRY_ORG}/instructlab-$@/${IMAGE_TAG} -f instructlab/containers/rocm/Containerfile instructlab

0 comments on commit 07a33e2

Please sign in to comment.