-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Image Mode (bootc) PodVM Builds | ||
|
||
Image Mode PodVM builds allow the OSC Image Creation mechanism to | ||
convert and push PodVM images based on pre-created bootc (image | ||
mode) container images. | ||
|
||
## Create PodVM Bootc Container Image Locally | ||
|
||
Use Podman to build a PodVM bootc image locally and push it to | ||
a container registry of your choice. | ||
``` | ||
IMG=quay.io/example/podvm-bootc | ||
podman build -f Containerfile.rhel -t ${IMG} | ||
podman push ${IMG} | ||
``` | ||
Before applying the KataConfig, ensure your | ||
`<cloud-provider>-podvm-image-cm` values are configured correctly: | ||
``` | ||
IMAGE_TYPE: pre-built | ||
PODVM_IMAGE_URI: ${IMG} | ||
``` | ||
|
||
## Create PodVM Bootc Container Image In-Cluster | ||
|
||
Use an existing OpenShift cluster to execute the container build | ||
in-cluster and push the container image to the cluster's internal | ||
registry: | ||
``` | ||
oc apply -f podvm-git-buildconfig.yaml | ||
``` | ||
Before applying the KataConfig, ensure your | ||
`<cloud-provider>-podvm-image-cm` values are configured correctly: | ||
``` | ||
IMAGE_TYPE: pre-built | ||
PODVM_IMAGE_URI: bootc::image-registry.openshift-image-registry.svc:5000/openshift-sandboxed-containers-operator/podvm-bootc | ||
``` | ||
|