Latest Nexus 3 milestone in Docker

If you're curious about the next version of Sonatype's Nexus, which has Docker repository support among other things, you can try it out in a container with the following Dockerfile:

FROM sonatype/nexus:oss

ENV NEXUS_VERSION 3.0.0-b2015091801
ENV JAVA_HOME /usr/java/jdk1.7.0_76

ADD nexus-3.0.0-b2015091801-bundle.tar.gz /tmp

USER root

RUN rm -rf /opt/sonatype/nexus && \
    mv /tmp/nexus-3.0.0-b2015091801/ /opt/sonatype/nexus && \
    chown -R nexus /opt/sonatype/nexus

USER nexus

CMD /opt/sonatype/nexus/bin/karaf server

It builds on the official Docker image but uses the current official milestone. Download the milestone via link above, then build it with:

docker build --pull --tag sonatype/nexus:3.0.0-b2015091801 .

Now you can run it with:

docker run -d -p 8081:8081 --name nexus3 sonatype/nexus:3.0.0-b2015091801

Enjoy!

This site uses cookies. Continue to use the site as normal if you are happy with this, or read more about cookies and how to manage them.

X