@@ -56,20 +56,20 @@ image from the `registry.redhat.io` registry
56
56
57
57
``` bash
58
58
PULL_SECRET=~ /.pull-secret.json
59
- USER_PASSWD=< your_redhat_user_password>
60
- IMAGE_NAME=microshift-4.16 -bootc
59
+ USER_PASSWD=" <your_redhat_user_password>"
60
+ IMAGE_NAME=microshift-4.17 -bootc
61
61
62
62
sudo podman build --authfile " ${PULL_SECRET} " -t " ${IMAGE_NAME} " \
63
63
--build-arg USER_PASSWD=" ${USER_PASSWD} " \
64
64
-f Containerfile
65
65
```
66
66
67
- Verify that the local MicroShift 4.16 ` bootc ` image was created.
67
+ Verify that the local MicroShift 4.17 ` bootc ` image was created.
68
68
69
69
``` bash
70
70
$ sudo podman images " ${IMAGE_NAME} "
71
71
REPOSITORY TAG IMAGE ID CREATED SIZE
72
- localhost/microshift-4.16 -bootc latest 193425283c00 2 minutes ago 2.31 GB
72
+ localhost/microshift-4.17 -bootc latest 193425283c00 2 minutes ago 2.31 GB
73
73
```
74
74
75
75
### Publish Image
@@ -110,7 +110,7 @@ $ find /lib/modules/$(uname -r) -name "openvswitch*"
110
110
/lib/modules/6.9.9-200.fc40.x86_64/kernel/net/openvswitch
111
111
/lib/modules/6.9.9-200.fc40.x86_64/kernel/net/openvswitch/openvswitch.ko.xz
112
112
113
- $ IMAGE_NAME=microshift-4.16 -bootc
113
+ $ IMAGE_NAME=microshift-4.17 -bootc
114
114
$ sudo podman inspect " ${IMAGE_NAME} " | grep kernel-core
115
115
" created_by" : " kernel-core-5.14.0-427.26.1.el9_4.x86_64"
116
116
```
@@ -183,7 +183,7 @@ The host shares the following configuration with the container:
183
183
184
184
` ` ` bash
185
185
PULL_SECRET=~ /.pull-secret.json
186
- IMAGE_NAME=microshift-4.16 -bootc
186
+ IMAGE_NAME=microshift-4.17 -bootc
187
187
188
188
sudo modprobe openvswitch
189
189
sudo podman run --rm -it --privileged \
@@ -229,10 +229,13 @@ gaining access to private container registries:
229
229
pre-install stage to authenticate ` quay.io/myorg ` registry access
230
230
* ` PULL_SECRET ` file contents are copied to ` /etc/crio/openshift-pull-secret `
231
231
at the post-install stage to authenticate OpenShift registry access
232
+ * ` IMAGE_REF ` variable contains the MicroShift bootc container image reference
233
+ to be installed
232
234
233
235
``` bash
234
236
AUTH_CONFIG=~ /.quay-auth.json
235
237
PULL_SECRET=~ /.pull-secret.json
238
+ IMAGE_REF=" quay.io/<myorg>/<mypath>/microshift-4.17-bootc"
236
239
```
237
240
238
241
> See the ` containers-auth.json(5) ` manual pages for more information on the
278
281
%end
279
282
280
283
# Pull a 'bootc' image from a remote registry
281
- ostreecontainer --url quay.io/myorg/mypath/microshift-4.16-bootc
284
+ ostreecontainer --url " ${IMAGE_REF} "
282
285
283
286
%post --log=/dev/console --erroronfail
284
287
@@ -309,7 +312,7 @@ previous step to pull a `bootc` image from the remote registry and use it to ins
309
312
the RHEL operating system.
310
313
311
314
``` bash
312
- VMNAME=microshift-4.16 -bootc
315
+ VMNAME=microshift-4.17 -bootc
313
316
NETNAME=default
314
317
315
318
sudo virt-install \
@@ -346,24 +349,24 @@ manner to create multi-architecture images.
346
349
347
350
``` bash
348
351
PULL_SECRET=~ /.pull-secret.json
349
- USER_PASSWD=< your_redhat_user_password>
352
+ USER_PASSWD=" <your_redhat_user_password>"
350
353
IMAGE_ARCH=amd64 # Use amd64 or arm64 depending on the current platform
351
354
IMAGE_PLATFORM=" linux/${IMAGE_ARCH} "
352
- IMAGE_NAME=" microshift-4.16 -bootc:linux-${IMAGE_ARCH} "
355
+ IMAGE_NAME=" microshift-4.17 -bootc:linux-${IMAGE_ARCH} "
353
356
354
357
sudo podman build --authfile " ${PULL_SECRET} " -t " ${IMAGE_NAME} " \
355
358
--platform " ${IMAGE_PLATFORM} " \
356
359
--build-arg USER_PASSWD=" ${USER_PASSWD} " \
357
360
-f Containerfile
358
361
```
359
362
360
- Verify that the local MicroShift 4.16 ` bootc ` image was created for the specified
363
+ Verify that the local MicroShift 4.17 ` bootc ` image was created for the specified
361
364
platform.
362
365
363
366
``` bash
364
367
$ sudo podman images " ${IMAGE_NAME} "
365
368
REPOSITORY TAG IMAGE ID CREATED SIZE
366
- localhost/microshift-4.16 -bootc linux-amd64 3f7e136fccb5 13 minutes ago 2.19 GB
369
+ localhost/microshift-4.17 -bootc linux-amd64 3f7e136fccb5 13 minutes ago 2.19 GB
367
370
```
368
371
369
372
Repeat the procedure on the other platform (i.e. ` arm64 ` ) and proceed by publishing
@@ -383,7 +386,7 @@ and publish it to the remote registry.
383
386
``` bash
384
387
REGISTRY_URL=quay.io
385
388
REGISTRY_ORG=myorg/mypath
386
- BASE_NAME=microshift-4.16 -bootc
389
+ BASE_NAME=microshift-4.17 -bootc
387
390
MANIFEST_NAME=" ${BASE_NAME} :latest"
388
391
389
392
sudo podman manifest create -a " localhost/${MANIFEST_NAME} " \
@@ -409,6 +412,6 @@ $ sudo podman manifest inspect \
409
412
```
410
413
411
414
It is now possible to access images using the manifest name with the ` latest ` tag
412
- (e.g. ` quay.io/myorg/mypath/microshift-4.16 -bootc:latest ` ). The image for the
415
+ (e.g. ` quay.io/myorg/mypath/microshift-4.17 -bootc:latest ` ). The image for the
413
416
current platform will automatically be pulled from the registry if it is part of
414
417
the manifest list.
0 commit comments