Skip to content

Instantly share code, notes, and snippets.

@HokieGeek
Last active January 13, 2020 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HokieGeek/362df90dfd9a76bf466f3fb9d834057c to your computer and use it in GitHub Desktop.
Save HokieGeek/362df90dfd9a76bf466f3fb9d834057c to your computer and use it in GitHub Desktop.
Build an instance of Nexus 3 with helm support
FROM maven:3-jdk-8 AS helmkar
ADD https://github.com/sonatype-nexus-community/nexus-repository-helm/archive/master.zip nexus-repository-helm.zip
RUN unzip nexus-repository-helm.zip && cd nexus-repository-helm-master && mvn -PbuildKar clean install
FROM sonatype/nexus3
COPY --from=helmkar nexus-repository-helm-master/target/*.kar $NEXUS_HOME/deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment