Member-only story
Introduction
In tis simple post I will show how to install and run Sonatype Nexus based on systemd service and docker containers
Requirements
- Ubuntu 20.4
- Java 1.8 (if we decide to use standalone installation)
- Latest version of Docker engine (if we decide to use Docker containers)
Let’s start
Standalone installation
- Download and install Sonatype Nexus OSS
root@vagrant:/tmp# useradd nexus
root@vagrant:/tmp# wget https://download.sonatype.com/nexus/3/nexus-3.30.0-01-unix.tar.gz
root@vagrant:/tmp# cd /opt
root@vagrant:/opt# tar xvf /tmp/nexus-3.30.0-01-unix.tar.gz
root@vagrant:/opt# mv nexus-* nexus
root@vagrant:/opt# find nexus -exec chown nexus:nexus {} \;
root@vagrant:/opt# find sonatype-work -exec chown nexus:nexus {} \;
- Create systemd service for Sonatype Nexus OSS
Create file in /etc/systemd/system/nexus.service
- Update context path in
/opt/sonatype-work/nexus3/etc/nexus.properties