-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from brenthdaniel/21003
Update to 21.0.0.3 and improve parameterization
- Loading branch information
Showing
2 changed files
with
15 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,38 @@ | ||
#!/bin/bash -e | ||
SCRIPT_DIR=$(dirname $0) | ||
|
||
# Build Java 8 builder image | ||
JAVA8_BASE_IMAGE_NAME="ibmcom/websphere-liberty:${LIBERTY_VERSION}-full-java8-openj9-ubi" | ||
JAVA11_BASE_IMAGE_NAME="ibmcom/websphere-liberty:${LIBERTY_VERSION}-full-java11-openj9-ubi" | ||
|
||
echo "Building Java 8 Builder Image" | ||
pushd ${SCRIPT_DIR}/images/java8/builder | ||
cekit build docker | ||
cekit build --overrides '{"from": "'"${JAVA8_BASE_IMAGE_NAME}"'"}' --overrides '{"version": "'"${JAVA8_IMAGE_VERSION}"'"}' docker | ||
popd | ||
|
||
# Build Java 8 runtime image | ||
echo "Building Java 8 Runtime Image" | ||
pushd ${SCRIPT_DIR}/images/java8/runtime | ||
cekit build docker | ||
cekit build --overrides '{"from": "'"${JAVA8_BASE_IMAGE_NAME}"'"}' --overrides '{"version": "'"${JAVA8_RUNTIME_IMAGE_VERSION}"'"}' docker | ||
popd | ||
|
||
# Test Java 8 image if TEST_MODE is set | ||
if [[ ! -z "${TEST_MODE:-}" ]]; then | ||
echo Testing version ${JAVA8_IMAGE_VERSION} | ||
echo "Testing versions ${JAVA8_IMAGE_VERSION} and ${JAVA8_RUNTIME_IMAGE_VERSION}" | ||
IMAGE_VERSION=${JAVA8_IMAGE_VERSION}; RUNTIME_IMAGE_VERSION=${JAVA8_RUNTIME_IMAGE_VERSION}; . ${SCRIPT_DIR}/test/run | ||
fi | ||
|
||
# Build Java 11 builder image | ||
echo "Building Java 11 Builder Image" | ||
pushd ${SCRIPT_DIR}/images/java11/builder | ||
cekit build docker | ||
cekit build --overrides '{"from": "'"${JAVA11_BASE_IMAGE_NAME}"'"}' --overrides '{"version": "'"${JAVA11_IMAGE_VERSION}"'"}' docker | ||
popd | ||
|
||
# Build Java 11 runtime image | ||
echo "Building Java 11 Runtime Image" | ||
pushd ${SCRIPT_DIR}/images/java11/runtime | ||
cekit build docker | ||
cekit build --overrides '{"from": "'"${JAVA11_BASE_IMAGE_NAME}"'"}' --overrides '{"version": "'"${JAVA11_RUNTIME_IMAGE_VERSION}"'"}' docker | ||
popd | ||
|
||
# Test Java 11 image if TEST_MODE is set | ||
if [[ ! -z "${TEST_MODE:-}" ]]; then | ||
echo Testing version ${JAVA11_IMAGE_VERSION} | ||
echo "Testing versions ${JAVA11_IMAGE_VERSION} and ${JAVA11_RUNTIME_IMAGE_VERSION}" | ||
IMAGE_VERSION=${JAVA11_IMAGE_VERSION}; RUNTIME_IMAGE_VERSION=${JAVA11_RUNTIME_IMAGE_VERSION}; . ${SCRIPT_DIR}/test/run | ||
fi | ||
|