Sign inSign up

stocksoftware/nexus3

By stocksoftware

•Updated over 9 years ago

A nexus3 docker instance

Image
0

467

stocksoftware/nexus3 repository overview

⁠stocksoftware/nexus3

master Build Status

A docker image containing Sonatype Nexus Repository Manager 3 running on Alpine Linux. This is heavily derived from the Sonatype docker-nexus3⁠ project.

To run, binding the exposed port 8081 to the host and setting max memory.

$ docker run -d -p 8081:8081 --name nexus -e JAVA_MAX_HEAP=768m stocksoftware/nexus3

To test:

$ curl -u admin:admin123 http://localhost:8081/service/metrics/ping

⁠Notes

  • A persistent directory, /nexus-data, is used for configuration, logs, and storage. This directory needs to be writable by the Nexus process.
  • Default credentials are: admin / admin123
  • It can take some time (2-3 minutes) for the service to launch in a new container. This is due to the way it initializes the volume.
  • Installation of Nexus is to /opt/sonatype/nexus.
  • Three environment variables can be used to control the JVM arguments
    • JAVA_MAX_MEM, passed as -Xmx. Defaults to 1200m.
    • JAVA_MIN_MEM, passed as -Xms. Defaults to 1200m.
    • EXTRA_JAVA_OPTS. Additional options can be passed to the JVM via this variable.
    • NEXUS_CONTEXT. Context path for nexus web application if any. Defaults to empty string. Note it should not include the initial /.

Tag summary

Content type

Image

Digest

Size

186.3 MB

Last updated

over 9 years ago

docker pull stocksoftware/nexus3