Ubuntu 14.04.2 LTS / Sonatype Nexus 3 OSS Milestone 5 (includes Docker Registry)
10K+
Sonatype Nexus 3 Open Source Milestone 5 release finally includes Docker Registry (3.0.0-b2015091801) - I plan on keeping this one up to date every couple of days until the final 3.0 release.
FROM keks/java-base:latest
MAINTAINER Jan M. <[email protected]>
# based on https://github.com/sonatype/docker-nexus
ENV SONATYPE_WORK /sonatype-work
ENV NEXUS_VERSION 3.0.0-b2015091801
# download from: https://support.sonatype.com/entries/96157708-Nexus-3-0-Technology-Preview-Milestone-5-Release-
RUN mkdir -p /opt/sonatype/nexus \
&& curl --fail --silent --location --retry 3 \
https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-${NEXUS_VERSION}-bundle.tar.gz \
| gunzip \
| tar x -C /tmp nexus-${NEXUS_VERSION} \
&& mv /tmp/nexus-${NEXUS_VERSION}/* /opt/sonatype/nexus/ \
&& rm -rf /tmp/nexus-${NEXUS_VERSION} && \
adduser --system --group --gecos "nexus role account" --home ${SONATYPE_WORK} nexus && \
chown -R nexus /opt/sonatype/nexus
VOLUME ${SONATYPE_WORK}
EXPOSE 8081
WORKDIR /opt/sonatype/nexus
USER nexus
ENTRYPOINT [ "./bin/nexus", "console" ]
this image is based on my own keks/java-base running Oracle Java 1.8.0_60 and the Dockerfile is losely based on the official Nexus 2 OSS Dockerfile which can be found here: https://github.com/sonatype/docker-nexus/blob/master/oss/Dockerfile
docker run \
-dit \
-v /local/path:/sonatype-work \
-p 8081:8081 \
--restart=always \
--name nexus \
keks/sonatype-nexus
It defaults to port 8081 and you may access it as admin with the password admin123 (Nexus OSS defaults)
All praise goes to Sonatype for integrating a Docker Registry with Nexus!
Content type
-
Digest
sha256:5c1ff0232…
Size
393.6 MB
Last updated
almost 11 years ago
docker pull keks/sonatype-nexus