Skip to content

Commit

Permalink
podvm: add bootc README.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
snir911 committed Dec 4, 2024
1 parent 71b04de commit 96a8ab6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions config/peerpods/podvm/bootc/README.md
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
```

0 comments on commit 96a8ab6

Please sign in to comment.