-
Notifications
You must be signed in to change notification settings - Fork 950
Expand file tree
/
Copy pathnexus.sh
More file actions
26 lines (18 loc) · 662 Bytes
/
nexus.sh
File metadata and controls
26 lines (18 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
apt-get update -y
echo "Install Java"
apt-get install openjdk-8-jdk -y
java -version
echo "Install Nexus"
useradd -M -d /opt/nexus -s /bin/bash -r nexus
echo "nexus ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/nexus
mkdir /opt/nexus
wget https://sonatype-download.global.ssl.fastly.net/repository/downloads-prod-group/3/nexus-3.29.2-02-unix.tar.gz
tar xzf nexus-3.29.2-02-unix.tar.gz -C /opt/nexus --strip-components=1
chown -R nexus:nexus /opt/nexus
nano /opt/nexus/bin/nexus.vmoptions
```
https://www.howtoforge.com/how-to-install-and-configure-nexus-repository-manager-on-ubuntu-20-04/
```
```
docker run -d -p 8081:8081 --name nexus sonatype/nexus3
```