Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Palladio-Build-Nexus

Setup a nexus cache for palladio builds.

Setup

Install

Create nexus service.

Linux

Clone this repo to: <develop>/Palladio-Build-Nexus

Podman

This configuration expects to folders to exist and owned by user id 200 on the host machine:

sudo mkdir -p /mnt/repository/nexus-data
sudo mkdir -p /mnt/backup/nexus
sudo chown 200 /mnt/repository/nexus-data
sudo chown 200 /mnt/backup/nexus

Create and start the nexus user service.

cd ~/.config/containers/systemd
sudo ln -s <develop>/Palladio-Build-Nexus/linux/podman/nexus.container
systemctl --user daemon-reload
systemctl --user start nexus

Windows

Podman
podman machine init nexus
podman machine start nexus
podman machine ssh nexus
sudo yum -y install git

Configure git to access github from nexus machine. Then clone this repo to: <develop>/Palladio-Build-Nexus

podman machine ssh nexus
mkdir -p <develop>
cd <develop>
git clone [email protected]:rsfzi/Palladio-Build-Nexus.git

Prepare folders

sudo mkdir -p /mnt/repository/nexus-data
sudo mkdir -p /mnt/backup/nexus
sudo chown 200 /mnt/repository/nexus-data
sudo chown 200 /mnt/backup/nexus

Create and start the nexus service.

cd /etc/containers/systemd
sudo ln -s <develop>/Palladio-Build-Nexus/linux/podman/nexus.container
sudo systemctl daemon-reload
sudo systemctl start nexus

Create port forward to nexus service:

  1. get IP address of nexus machine
wsl hostname -I
  1. open powershell as administrator
netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=8081 connectaddress=<ip address> connectport=8081

Prepare

Setup initial nexus DB.

Linux

sudo systemctl stop nexus
cd /mnt/repository/nexus-data/db
sudo cp <develop>/Palladio-Build-Nexus/nexus/nexus.mv.db .
sudo systemctl start nexus

Windows

Podman
podman machine ssh nexus
sudo systemctl stop nexus
cd /mnt/repository/nexus-data/db
sudo cp <develop>/Palladio-Build-Nexus/nexus/nexus.mv.db .
sudo systemctl start nexus

Initialize / repair nexus blob store

  1. Open the local nexus instance.
  2. Login with: admin / nexus.
  3. Go to Settings/System/Tasks.
  4. Run task: backup_repair_blob_store

Maven

Use the maven/settings.xml as user settings file.

Linux

Create link to user settings file:

mkdir -p .m2
cd .m2
ln -s <develop>/Palladio-Build-Nexus/maven/settings.xml

Windows

Copy user settings file:

mkdir .m2
cd .m2
copy /B <develop>/Palladio-Build-Nexus/maven/settings.xml .

About

Nexus cache for palladio builds

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors