Skip to content

Commit 0caab5b

Browse files
committed
add readme
Signed-off-by: Costin Gamenț <[email protected]>
1 parent 88df6c4 commit 0caab5b

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

training/iso-builder/README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Installation iso builder
2+
---
3+
4+
This directory provides an easy way to build installation `iso` images with a container and a kickstart
5+
embedded.
6+
7+
# Makefile targets
8+
9+
| Target | Description |
10+
|-------------|---------------------------------------------------------|
11+
| image | Build the container |
12+
| iso | Create bootable installation iso |
13+
14+
# Makefile variables
15+
16+
| Variable | Description | Default |
17+
|---------------------------|-------------------------------------------------|---------------------------------------------|
18+
| FROM | Overrides the base image for the Containerfile | `quay.io/centos/centos:stream9` |
19+
| REGISTRY | Container Registry for storing container images | `quay.io` |
20+
| REGISTRY_ORG | Container Registry organization | `ai-lab` |
21+
| IMAGE_NAME | Container image name | `iso-builder` |
22+
| IMAGE_TAG | Container image tag | `latest` |
23+
| CONTAINER_TOOL | Container tool used for build | `podman` |
24+
| CONTAINER_TOOL_EXTRA_ARGS | Container tool extra arguments | ` ` |
25+
| EMBED_IMAGE | The container image to embed in the iso | *Required* |
26+
| ORIGINAL_ISO | Path to the base installation iso | *Required* |
27+
| SSHKEY | The SSH public key for the root account | *Required* |
28+
| OUTPUT_DIR | Path where to store the new installation iso | `./iso` |
29+
30+
# How to build the container image
31+
32+
The first step is simple, the `iso-builder` container image needs to be build:
33+
34+
```
35+
make image
36+
```
37+
38+
This is based on CentOS Stream by default, for Red Hat Enterprise Linux you would use the `FROM` variable:
39+
40+
```
41+
make image FROM=registry.access.redhat.com/ubi9/ubi:latest
42+
```
43+
44+
# How to build the iso image
45+
46+
First, you need to have a recent Anaconda based installation iso. The latest CentOS Stream 9, Fedora 40 or Red Hat Enterprise Linux 9
47+
installation isos will work.
48+
49+
```
50+
make iso EMBED_IMAGE=<container-image> ORIGINAL_ISO=/path/to/original.iso SSHKEY="my public ssh-key"
51+
```
52+

0 commit comments

Comments
 (0)