diff --git a/Dockerfile b/Dockerfile index d69dc72..6a1dbc5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,9 +8,10 @@ RUN ["wget", "-O", "/tmp/nexus-latest-bundle.tar.gz", "http://www.sonatype.org/d RUN tar -zxvf /tmp/nexus-latest-bundle.tar.gz -C /opt/sonatype-nexus --strip-components=1 RUN useradd --user-group --system --home-dir /opt/sonatype-nexus nexus RUN chown -R nexus:nexus /opt/sonatype-work /opt/sonatype-nexus /opt/sonatype-work/nexus +RUN sed -i 's/nexus-webapp-context-path=\/nexus/nexus-webapp-context-path=\//' /opt/sonatype-nexus/conf/nexus.properties USER nexus CMD ["/opt/sonatype-nexus/bin/nexus","console"] VOLUME /opt/sonatype-work -EXPOSE 8081 \ No newline at end of file +EXPOSE 8081 diff --git a/README.md b/README.md index 18c3291..81d2b67 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,6 @@ To backup nexus data: ``` docker run --volumes-from nexus -v $(pwd):/backup ubuntu tar cvf /backup.tar /opt/sonatype-work/ ``` + +Nexus documentation: +http://books.sonatype.com/nexus-book/reference/index.html