Skip to content

Commit

Permalink
Merge pull request containers#458 from javipolo/custom_instructlab_repo
Browse files Browse the repository at this point in the history
Allow to use a different instructlab git repository via env vars
  • Loading branch information
rhatdan authored May 3, 2024
2 parents e2ead10 + a1ec1ce commit d3ba2b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions training/instructlab/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ REGISTRY ?= quay.io
REGISTRY_ORG ?= ai-lab
IMAGE_TAG ?= latest

INSTRUCTLAB_GIT_REPO ?= https://github.com/instructlab/instructlab.git
INSTRUCTLAB_GIT_BRANCH ?= main

.PHONY: instructlab
instructlab:
@mkdir -p ../build
git clone https://github.com/instructlab/instructlab.git 2> /dev/null || true
(cd instructlab; git pull origin main)
git clone $(INSTRUCTLAB_GIT_REPO) instructlab 2> /dev/null || true
(cd instructlab; git pull origin $(INSTRUCTLAB_GIT_BRANCH))

.PHONY: nvidia
nvidia: instructlab
Expand Down

0 comments on commit d3ba2b6

Please sign in to comment.