Nexus docker image based on Debian Jessie and Oracle JDK 8.
10K+
Nexus docker image based on Debian Jessie and Oracle JDK 8.
Sources to build this docker image can be found here.
This Nexus docker image contains the following software components:
These Nexus ports are exposed:
When you start the Nexus container, you can adjust the configuration by passing one or more environment variables on the docker run command line:
INSTALL4J_ADD_VM_PARAMS-Xms1200m -Xmx1200m -XX:MaxDirectMemorySize=2g -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefsNEXUS_CONTEXT_PATH/NEXUS_SESSION_TIMEOUT600000SONATYPE_WORK/opt/sonatype-worksudo groupadd -g 1001 chrisipa
sudo useradd -u 1001 -g 1001 -m -s /usr/sbin/nologin chrisipa
docker run --rm -p 8081:8081 chrisipa/nexus
sudo mkdir -p /opt/sonatype-work
sudo chown 1001.1001 /opt/sonatype-work
docker run -d --name nexus -p 8081:8081 -v /opt/sonatype-work:/opt/sonatype-work chrisipa/nexus
docker-compose.yml with your configuration data:nexus:
image: chrisipa/nexus:latest
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /opt/sonatype-work:/opt/sonatype-work
ports:
- 8081:8081
docker-compose up -d
See parent image: chrisipa/jdk
Content type
Image
Digest
Size
313.4 MB
Last updated
almost 5 years ago
docker pull chrisipa/nexus