Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/product_images_dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,15 @@ jobs:
-
name: Build and push images on dispatch
shell: bash
run: python build_product_images.py -p ${{ github.event.inputs.product }} -i ${{ github.event.inputs.image-version }} -o ${{ github.event.inputs.organization }} -a ${{ github.event.inputs.architecture }} -u
run: python -m image_tools.bake -p ${{ github.event.inputs.product }} -i ${{ github.event.inputs.image-version }} -o ${{ github.event.inputs.organization }} -a ${{ github.event.inputs.architecture }} -u

-
name: Install preflight
run: |
curl -fLo preflight https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/latest/download/preflight-linux-amd64
chmod +x preflight

-
name: Run preflight
shell: bash
run: python -m image_tools.preflight -p ${{ github.event.inputs.product }} -i ${{ github.event.inputs.image-version }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
username: github
password: ${{ secrets.NEXUS_PASSWORD }}
- name: Build and push images (single arch)
run: python build_product_images.py --product "${{ matrix.product }}" --image-version "$GITHUB_REF_NAME" --organization stackable --architecture linux/amd64 --push
run: python -m image_tools.bake --product "${{ matrix.product }}" --image-version "$GITHUB_REF_NAME" --organization stackable --architecture linux/amd64 --push
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ All notable changes to this project will be documented in this file.
- Prometheus image, NodeExporter image, Antora ([#95]).
- Retired Java 1.8.0 support ([#248]).
- Tools image ([#325]).
- Replace `build_product_images.py` with the `image_tools` package and add OpenShift preflight checks for images ([#339])

[#95]: https://github.com/stackabletech/docker-images/pull/95
[#248]: https://github.com/stackabletech/docker-images/pull/248
Expand All @@ -30,3 +31,4 @@ All notable changes to this project will be documented in this file.
[#321]: https://github.com/stackabletech/docker-images/pull/321
[#325]: https://github.com/stackabletech/docker-images/pull/325
[#326]: https://github.com/stackabletech/docker-images/pull/326
[#339]: https://github.com/stackabletech/docker-images/pull/339
17 changes: 9 additions & 8 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,20 @@ USER 1000:1000
ENTRYPOINT ["/stackable-zookeeper-operator"]
----

== Product images
== Build Product Images

Product images are used by stackable operators to set up service clusters. For example, the Apache ZooKeeper product image contains Apache ZooKeeper and some additional things required to monitor and set up containers corectly.

Product images are tagged with `<product-version>-<image-version>` tags. The `product-version` is the version of the product installed in the image and `image-version` is the version of the image as referenced by the stackable plattform.

Product images are published to the `docker.stackable.tech` registry.
Product images are published to the `docker.stackable.tech` registry under the `stackable` organization.

To build and push product images to the default repository, use the `build_product_images.py` like this:

build_product_images.py -p zookeeper -i 0.1 -u
python -m image_tools.bake --product zookeeper --image 23.1.0-dev --push

This will build images for Apache ZooKeeper versions as defined in the `conf.py` and tag them with `image-version` 0.1.
This will build images for Apache ZooKeeper versions as defined in the `image_tools/conf.py` and tag them with the `image-version` 23.1.0-dev

The GitHub action called `Product images` can be triggered manually to do the same but not on the local machine.

== Verify Product Images

To verify if Apache Zookeeper validate against OpenShift preflight, run:

python -m image_tools.preflight --product zookeeper --image 23.1.0-dev
283 changes: 0 additions & 283 deletions build_product_images.py

This file was deleted.

1 change: 1 addition & 0 deletions image_tools/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Tools for image management."""
Loading