Nexus
Overview
This installation happens on the
dsb-hub
.
Nexus Repository Manager is a tool for managing components and build artifacts across various formats like Docker, Maven, and npm. We are using Docker Compose to install Nexus to avoid conflicts with SonarQube's JDK requirements. Nexus will be used to manage Docker images, allowing us to proxy images from Docker Hub, cache them locally, and securely manage retrieval.
Installation Steps
-
Create a new directory for Nexus:
mkdir -p apps/nexus/nexus-data
sudo chown -R 200 apps/nexus/nexus-data -
Create the Docker Compose YAML file:
cd apps/nexus
touch docker-compose.yml -
Add the following content to the
docker-compose.yml
:version: "3"
services:
nexus:
image: sonatype/nexus3
restart: always
volumes:
- "./nexus-data:/nexus-data"
ports:
- "8081:8081"
- "8082:8082"
- "8085:8085"
volumes:
nexus-data:
driver: local -
Run the application:
docker compose up -d