Skip to content

Commit

Permalink
merge main -> ce/main 107374
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//dev/coherence-ce/main/": change = 107376]
  • Loading branch information
thegridman committed Mar 11, 2024
1 parent c4143d7 commit 18e807a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
12 changes: 10 additions & 2 deletions prj/coherence-docker/build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ common_image(){
# clear the JAVA_HOME env var configuration as we only set it
# for images where we download a JDK
ENV_VARS_JAVA_HOME=""
ADD_JAVA21_DEPS="false"

if [ "${5}" != "" ]
then
Expand Down Expand Up @@ -211,6 +212,7 @@ common_image(){
rm -rf "/tmp${IMAGE_JAVA_HOME}"
# Set the JAVA_HOME env var to the downloaded JDK
ENV_VARS_JAVA_HOME="-e JAVA_HOME=${IMAGE_JAVA_HOME}"
ADD_JAVA21_DEPS="true"
fi

# Create the container from the base image, setting the architecture and O/S
Expand Down Expand Up @@ -273,8 +275,14 @@ fi
"container-${1}"

# Copy files into the container
buildah copy "container-${1}" "${BASEDIR}/target/docker" /
buildah copy "container-${1}" "${BASEDIR}/target/*.jar" /app/libs
buildah copy "container-${1}" "${BASEDIR}/target/docker/app" /app
buildah copy "container-${1}" "${BASEDIR}/target/docker/args" /args
buildah copy "container-${1}" "${BASEDIR}/target/*.jar" /app/libs

if [ "${ADD_JAVA21_DEPS}" == "true" ]
then
buildah copy "container-${1}" "${BASEDIR}/target/docker/java21/app" /app
fi

# Commit the container to an image
buildah commit "container-${1}" "coherence:${1}"
Expand Down
15 changes: 15 additions & 0 deletions prj/coherence-docker/src/assembly/image-assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,21 @@
<fileMode>755</fileMode>
<unpack>false</unpack>
<useProjectArtifact>false</useProjectArtifact>
<excludes>
<exclude>${coherence.group.id}:coherence-ai</exclude>
</excludes>
</dependencySet>

<!-- Java 21+ dependencies -->
<dependencySet>
<outputDirectory>java21/app/libs</outputDirectory>
<directoryMode>755</directoryMode>
<fileMode>755</fileMode>
<unpack>false</unpack>
<useProjectArtifact>false</useProjectArtifact>
<includes>
<include>${coherence.group.id}:coherence-ai</include>
</includes>
</dependencySet>
<!--
Helidon gRPC is marked as provided so that it is not
Expand Down

0 comments on commit 18e807a

Please sign in to comment.