Skip to content

Commit

Permalink
Merge pull request #545 from rhatdan/squash
Browse files Browse the repository at this point in the history
podman build does not support --squash and --layers at same time
  • Loading branch information
rhatdan authored Jun 11, 2024
2 parents f90a88c + 1704a5a commit 5c92332
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions model_servers/llamacpp_python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ all: build download-model-granite run

.PHONY: build-cuda
build-cuda:
"${CONTAINER_TOOL}" build --squash --layers=false -t $(CUDA_IMAGE) . -f cuda/Containerfile
"${CONTAINER_TOOL}" build --squash-all -t $(CUDA_IMAGE) . -f cuda/Containerfile

.PHONY: build-vulkan
build-vulkan:
"${CONTAINER_TOOL}" build --squash --layers=false -t $(VULKAN_IMAGE) . -f vulkan/Containerfile
"${CONTAINER_TOOL}" build --squash-all -t $(VULKAN_IMAGE) . -f vulkan/Containerfile

.PHONY: download-model-granite # default model
download-model-granite:
Expand Down
3 changes: 1 addition & 2 deletions training/deepspeed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ image:
$(ARCH:%=--platform linux/%) \
$(SOURCE_DATE_EPOCH:%=--timestamp=%) \
--file Containerfile \
--layers=false \
--squash \
--squash-all \
--tag oci:../build/deepspeed-trainer
6 changes: 3 additions & 3 deletions training/instructlab/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ instructlab:
.PHONY: nvidia
nvidia: instructlab
rm -rf ../build/instructlab-$@
"${CONTAINER_TOOL}" build --layers=false --squash -t oci:../build/instructlab-$@ 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 --layers=false --squash -t oci:../build/instructlab-$@ -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 --layers=false --squash -t oci:../build/instructlab-$@ -f instructlab/containers/hpu/Containerfile instructlab
"${CONTAINER_TOOL}" build --squash-all -t oci:../build/instructlab-$@ -f instructlab/containers/hpu/Containerfile instructlab
3 changes: 1 addition & 2 deletions training/vllm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ image:
$(ARCH:%=--platform linux/%) \
$(SOURCE_DATE_EPOCH:%=--timestamp=%) \
--file Containerfile \
--layers=false \
--squash \
--squash-all \
--tag oci:../build/vllm \
${CONTAINER_TOOL_EXTRA_ARGS} .

0 comments on commit 5c92332

Please sign in to comment.