@@ -23,15 +23,17 @@ make [rhocp | repourl | repobase | <build_ver> | run | clean]
23
23
clean: delete all ' localhost/microshift-*' container images
24
24
25
25
Available build versions:
26
- 4.16-el94
27
- 4.17-rc-el94
28
- 4.18-ec-cos9
29
- 4.18-ec-el94
26
+ 4.18-el94
27
+ 4.18-rc-cos9
28
+ 4.18-rc-el94
29
+ 4.19-el96
30
+ 4.19-rc-cos9
31
+ 4.19-rc-el96
30
32
```
31
33
32
34
## Build Image Mode Containers
33
35
34
- Log into the ` RHEL 9.4 host ` using the user credentials that have SUDO permissions
36
+ Log into the ` RHEL 9.6 host ` using the user credentials that have SUDO permissions
35
37
configured.
36
38
37
39
The ` rhocp ` , ` repourl ` and ` repobase ` targets can be used for building ` bootc `
@@ -46,18 +48,18 @@ The target requires the `USHIFT_VER=value` argument, which defines the version
46
48
of the ` rhocp ` repository to be used when building the image.
47
49
48
50
For example, run the following command to build an image including the latest
49
- released MicroShift 4.16 version.
51
+ released MicroShift 4.19 version.
50
52
51
53
``` bash
52
- make rhocp USHIFT_VER=4.16
54
+ make rhocp USHIFT_VER=4.19
53
55
```
54
56
55
- The resulting image will be named ` microshift-4.16 .z ` where ` z ` is the latest
57
+ The resulting image will be named ` microshift-4.19 .z ` where ` z ` is the latest
56
58
available MicroShift package version in the repository.
57
59
58
60
``` bash
59
- $ sudo podman images --format " {{.Repository}}" | grep ^localhost/microshift-4.16
60
- localhost/microshift-4.16.8
61
+ $ sudo podman images --format " {{.Repository}}" | grep ^localhost/microshift-4.19
62
+ localhost/microshift-4.19.0
61
63
```
62
64
63
65
### Build from Custom URL Repository
@@ -71,21 +73,21 @@ which define the URL of repositories containing MicroShift RPM packages and
71
73
OpenShift dependency RPM packages.
72
74
73
75
For example, run the following command to build an image including the MicroShift
74
- 4.17 Release Candidate version from ` mirror.openshift.com ` site.
76
+ 4.19 Release Candidate version from ` mirror.openshift.com ` site.
75
77
76
78
``` bash
77
79
BASE_URL=" https://mirror.openshift.com/pub/openshift-v4"
78
80
make repourl \
79
- USHIFT_URL=" ${BASE_URL} /$( uname -m) /microshift/ocp/latest-4.17 /el9/os/" \
80
- OCPDEP_URL=" ${BASE_URL} /$( uname -m) /dependencies/rpms/4.17 -el9-beta/"
81
+ USHIFT_URL=" ${BASE_URL} /$( uname -m) /microshift/ocp/latest-4.19 /el9/os/" \
82
+ OCPDEP_URL=" ${BASE_URL} /$( uname -m) /dependencies/rpms/4.19 -el9-beta/"
81
83
```
82
84
83
- The resulting image will be named ` microshift-4.17 .z ` where ` z ` is the latest
85
+ The resulting image will be named ` microshift-4.19 .z ` where ` z ` is the latest
84
86
available MicroShift package version in the repository.
85
87
86
88
``` bash
87
- $ sudo podman images --format " {{.Repository}}" | grep ^localhost/microshift-4.17
88
- localhost/microshift-4.17 .0-rc.0
89
+ $ sudo podman images --format " {{.Repository}}" | grep ^localhost/microshift-4.19
90
+ localhost/microshift-4.19 .0-rc.0
89
91
```
90
92
91
93
### Build from Custom Base Image Repository
@@ -100,29 +102,29 @@ local MicroShift `bootc` container image (i.e. `microshift-${IMAGE_VER}`). All
100
102
the required RPM repository configuration is assumed to be part of the base image.
101
103
102
104
For example, run the following command to build an image using the local MicroShift
103
- 4.16 image with ` rhocp ` repositories built in the previous step.
105
+ 4.19 image with ` rhocp ` repositories built in the previous step.
104
106
105
107
> This example is superficial for the sake of simplicity. The typical use of the
106
108
> ` repobase ` target would be to decouple the repository configuration and MicroShift
107
109
> image build steps.
108
110
109
111
``` bash
110
- BASE_IMAGE_URL=" localhost/microshift-4.16.9 "
112
+ BASE_IMAGE_URL=" localhost/microshift-4.19.0 "
111
113
BASE_IMAGE_TAG=" latest"
112
- IMAGE_VER=" 4.16.9 -update"
114
+ IMAGE_VER=" 4.19.0 -update"
113
115
114
116
make repobase \
115
117
BASE_IMAGE_URL=" ${BASE_IMAGE_URL} " \
116
118
BASE_IMAGE_TAG=" ${BASE_IMAGE_TAG} " \
117
119
IMAGE_VER=" ${IMAGE_VER} "
118
120
```
119
121
120
- The resulting image will be named ` microshift-4.16.9 -update ` as defined by the
122
+ The resulting image will be named ` microshift-4.19.0 -update ` as defined by the
121
123
` IMAGE_VER ` argument.
122
124
123
125
``` bash
124
126
$ sudo podman images --format " {{.Repository}}" | grep ^localhost/microshift-" ${IMAGE_VER} "
125
- localhost/microshift-4.16.9 -update
127
+ localhost/microshift-4.19.0 -update
126
128
```
127
129
128
130
### Predefined Build Targets
@@ -133,19 +135,22 @@ MicroShift versions and configurations.
133
135
``` bash
134
136
$ make | grep -A10 ' Available build versions'
135
137
Available build versions:
136
- 4.16-el94
137
- 4.17-rc-el94
138
- 4.18-ec-el94
138
+ 4.18-el94
139
+ 4.18-rc-cos9
140
+ 4.18-rc-el94
141
+ 4.19-el96
142
+ 4.19-rc-cos9
143
+ 4.19-rc-el96
139
144
```
140
145
141
146
These builds use ` rhocp ` and ` repourl ` targets with hardcoded parameters to simplify
142
147
` make ` command invocation.
143
148
144
149
For example, run the following command to build an image including the MicroShift
145
- 4.17 Release Candidate version from ` mirror.openshift.com ` site.
150
+ 4.19 Release Candidate version from ` mirror.openshift.com ` site.
146
151
147
152
``` bash
148
- make 4.17 -rc-el94
153
+ make 4.19 -rc-el96
149
154
```
150
155
151
156
### Override Build Variables
@@ -156,15 +161,15 @@ default values used in `Containerfile` for `rhocp` and `repourl` targets.
156
161
| Parameter Name | Default Value | Comment |
157
162
| ----------------| ---------------| ---------|
158
163
| PULL_SECRET | ` ~/.pull-secret.json ` | Used for accessing base ` bootc ` images |
159
- | BASE_IMAGE_URL | ` registry.redhat.io/rhel9-eus/rhel-9.4 -bootc ` | Base ` bootc ` image URL |
160
- | BASE_IMAGE_TAG | ` 9.4 ` | Base ` bootc ` image tag |
164
+ | BASE_IMAGE_URL | ` registry.redhat.io/rhel9-eus/rhel-9.6 -bootc ` | Base ` bootc ` image URL |
165
+ | BASE_IMAGE_TAG | ` 9.6 ` | Base ` bootc ` image tag |
161
166
| DNF_OPTIONS | none | Additional options to be passed to the ` dnf ` command |
162
167
163
168
For example, run the following command to override the base ` bootc ` image default
164
169
tag when building the container image.
165
170
166
171
``` bash
167
- make rhocp USHIFT_VER=4.16 \
172
+ make rhocp USHIFT_VER=4.19 \
168
173
BASE_IMAGE_TAG=latest
169
174
```
170
175
@@ -181,7 +186,7 @@ make clean
181
186
> The purpose of this section is to demonstrate how to test generated MicroShift
182
187
> image mode containers.
183
188
184
- Log into the ` RHEL 9.4 host ` using the user credentials that have SUDO permissions
189
+ Log into the ` RHEL 9.6 host ` using the user credentials that have SUDO permissions
185
190
configured.
186
191
187
192
The ` run ` target allows for running the specified ` localhost/microshift-* ` container
@@ -193,10 +198,10 @@ one of them.
193
198
194
199
``` bash
195
200
$ sudo podman images --format " {{.Repository}}" | grep ^localhost/microshift-
196
- localhost/microshift-4.17 .0-rc.0
197
- localhost/microshift-4.16.8
201
+ localhost/microshift-4.19 .0-rc.0
202
+ localhost/microshift-4.18.0
198
203
199
- $ make run IMAGE_VER=4.16.8
204
+ $ make run IMAGE_VER=4.18.0
200
205
...
201
206
...
202
207
sudo podman exec -it 65339346b957c7b02353bf859b07d75a2127398266d6d3f3b2708b692745609f bash
@@ -213,7 +218,7 @@ For example, run the following command to stop all the running MicroShift contai
213
218
$ make stop
214
219
...
215
220
...
216
- microshift-4.16.8
221
+ microshift-4.18.0
217
222
```
218
223
219
224
## Appendix B: Boot RHEL Using Image Mode Containers
@@ -339,7 +344,7 @@ Log into a Linux host (e.g. `Fedora`, `CentOS` or `RHEL`) using the user credent
339
344
that have SUDO permissions configured.
340
345
341
346
For example, run the following command to build a CentOS Stream 9 image using the
342
- MicroShift 4.17 Release Candidate version from ` mirror.openshift.com ` site.
347
+ MicroShift 4.19 Release Candidate version from ` mirror.openshift.com ` site.
343
348
344
349
``` bash
345
350
BASE_IMAGE_URL=quay.io/centos-bootc/centos-bootc
@@ -349,8 +354,8 @@ BASE_URL="https://mirror.openshift.com/pub/openshift-v4"
349
354
make repourl \
350
355
BASE_IMAGE_URL=" ${BASE_IMAGE_URL} " \
351
356
BASE_IMAGE_TAG=" ${BASE_IMAGE_TAG} " \
352
- USHIFT_URL=" ${BASE_URL} /$( uname -m) /microshift/ocp/latest-4.17 /el9/os/" \
353
- OCPDEP_URL=" ${BASE_URL} /$( uname -m) /dependencies/rpms/4.17 -el9-beta/"
357
+ USHIFT_URL=" ${BASE_URL} /$( uname -m) /microshift/ocp/latest-4.19 /el9/os/" \
358
+ OCPDEP_URL=" ${BASE_URL} /$( uname -m) /dependencies/rpms/4.19 -el9-beta/"
354
359
```
355
360
356
361
Note that RPM packages referenced by the ` USHIFT_URL ` and ` OCPDEP_URL ` may conflict
0 commit comments