Nexus
Nexus¶
Containerized artifact repository for Maven, Docker, npm. Runs as Docker service—store, proxy, scan packages. Prompt for port on run.
Lab Environment Only
This tool is intended for ephemeral, short-lived lab environments and is not hardened for production use.
System Requirements
This script is designed for Ubuntu LTS and derivatives (Linux Mint, Pop!_OS). Other distributions (RHEL, Fedora, Debian, ARM) are not supported.
Installation Command¶
curl -sL https://raw.githubusercontent.com/ibtisam-iq/infra-bootstrap/main/scripts/services/nexus-cont.sh | sudo bash
What It Does¶
- Runs preflight checks.
- Installs Docker if missing.
- Starts Nexus container (sonatype/nexus3, restart=always).
- Prompts for port (default 8081).
Access & Verify¶
- URLs: Local:
http://<YOUR-IP>:<PORT>| Public:http://<PUBLIC-IP>:<PORT>(script outputs both). - Password: Script prints admin password (from /nexus-data/admin.password).
- Verify:
sudo docker ps | grep nexus(running?). Access UI, login (admin/password), setup repo. - Wait Time: 2-3 min for full startup.
Official Docs: help.sonatype.com/repomanager3
Last update: January 21, 2026 11:27:57 PM