Skip to content

Commit 7071aa2

Browse files
committed
Docker build (4.0.2) commit
1 parent 3fa9249 commit 7071aa2

2 files changed

Lines changed: 11 additions & 25 deletions

File tree

docker/javacommons-hazelcast/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN ls /workspace/built-jars/
2626
#
2727
# Now we got JAR's - time to setup hazelcast
2828
#
29-
FROM hazelcast/hazelcast:3.11.4 as javacommons-hazelcast
29+
FROM hazelcast/hazelcast:4.0.2 as javacommons-hazelcast
3030

3131
# Copy over the relevent classpath
3232
ENV CLASSPATH="/opt/hazelcast/CLASSPATH_EXT:/opt/hazelcast/CLASSPATH_EXT/*"
@@ -35,8 +35,8 @@ COPY --from=builder /workspace/built-jars/* /opt/hazelcast/CLASSPATH_EXT/
3535
# Adding custom hazelcast.xml
3636
ADD hazelcast.xml /hazelcast.xml
3737

38-
# group name support (also known as cluster name)
39-
ENV GROUP_NAME "hazelcast"
38+
# cluster name support (also known as cluster name)
39+
ENV CLUSTER_NAME "hazelcast"
4040

4141
# minimum init cluster size and wait timing
4242
ENV CLUSTER_INIT_MIN_SIZE 2

docker/javacommons-hazelcast/hazelcast.xml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
~ Copyright (c) 2008-2015, Hazelcast, Inc. All Rights Reserved.
4-
~
5-
~ Licensed under the Apache License, Version 2.0 (the "License");
6-
~ you may not use this file except in compliance with the License.
7-
~ You may obtain a copy of the License at
8-
~
9-
~ http://www.apache.org/licenses/LICENSE-2.0
10-
~
11-
~ Unless required by applicable law or agreed to in writing, software
12-
~ distributed under the License is distributed on an "AS IS" BASIS,
13-
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
~ See the License for the specific language governing permissions and
15-
~ limitations under the License.
3+
Hazelcast config - specific for javacommons build, using DNS discovery
164
-->
17-
18-
<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.9.xsd"
19-
xmlns="http://www.hazelcast.com/schema/config"
20-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5+
<!--suppress XmlDefaultAttributeValue -->
6+
<hazelcast xmlns="http://www.hazelcast.com/schema/config"
7+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
8+
xsi:schemaLocation="http://www.hazelcast.com/schema/config
9+
http://www.hazelcast.com/schema/config/hazelcast-config-4.1.xsd">
2110
<!--
22-
Hazelcast group name support - note this is to be deprecated as "clustername" in future
23-
See: https://docs.hazelcast.org/docs/latest-dev/manual/html-single/#changes-in-security-configurations
11+
Hazelcast cluster name support
2412
-->
25-
<group>
26-
<name>${env.GROUP_NAME}</name>
27-
</group>
13+
<cluster-name>${env.CLUSTER_NAME}</cluster-name>
2814

2915
<!--
3016
Enable DNS based discovery

0 commit comments

Comments
 (0)