Skip to content
Open
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
28 changes: 26 additions & 2 deletions RELEASING.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -587,12 +587,19 @@ 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]
Expand All @@ -607,6 +614,23 @@ You can easily perform a test run by using your personal account, e.g.:
./release-docker.sh 2.31.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.31.0 apache
----
+
You can easily perform a test run by using your personal account, e.g.:
+
[,console]
----
./release-podman.sh 2.31.0 myUsername
----

== Send Announcement Email

Once the website is updated then send an email to `users@artemis.apache.org` & `dev@artemis.apache.org` with a subject like:
Expand Down
42 changes: 42 additions & 0 deletions scripts/release-podman.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

set -e

if [ $# -ne 2 ]
then
echo "Please supply version and repository name as parameters, e.g. ./release-podman 2.30.0 apache"
exit
fi

VERSION=$1
REPO=$2

cd ../artemis-docker
rm -Rf target/
./prepare-docker.sh --from-release --artemis-version ${VERSION}
cd target/artemis/${VERSION}
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