This is an automated email from the ASF dual-hosted git repository.
robbie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/artemis.git
The following commit(s) were added to refs/heads/main by this push:
new 029b8758cb ARTEMIS-5904 Add Podman support for container image releases
029b8758cb is described below
commit 029b8758cb55ce0f60e0b447e2c67eb73923c7ed
Author: Domenico Francesco Bruscino <[email protected]>
AuthorDate: Wed Feb 18 17:06:37 2026 +0100
ARTEMIS-5904 Add Podman support for container image releases
---
RELEASING.adoc | 32 +++++++++++++++++++++---
scripts/release-docker.sh | 2 +-
scripts/{release-docker.sh => release-podman.sh} | 16 +++++++-----
3 files changed, 39 insertions(+), 11 deletions(-)
diff --git a/RELEASING.adoc b/RELEASING.adoc
index 8a259824fd..3180ed8248 100644
--- a/RELEASING.adoc
+++ b/RELEASING.adoc
@@ -587,24 +587,48 @@ git push origin main development <release-version>
NOTE: The `main` branch CI build does not build Artemis so the release must be
available on Maven Central _before_ pushing main or the build will fail.
The `development` branch will check out the Artemis' `main` branch and build
against that or it can be manually triggered and pointed to e.g a release tag.
-== Upload Docker Images
+== Upload Container Images
+
+Container images can be built and uploaded using either Docker or Podman.
+
+=== Prerequisites
. If you don't have an account on https://hub.docker.com/ then create one.
+. Ensure you have access to push images to `apache/artemis`. If you don't have
access you can request it by creating an INFRA Jira ticket (e.g.
https://issues.apache.org/jira/browse/INFRA-27638[INFRA-27638]).
+
+=== Using Docker
+
. https://docs.docker.com/engine/install/[Install `docker`] in your
environment.
. If you don't already have it, then install the
https://github.com/docker/buildx#installing[`buildx` Docker plugin] to support
multi-platform builds because `release-docker.sh` will create images for both
`linux/amd64` and `linux/arm64`. This, of course, requires the base images from
Eclipse Temurin to support these platforms as well (which they do).
-. Ensure you have access to push images to `apache/artemis`. If you don't have
access you can request it by creating an INFRA Jira ticket (e.g.
https://issues.apache.org/jira/browse/INFRA-24831[INFRA-24831]).
. Go to the `scripts` directory and run `release-docker.sh` with the proper
parameters, e.g.:
+
[,console]
----
-./release-docker.sh 2.31.0 apache
+./release-docker.sh 2.50.0 apache
+----
++
+You can easily perform a test run by using your personal account, e.g.:
++
+[,console]
+----
+./release-docker.sh 2.50.0 myUsername
+----
+
+=== Using Podman
+
+. https://podman.io/getting-started/installation[Install `podman`] in your
environment.
+. Go to the `scripts` directory and run `release-podman.sh` with the proper
parameters, e.g.:
++
+[,console]
+----
+./release-podman.sh 2.50.0 apache
----
+
You can easily perform a test run by using your personal account, e.g.:
+
[,console]
----
-./release-docker.sh 2.31.0 myUsername
+./release-podman.sh 2.50.0 myUsername
----
== Send Announcement Email
diff --git a/scripts/release-docker.sh b/scripts/release-docker.sh
index 89b8e05f3b..42862f6fff 100755
--- a/scripts/release-docker.sh
+++ b/scripts/release-docker.sh
@@ -20,7 +20,7 @@ set -e
if [ $# -ne 2 ]
then
- echo "Please supply version and repository name as parameters, e.g.
./release-docker 2.30.0 apache"
+ echo "Please supply version and repository name as parameters, e.g.
./release-docker 2.50.0 apache"
exit
fi
diff --git a/scripts/release-docker.sh b/scripts/release-podman.sh
similarity index 57%
copy from scripts/release-docker.sh
copy to scripts/release-podman.sh
index 89b8e05f3b..0777624d10 100755
--- a/scripts/release-docker.sh
+++ b/scripts/release-podman.sh
@@ -20,7 +20,7 @@ set -e
if [ $# -ne 2 ]
then
- echo "Please supply version and repository name as parameters, e.g.
./release-docker 2.30.0 apache"
+ echo "Please supply version and repository name as parameters, e.g.
./release-podman 2.50.0 apache"
exit
fi
@@ -31,8 +31,12 @@ cd ../artemis-docker
rm -Rf target/
./prepare-docker.sh --from-release --artemis-version ${VERSION}
cd target/artemis/${VERSION}
-docker pull eclipse-temurin:25-jre-alpine
-docker pull eclipse-temurin:25-jre
-docker login
-docker buildx build --platform linux/amd64,linux/arm64 -f
./docker/Dockerfile-alpine-25-jre -t ${REPO}/artemis:${VERSION}-alpine -t
${REPO}/artemis:latest-alpine --push .
-docker buildx build --platform linux/amd64,linux/arm64 -f
./docker/Dockerfile-ubuntu-25-jre -t ${REPO}/artemis:${VERSION} -t
${REPO}/artemis:latest --push .
+podman pull eclipse-temurin:25-jre-alpine
+podman pull eclipse-temurin:25-jre
+podman login
+podman build --platform linux/amd64,linux/arm64 --manifest
localhost/artemis:${VERSION}-alpine -f ./docker/Dockerfile-alpine-25-jre .
+podman build --platform linux/amd64,linux/arm64 --manifest
localhost/artemis:${VERSION} -f ./docker/Dockerfile-ubuntu-25-jre .
+podman manifest push --all localhost/artemis:${VERSION}-alpine
docker://${REPO}/artemis:${VERSION}-alpine
+podman manifest push --all localhost/artemis:${VERSION}-alpine
docker://${REPO}/artemis:latest-alpine
+podman manifest push --all localhost/artemis:${VERSION}
docker://${REPO}/artemis:${VERSION}
+podman manifest push --all localhost/artemis:${VERSION}
docker://${REPO}/artemis:latest
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]