Skip to content

Commit

Permalink
HAL-1894: Change JVM for WildFly images to 11
Browse files Browse the repository at this point in the history
  • Loading branch information
hpehl committed Nov 9, 2023
1 parent c67fbce commit 77db04e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions wildfly/build-wildfly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,17 +175,17 @@ else
if [[ "$WILDFLY_MAJOR_VERSION" -lt "24" ]]; then
BASE=docker.io/jboss/wildfly
fi
# Use JDK17 for for WildFly 27 and above
# Use JDK suffix for for WildFly 27 and above
if [[ "$WILDFLY_MAJOR_VERSION" -gt "26" ]]; then
WILDFLY_VERSION=$WILDFLY_VERSION-jdk17
WILDFLY_VERSION=$WILDFLY_VERSION-jdk11
fi

msg
msg "Build WildFly ${CYAN}standalone${NOFORMAT} ${YELLOW}${WILDFLY_VERSION}${NOFORMAT}"
${DOCKER} build \
--platform linux/amd64 \
--build-arg WILDFLY_VERSION="${WILDFLY_VERSION}" \
--build-arg DOCKER_BASE="${BASE}" \
--build-arg WILDFLY_BASE="${BASE}" \
--file src/main/docker/Dockerfile-standalone \
--tag "${TAG}:${TAG_VERSION}" \
.
Expand All @@ -195,7 +195,7 @@ else
${DOCKER} build \
--platform linux/amd64 \
--build-arg WILDFLY_VERSION="${WILDFLY_VERSION}" \
--build-arg DOCKER_BASE="${BASE}" \
--build-arg WILDFLY_BASE="${BASE}" \
--file src/main/docker/Dockerfile-domain \
--tag "${TAG_DOMAIN}:${TAG_VERSION}" \
.
Expand Down
4 changes: 2 additions & 2 deletions wildfly/src/main/docker/Dockerfile-domain
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#

ARG WILDFLY_VERSION=latest
ARG DOCKER_BASE=jboss/wildfly
FROM ${DOCKER_BASE}:${WILDFLY_VERSION}
ARG WILDFLY_BASE=jboss/wildfly
FROM ${WILDFLY_BASE}:${WILDFLY_VERSION}

LABEL maintainer="Harald Pehl <[email protected]>"

Expand Down
1 change: 0 additions & 1 deletion wildfly/src/main/docker/Dockerfile-domain-development
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ ENV JBOSS_HOME /opt/jboss/wildfly
ARG WILDFLY_VERSION
COPY wildfly-${WILDFLY_VERSION}.tar.gz /


USER root
ARG WILDFLY_VERSION
RUN tar xf /wildfly-${WILDFLY_VERSION}.tar.gz --directory=/ \
Expand Down
4 changes: 2 additions & 2 deletions wildfly/src/main/docker/Dockerfile-standalone
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#

ARG WILDFLY_VERSION=latest
ARG DOCKER_BASE=jboss/wildfly
FROM ${DOCKER_BASE}:${WILDFLY_VERSION}
ARG WILDFLY_BASE=jboss/wildfly
FROM ${WILDFLY_BASE}:${WILDFLY_VERSION}

LABEL maintainer="Harald Pehl <[email protected]>"

Expand Down

0 comments on commit 77db04e

Please sign in to comment.