https://netmaker.org logo
Title
d

damp-battery-65635

03/31/2022, 7:20 PM
I am not sure running the NetMaker server on local is a good idea, I have Ubuntu 20.04 in local. Since need to test server and client, I have 3 VMs can use to do end to end testing. Maybe clone the code on VM will be easier to setup the whole system from source code. I have these steps , please correct me if wrong:
- docker compose down the quick install servers(done)
  * docker-compose down
- Fork NetMaker and NetMaker-UI (done)
- create ssh key on server(done)
  * ssh-keygen -t ed25519 
- Clone both on server VM(done)
- install golang(done)
  * sudo add-apt-repository ppa:longsleep/golang-backports
  * sudo apt update
  * sudo apt install golang-go
- install JS env(done)
  * apt install nodejs
  * apt install npm
  * sudo npm install -g n
  * sudo mkdir -p /usr/local/n
  * sudo chown -R $(whoami) /usr/local/n
  * sudo mkdir -p /usr/local/bin /usr/local/lib /usr/local/include /usr/local/share
  * sudo chown -R $(whoami) /usr/local/bin /usr/local/lib /usr/local/include /usr/local/share
  * n lts

- install and setup sqlite(might not need) on server VM(done)
  * apt install sqlite
- apt install caddy on server VM(done)
  * apt update -y && apt upgrade -y
  * curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo apt-key add -
  * curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee -a /etc/apt/sources.list.d/caddy-stable.list
  * apt update
  * apt install caddy
- apt install mosquitto on server VM(done)
  * apt install mosquitto
- check docker compose file to extract data and setup in each server
- configure caddy(done)
  * change the content in Caddy file from quick install and replace the /etc/caddy/Caddyfile
- configure mosquitto
- configure sqlite