Skip to content

Commit

Permalink
Build and publish layered product containers
Browse files Browse the repository at this point in the history
  • Loading branch information
ggiguash committed Aug 18, 2024
1 parent d9bea00 commit 0f4e294
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions docs/contributor/layered_product_ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ can be conducted manually or integrated into the package CI/CD processes. See
## Build and Publish MicroShift Container Image

Follow the instructions in the [Build Image](./image_mode.md#build-image) section
to implement the MicroShift container build procedure.
to implement the MicroShift container image layer build procedure.

> Prebuilt MicroShift bootc container images are not currently available for
> download.
Expand All @@ -25,7 +25,7 @@ product to be tested. A typical customization would be to select a custom versio
of MicroShift, which may also include pre-released ones that are published at
[OpenShift Mirror](mirror.openshift.com).

**Example 1: MicroShift 4.17 Engineering Candidate Packages**
**Example: MicroShift 4.17 Engineering Candidate Packages (fragment)**

```docker
ARG USHIFT_VER=4.17
Expand Down Expand Up @@ -53,7 +53,7 @@ RUN dnf install -y firewalld microshift && \
dnf clean all
```

**Example 2: MicroShift 4.16 Release Candidate Packages**
**Example: MicroShift 4.16 Release Candidate Packages (fragment)**

```docker
ARG USHIFT_VER=4.16
Expand Down Expand Up @@ -82,11 +82,34 @@ RUN dnf install -y firewalld microshift && \
```

Finally, follow the instructions in the [Publish Image](./image_mode.md#publish-image)
section to push the images to a container registry.
section to push the MicroShift images to a container registry.

## Build and Publish Product Container Image
## Build and Publish Layered Product Container Image

Follow the instructions in the [Build Image](./image_mode.md#build-image) section
to implement the Layered Product container image layer build procedure.

Customize the `Containerfile` file according to the requirements of the layered
product to be tested. A typical customization would be to select a custom version
of the Layered Product and install it on top of the base MicroShift container image.

**Example: MicroShift GitOps 1.12 Packages (complete)**

```docker
FROM quay.io/myorg/mypath/microshift-4.16-bootc
ARG GITOPS_VER=1.12
RUN dnf config-manager --set-enabled gitops-${GITOPS_VER}-for-rhel-9-$(uname -m)-rpms
RUN dnf install -y microshift-gitops && \
dnf clean all
```

> The `FROM` statement should be updated to denote a valid reference to the base
> MicroShift container image.
Finally, follow the instructions in the [Publish Image](./image_mode.md#publish-image)
section to push the Layered Product images to a container registry.

## Run Container Image
## Run Layered Product Container Image

## Run Layered Product Tests

0 comments on commit 0f4e294

Please sign in to comment.