forked from sonatype/docker-nexus3
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #20 from sonatype/main
[pull] main from sonatype:main
- Loading branch information
Showing
9 changed files
with
122 additions
and
224 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
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 |
---|---|---|
|
@@ -17,8 +17,8 @@ FROM alpine | |
LABEL name="Nexus Repository Manager" \ | ||
maintainer="Sonatype <[email protected]>" \ | ||
vendor=Sonatype \ | ||
version="3.70.1-02" \ | ||
release="3.70.1" \ | ||
version="3.71.0-06" \ | ||
release="3.71.0" \ | ||
url="https://sonatype.com" \ | ||
summary="The Nexus Repository Manager server \ | ||
with universal support for popular component formats." \ | ||
|
@@ -36,10 +36,9 @@ LABEL name="Nexus Repository Manager" \ | |
io.openshift.expose-services="8081:8081" \ | ||
io.openshift.tags="Sonatype,Nexus,Repository Manager" | ||
|
||
ARG NEXUS_VERSION=3.70.1-02 | ||
ARG JAVA_VERSION=java17 | ||
ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-${JAVA_VERSION}-unix.tar.gz | ||
ARG NEXUS_DOWNLOAD_SHA256_HASH=6878fab6416b86fe73b799d34afce2b0a91446d602edc892ed71efbb205be01b | ||
ARG NEXUS_VERSION=3.71.0-06 | ||
ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz | ||
ARG NEXUS_DOWNLOAD_SHA256_HASH=b025287558184677fc231035c9f5e5e6cc4bc1cafd76d13a06233a4ed09d08f6 | ||
|
||
# configure nexus runtime | ||
ENV SONATYPE_DIR=/opt/sonatype | ||
|
@@ -55,6 +54,9 @@ RUN apk add openjdk17 tar procps gzip curl shadow \ | |
&& groupadd --gid 200 -r nexus \ | ||
&& useradd --uid 200 -r nexus -g nexus -s /bin/false -d /opt/sonatype/nexus -c 'Nexus Repository Manager user' | ||
|
||
RUN apk del --no-cache openssl || true | ||
RUN apk update && apk add --no-cache openssl | ||
|
||
WORKDIR ${SONATYPE_DIR} | ||
|
||
# Download nexus & setup directories | ||
|
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 |
---|---|---|
|
@@ -17,8 +17,8 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal | |
LABEL name="Nexus Repository Manager" \ | ||
maintainer="Sonatype <[email protected]>" \ | ||
vendor=Sonatype \ | ||
version="3.70.1-02" \ | ||
release="3.70.1" \ | ||
version="3.71.0-06" \ | ||
release="3.71.0" \ | ||
url="https://sonatype.com" \ | ||
summary="The Nexus Repository Manager server \ | ||
with universal support for popular component formats." \ | ||
|
@@ -36,10 +36,9 @@ LABEL name="Nexus Repository Manager" \ | |
io.openshift.expose-services="8081:8081" \ | ||
io.openshift.tags="Sonatype,Nexus,Repository Manager" | ||
|
||
ARG NEXUS_VERSION=3.70.1-02 | ||
ARG JAVA_VERSION=java17 | ||
ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-${JAVA_VERSION}-unix.tar.gz | ||
ARG NEXUS_DOWNLOAD_SHA256_HASH=6878fab6416b86fe73b799d34afce2b0a91446d602edc892ed71efbb205be01b | ||
ARG NEXUS_VERSION=3.71.0-06 | ||
ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz | ||
ARG NEXUS_DOWNLOAD_SHA256_HASH=b025287558184677fc231035c9f5e5e6cc4bc1cafd76d13a06233a4ed09d08f6 | ||
|
||
# configure nexus runtime | ||
ENV SONATYPE_DIR=/opt/sonatype | ||
|
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 |
---|---|---|
|
@@ -17,8 +17,8 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal | |
LABEL name="Nexus Repository Manager" \ | ||
vendor=Sonatype \ | ||
maintainer="Sonatype <[email protected]>" \ | ||
version="3.70.1-02" \ | ||
release="3.70.1" \ | ||
version="3.71.0-06" \ | ||
release="3.71.0" \ | ||
url="https://sonatype.com" \ | ||
summary="The Nexus Repository Manager server \ | ||
with universal support for popular component formats." \ | ||
|
@@ -36,10 +36,9 @@ LABEL name="Nexus Repository Manager" \ | |
io.openshift.expose-services="8081:8081" \ | ||
io.openshift.tags="Sonatype,Nexus,Repository Manager" | ||
|
||
ARG NEXUS_VERSION=3.70.1-02 | ||
ARG JAVA_VERSION=java17 | ||
ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-${JAVA_VERSION}-unix.tar.gz | ||
ARG NEXUS_DOWNLOAD_SHA256_HASH=6878fab6416b86fe73b799d34afce2b0a91446d602edc892ed71efbb205be01b | ||
ARG NEXUS_VERSION=3.71.0-06 | ||
ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz | ||
ARG NEXUS_DOWNLOAD_SHA256_HASH=b025287558184677fc231035c9f5e5e6cc4bc1cafd76d13a06233a4ed09d08f6 | ||
|
||
# configure nexus runtime | ||
ENV SONATYPE_DIR=/opt/sonatype | ||
|
@@ -70,11 +69,11 @@ RUN usermod -a -G root nexus \ | |
WORKDIR ${SONATYPE_DIR} | ||
|
||
# Download nexus & setup directories | ||
RUN curl -L ${NEXUS_DOWNLOAD_URL} --output nexus-${NEXUS_VERSION}-${JAVA_VERSION}-unix.tar.gz \ | ||
&& echo "${NEXUS_DOWNLOAD_SHA256_HASH} nexus-${NEXUS_VERSION}-${JAVA_VERSION}-unix.tar.gz" > nexus-${NEXUS_VERSION}-${JAVA_VERSION}-unix.tar.gz.sha256 \ | ||
&& sha256sum -c nexus-${NEXUS_VERSION}-${JAVA_VERSION}-unix.tar.gz.sha256 \ | ||
&& tar -xvf nexus-${NEXUS_VERSION}-${JAVA_VERSION}-unix.tar.gz \ | ||
&& rm -f nexus-${NEXUS_VERSION}-${JAVA_VERSION}-unix.tar.gz nexus-${NEXUS_VERSION}-${JAVA_VERSION}-unix.tar.gz.sha256 \ | ||
RUN curl -L ${NEXUS_DOWNLOAD_URL} --output nexus-${NEXUS_VERSION}-unix.tar.gz \ | ||
&& echo "${NEXUS_DOWNLOAD_SHA256_HASH} nexus-${NEXUS_VERSION}-unix.tar.gz" > nexus-${NEXUS_VERSION}-unix.tar.gz.sha256 \ | ||
&& sha256sum -c nexus-${NEXUS_VERSION}-unix.tar.gz.sha256 \ | ||
&& tar -xvf nexus-${NEXUS_VERSION}-unix.tar.gz \ | ||
&& rm -f nexus-${NEXUS_VERSION}-unix.tar.gz nexus-${NEXUS_VERSION}-unix.tar.gz.sha256 \ | ||
&& mv nexus-${NEXUS_VERSION} $NEXUS_HOME \ | ||
&& chown -R nexus:nexus ${SONATYPE_WORK} \ | ||
&& mv ${SONATYPE_WORK}/nexus3 ${NEXUS_DATA} \ | ||
|
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
Oops, something went wrong.