-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add target for creating disk-images #455
Conversation
training/README.md
Outdated
@@ -18,6 +18,9 @@ In order to run accelerated AI workloads, we've prepared [bootc](https://github. | |||
| intel | Create bootable container for Intel Habanalabs platform | | |||
| nvidia | Create bootable container for NVidia platform | | |||
| vllm | Containerized inference/serving engine for LLMs | | |||
| disk-amd | Create disk image from bootable container for AMD platform | | |||
| disk-intel | Create disk image from bootable container for Intel platform | | |||
| disk-nvidia | Create disk image from bootable container for Nvidia platform | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please alphabetize.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, done :)
training/README.md
Outdated
Image builder config file is documented in [bootc-image-builder README](https://github.com/osbuild/bootc-image-builder?tab=readme-ov-file#-build-config) | ||
|
||
The following image disk types are currently available: | ||
| Image type | Target environment | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably be DISK type.
training/common/Makefile.common
Outdated
--rm \ | ||
-ti \ | ||
-v $(GRAPH_ROOT):/var/lib/containers/storage \ | ||
$(ARCH:%=--arch %) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work with the ARCH removed above?
I don't think you ever want to do this? This should only be handled in the bootc section, you should not run a non native bootc-image-builder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, removing then ... I copied most of it from the Makefile.common target that is present in the /recipes section
ai-lab-recipes/recipes/common/Makefile.common
Lines 108 to 130 in d3ba2b6
bootc-image-builder: | |
@if podman image exists $(BOOTC_IMAGE); then \ | |
echo "$(BOOTC_IMAGE) exists in local storage, using it"; \ | |
else \ | |
$(MAKE) bootc; \ | |
fi | |
mkdir -p build/store | |
podman run \ | |
--rm \ | |
-ti \ | |
-v $(GRAPH_ROOT):/var/lib/containers/storage \ | |
$(ARCH:%=--arch %) \ | |
$(AUTH_JSON:%=-v %:/run/containers/0/auth.json) \ | |
--privileged \ | |
--pull newer \ | |
-v ./build:/output \ | |
-v ./build/store:/store \ | |
$(BOOTC_IMAGE_BUILDER) \ | |
$(ARCH:%=--target-arch %) \ | |
--type $(DISK_TYPE) \ | |
--chown $(DISK_UID):$(DISK_GID) \ | |
--local \ | |
$(BOOTC_IMAGE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to fix this there also.
-v ./build:/output \ | ||
-v ./build/store:/store \ | ||
$(BOOTC_IMAGE_BUILDER) \ | ||
$(ARCH:%=--target-arch %) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is GOOD. Noth the one above.
ef45e95
to
871ae43
Compare
Signed-off-by: Javi Polo <[email protected]>
871ae43
to
4cb23bb
Compare
LGTM |
No description provided.