-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update OpenJDK, Alpine and Nexus to 3.17.0
- Loading branch information
Showing
2 changed files
with
13 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
FROM quay.io/pires/docker-jre:8u191 | ||
FROM alpine:3.10 | ||
|
||
LABEL maintainer [email protected] | ||
|
||
ENV NEXUS_VERSION 3.15.2-01 | ||
# java | ||
ENV JAVA_HOME=/usr/lib/jvm/default-jvm/jre | ||
|
||
# nexus | ||
ENV NEXUS_VERSION 3.17.0-01 | ||
ENV NEXUS_DOWNLOAD_URL "https://download.sonatype.com/nexus/3" | ||
ENV NEXUS_TARBALL_URL "${NEXUS_DOWNLOAD_URL}/nexus-${NEXUS_VERSION}-unix.tar.gz" | ||
ENV NEXUS_TARBALL_ASC_URL "${NEXUS_DOWNLOAD_URL}/nexus-${NEXUS_VERSION}-unix.tar.gz.asc" | ||
|
@@ -14,8 +18,10 @@ ENV NEXUS_DATA /nexus-data | |
ENV NEXUS_CONTEXT '' | ||
ENV SONATYPE_WORK ${SONATYPE_DIR}/sonatype-work | ||
|
||
# Install prerequisites | ||
RUN apk add --no-cache --update bash ca-certificates runit su-exec util-linux openjdk8-jre | ||
|
||
# Install nexus | ||
RUN apk add --no-cache --update bash ca-certificates runit su-exec util-linux | ||
RUN apk add --no-cache -t .build-deps wget gnupg openssl \ | ||
&& cd /tmp \ | ||
&& echo "===> Installing Nexus ${NEXUS_VERSION}..." \ | ||
|
@@ -32,7 +38,7 @@ RUN apk add --no-cache -t .build-deps wget gnupg openssl \ | |
&& ls -las \ | ||
&& adduser -h $NEXUS_DATA -DH -s /sbin/nologin nexus \ | ||
&& chown -R nexus:nexus $NEXUS_HOME \ | ||
&& rm -rf /tmp/* \ | ||
&& rm -rf /tmp/* /var/cache/apk/* \ | ||
&& apk del --purge .build-deps | ||
|
||
# Configure nexus | ||
|
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