Skip to content

Commit

Permalink
Update OpenJDK, Alpine and Nexus to 3.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Vardit Natanson authored and varditn committed Jul 24, 2019
1 parent fe9070c commit c19e53d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
14 changes: 10 additions & 4 deletions Dockerfile
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"
Expand All @@ -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}..." \
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A container image for Sonatype Nexus Repository Manager OSS, based on Alpine Lin

## Current software

* Alpine Linux 3.9
* OpenJDK JRE 8u191
* Nexus Repository Manager OSS 3.15.2 ([release notes](https://help.sonatype.com/repomanager3/release-notes/2019-release-notes#id-2019ReleaseNotes-RepositoryManager3.15.2))
* Alpine Linux 3.10
* OpenJDK JRE 8u212
* Nexus Repository Manager OSS 3.17.0 ([release notes](https://help.sonatype.com/repomanager3/release-notes/2019-release-notes#id-2019ReleaseNotes-RepositoryManager3.17.0))

0 comments on commit c19e53d

Please sign in to comment.