This closes #4215
This commit is contained in:
commit
abeed34449
|
@ -39,7 +39,7 @@ Usage:
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
./prepare-docker.sh --from-local-dist --local-dist-path ../artemis-distribution/target/apache-artemis-2.17.0-SNAPSHOT-bin/apache-artemis-2.17.0-SNAPSHOT
|
./prepare-docker.sh --from-local-dist --local-dist-path ../artemis-distribution/target/apache-artemis-2.17.0-SNAPSHOT-bin/apache-artemis-2.17.0-SNAPSHOT
|
||||||
./prepare-docker.sh --from-release --artemis-version 2.16.0
|
./prepare-docker.sh --from-release --artemis-version 2.16.0
|
||||||
|
|
||||||
HERE
|
HERE
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -51,7 +51,7 @@ next_step () {
|
||||||
Well done! Now you can continue with the Docker image build.
|
Well done! Now you can continue with the Docker image build.
|
||||||
Building the Docker Image:
|
Building the Docker Image:
|
||||||
Go to $ARTEMIS_DIST where you prepared the binary with Docker files.
|
Go to $ARTEMIS_DIST where you prepared the binary with Docker files.
|
||||||
|
|
||||||
# Go to $ARTEMIS_DIST
|
# Go to $ARTEMIS_DIST
|
||||||
$ cd $ARTEMIS_DIST
|
$ cd $ARTEMIS_DIST
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ Building the Docker Image:
|
||||||
# For AdoptOpen JDK 11 (Build for linux ARMv7/ARM64)
|
# For AdoptOpen JDK 11 (Build for linux ARMv7/ARM64)
|
||||||
$ docker buildx build --platform linux/arm64,linux/arm/v7 --push -t {your-repository}/apache-artemis:2.17.0-SNAPSHOT -f ./docker/Dockerfile-eclipse-temurin-11 .
|
$ docker buildx build --platform linux/arm64,linux/arm/v7 --push -t {your-repository}/apache-artemis:2.17.0-SNAPSHOT -f ./docker/Dockerfile-eclipse-temurin-11 .
|
||||||
|
|
||||||
Note: -t artemis-debian, -t artemis-centos and artemis-eclipse-temurin-11 are just
|
Note: -t artemis-debian, -t artemis-centos and artemis-eclipse-temurin-11 are just
|
||||||
tag names for the purpose of this guide
|
tag names for the purpose of this guide
|
||||||
|
|
||||||
For more info read the readme.md
|
For more info read the readme.md
|
||||||
|
@ -123,11 +123,17 @@ if [ -n "${FROM_RELEASE}" ]; then
|
||||||
[ -n "${ARTEMIS_VERSION}" ] || usage "You must specify the release version (es.: --artemis-version 2.16.0)"
|
[ -n "${ARTEMIS_VERSION}" ] || usage "You must specify the release version (es.: --artemis-version 2.16.0)"
|
||||||
|
|
||||||
cleanup
|
cleanup
|
||||||
|
|
||||||
ARTEMIS_BASE_URL="$(curl -s https://www.apache.org/dyn/closer.cgi\?preferred=true)activemq/activemq-artemis/${ARTEMIS_VERSION}/"
|
ARTEMIS_BASE_URL="$(curl -s https://www.apache.org/dyn/closer.cgi\?preferred=true)activemq/activemq-artemis/${ARTEMIS_VERSION}/"
|
||||||
ARTEMIS_DIST_FILE_NAME="apache-artemis-${ARTEMIS_VERSION}-bin.tar.gz"
|
ARTEMIS_DIST_FILE_NAME="apache-artemis-${ARTEMIS_VERSION}-bin.tar.gz"
|
||||||
CURL_OUTPUT="${BASE_TMPDIR}/${ARTEMIS_VERSION}/${ARTEMIS_DIST_FILE_NAME}"
|
CURL_OUTPUT="${BASE_TMPDIR}/${ARTEMIS_VERSION}/${ARTEMIS_DIST_FILE_NAME}"
|
||||||
|
|
||||||
|
# Fallback to the Apache archive if the version doesn't exist on the CDN anymore
|
||||||
|
if [ -z "$(curl -Is ${ARTEMIS_BASE_URL}${ARTEMIS_DIST_FILE_NAME} | head -n 1 | grep 200)" ]
|
||||||
|
then
|
||||||
|
ARTEMIS_BASE_URL="https://archive.apache.org/dist/activemq/activemq-artemis/${ARTEMIS_VERSION}/"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$(ls -A ${BASE_TMPDIR}/${ARTEMIS_VERSION})" ]
|
if [ -z "$(ls -A ${BASE_TMPDIR}/${ARTEMIS_VERSION})" ]
|
||||||
then
|
then
|
||||||
echo "Downloading ${ARTEMIS_DIST_FILE_NAME} from ${ARTEMIS_BASE_URL}..."
|
echo "Downloading ${ARTEMIS_DIST_FILE_NAME} from ${ARTEMIS_BASE_URL}..."
|
||||||
|
@ -141,15 +147,15 @@ if [ -n "${FROM_RELEASE}" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ARTEMIS_DIST="${BASE_TMPDIR}/${ARTEMIS_VERSION}"
|
ARTEMIS_DIST="${BASE_TMPDIR}/${ARTEMIS_VERSION}"
|
||||||
|
|
||||||
echo "Using Artemis dist: ${ARTEMIS_DIST}"
|
echo "Using Artemis dist: ${ARTEMIS_DIST}"
|
||||||
|
|
||||||
elif [ -n "${FROM_LOCAL}" ]; then
|
elif [ -n "${FROM_LOCAL}" ]; then
|
||||||
|
|
||||||
if [ -n "${LOCAL_DIST_PATH}" ]; then
|
if [ -n "${LOCAL_DIST_PATH}" ]; then
|
||||||
ARTEMIS_DIST=${LOCAL_DIST_PATH}
|
ARTEMIS_DIST=${LOCAL_DIST_PATH}
|
||||||
echo "Using Artemis dist: ${ARTEMIS_DIST}"
|
echo "Using Artemis dist: ${ARTEMIS_DIST}"
|
||||||
else
|
else
|
||||||
usage "You must specify the local distribution directory"
|
usage "You must specify the local distribution directory"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue