-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
21 lines (16 loc) · 1010 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# syntax=docker/dockerfile:1
FROM bradbeck/nexus-ha
LABEL name="Nexus Repository Manager (swarm)"
ARG HS_VERSION=1.0.1
ARG HS_JAR=hazelcast-swarm-${HS_VERSION}.jar
ARG HS_MAVEN_PATH=org/sonatype/hazelcast/hazelcast-swarm/${HS_VERSION}/${HS_JAR}
ARG HS_DOWNLOAD_URL=https://search.maven.org/remotecontent?filepath=${HS_MAVEN_PATH}
USER root
ADD ${HS_DOWNLOAD_URL} /opt/sonatype/nexus/system/${HS_MAVEN_PATH}
ADD hazelcast-network-default.xml /opt/sonatype/nexus/etc/fabric/hazelcast-network-default.xml
RUN chmod 644 /opt/sonatype/nexus/system/${HS_MAVEN_PATH} && \
sed -i '/mvn:com.sonatype.nexus.plugins\/nexus-hazelcast-plugin/a\ <bundle>mvn:org.sonatype.hazelcast/hazelcast-swarm/'${HS_VERSION}'</bundle>' \
/opt/sonatype/nexus/system/com/sonatype/nexus/assemblies/nexus-flags-feature/*/nexus-flags-feature-*-features.xml && \
sed -i '/<properties>/a\ <property name="hazelcast.discovery.enabled">true</property>' \
/opt/sonatype/nexus/etc/fabric/hazelcast.xml
USER nexus