Skip to content

Commit fe50e3d

Browse files
Merge pull request #4215 from ggiguash/bootc_getting_started
USHIFT-4699: Update bootc instructions with 4.17 version
2 parents 79efbfe + 2caeaee commit fe50e3d

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

docs/config/Containerfile.bootc-rhel9

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM registry.redhat.io/rhel9/rhel-bootc:9.4
22

3-
ARG USHIFT_VER=4.16
3+
ARG USHIFT_VER=4.17
44
RUN dnf config-manager \
55
--set-enabled "rhocp-${USHIFT_VER}-for-rhel-9-$(uname -m)-rpms" \
66
--set-enabled "fast-datapath-for-rhel-9-$(uname -m)-rpms"

docs/contributor/image_mode.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,20 @@ image from the `registry.redhat.io` registry
5656

5757
```bash
5858
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
6161

6262
sudo podman build --authfile "${PULL_SECRET}" -t "${IMAGE_NAME}" \
6363
--build-arg USER_PASSWD="${USER_PASSWD}" \
6464
-f Containerfile
6565
```
6666

67-
Verify that the local MicroShift 4.16 `bootc` image was created.
67+
Verify that the local MicroShift 4.17 `bootc` image was created.
6868

6969
```bash
7070
$ sudo podman images "${IMAGE_NAME}"
7171
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
7373
```
7474

7575
### Publish Image
@@ -110,7 +110,7 @@ $ find /lib/modules/$(uname -r) -name "openvswitch*"
110110
/lib/modules/6.9.9-200.fc40.x86_64/kernel/net/openvswitch
111111
/lib/modules/6.9.9-200.fc40.x86_64/kernel/net/openvswitch/openvswitch.ko.xz
112112

113-
$ IMAGE_NAME=microshift-4.16-bootc
113+
$ IMAGE_NAME=microshift-4.17-bootc
114114
$ sudo podman inspect "${IMAGE_NAME}" | grep kernel-core
115115
"created_by": "kernel-core-5.14.0-427.26.1.el9_4.x86_64"
116116
```
@@ -183,7 +183,7 @@ The host shares the following configuration with the container:
183183
184184
```bash
185185
PULL_SECRET=~/.pull-secret.json
186-
IMAGE_NAME=microshift-4.16-bootc
186+
IMAGE_NAME=microshift-4.17-bootc
187187
188188
sudo modprobe openvswitch
189189
sudo podman run --rm -it --privileged \
@@ -229,10 +229,13 @@ gaining access to private container registries:
229229
pre-install stage to authenticate `quay.io/myorg` registry access
230230
* `PULL_SECRET` file contents are copied to `/etc/crio/openshift-pull-secret`
231231
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
232234

233235
```bash
234236
AUTH_CONFIG=~/.quay-auth.json
235237
PULL_SECRET=~/.pull-secret.json
238+
IMAGE_REF="quay.io/<myorg>/<mypath>/microshift-4.17-bootc"
236239
```
237240

238241
> See the `containers-auth.json(5)` manual pages for more information on the
@@ -278,7 +281,7 @@ EOF
278281
%end
279282
280283
# Pull a 'bootc' image from a remote registry
281-
ostreecontainer --url quay.io/myorg/mypath/microshift-4.16-bootc
284+
ostreecontainer --url "${IMAGE_REF}"
282285
283286
%post --log=/dev/console --erroronfail
284287
@@ -309,7 +312,7 @@ previous step to pull a `bootc` image from the remote registry and use it to ins
309312
the RHEL operating system.
310313

311314
```bash
312-
VMNAME=microshift-4.16-bootc
315+
VMNAME=microshift-4.17-bootc
313316
NETNAME=default
314317

315318
sudo virt-install \
@@ -346,24 +349,24 @@ manner to create multi-architecture images.
346349

347350
```bash
348351
PULL_SECRET=~/.pull-secret.json
349-
USER_PASSWD=<your_redhat_user_password>
352+
USER_PASSWD="<your_redhat_user_password>"
350353
IMAGE_ARCH=amd64 # Use amd64 or arm64 depending on the current platform
351354
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}"
353356

354357
sudo podman build --authfile "${PULL_SECRET}" -t "${IMAGE_NAME}" \
355358
--platform "${IMAGE_PLATFORM}" \
356359
--build-arg USER_PASSWD="${USER_PASSWD}" \
357360
-f Containerfile
358361
```
359362

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
361364
platform.
362365

363366
```bash
364367
$ sudo podman images "${IMAGE_NAME}"
365368
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
367370
```
368371

369372
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.
383386
```bash
384387
REGISTRY_URL=quay.io
385388
REGISTRY_ORG=myorg/mypath
386-
BASE_NAME=microshift-4.16-bootc
389+
BASE_NAME=microshift-4.17-bootc
387390
MANIFEST_NAME="${BASE_NAME}:latest"
388391

389392
sudo podman manifest create -a "localhost/${MANIFEST_NAME}" \
@@ -409,6 +412,6 @@ $ sudo podman manifest inspect \
409412
```
410413

411414
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
413416
current platform will automatically be pulled from the registry if it is part of
414417
the manifest list.

packaging/imagemode/Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,9 @@ clean:
132132
4.16-el94:
133133
@$(MAKE) rhocp USHIFT_VER=4.16
134134

135-
.PHONY: 4.17-rc-el94
136-
4.17-rc-el94:
137-
@$(MAKE) repourl \
138-
USHIFT_URL=https://mirror.openshift.com/pub/openshift-v4/$$(uname -m)/microshift/ocp/latest-4.17/el9/os/ \
139-
OCPDEP_URL=https://mirror.openshift.com/pub/openshift-v4/$$(uname -m)/dependencies/rpms/4.17-el9-beta/
135+
.PHONY: 4.17-el94
136+
4.17-el94:
137+
@$(MAKE) rhocp USHIFT_VER=4.17
140138

141139
.PHONY: 4.18-ec-cos9
142140
4.18-ec-cos9:

0 commit comments

Comments
 (0)