Difference between revisions of "NOC Tower"

From UVOO Tech Wiki
Jump to navigation Jump to search
(Created page with "- https://code.getnoc.com/noc/tower/-/blob/master/docs/Ubuntu.md")
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
# Single
 +
- https://github.com/nocproject/noc-docker
 +
 +
## Using LXD VM
 +
```
 +
lxc init ubuntu:18.04 noc --vm
 +
lxc config device add noc config disk source=cloud-init:config
 +
lxc config device override noc root size=100GB
 +
xc config set noc limits.memory 10GB
 +
lxc config set noc limits.cpu 4
 +
lxc start noc
 +
lxc console noc
 +
```
 +
 +
## Install Docker
 +
```
 +
curl https://get.docker.com | sudo sh
 +
# systemctl start docker
 +
# systemctl enable docker
 +
sudo curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
 +
sudo chmod +x /usr/local/bin/docker-compose
 +
```
 +
 +
## Install NOC-Docker
 +
```
 +
git clone https://code.getnoc.com/noc/noc-dc.git /opt/noc-dc
 +
cd /opt/noc-dc
 +
./pre.sh -p all
 +
export DOCKER_CLIENT_TIMEOUT=200
 +
docker-compose up --no-start
 +
docker-compose up migrate
 +
docker-compose up -d
 +
```
 +
If you need change default install path to other or other image run pre.sh with parameter -d or -t
 +
./pre.sh -p all -d /opt/noc-dc -t stable
 +
 +
 +
 +
 +
# Multiple Hard but you get vrf help
 +
- https://code.getnoc.com/noc/tower/blob/master/Readme.md
 
- https://code.getnoc.com/noc/tower/-/blob/master/docs/Ubuntu.md
 
- https://code.getnoc.com/noc/tower/-/blob/master/docs/Ubuntu.md
 +
- https://code.getnoc.com/noc/tower/-/blob/master/contrib/systemd/noc-tower.service

Latest revision as of 02:14, 5 April 2020

Single

Using LXD VM

lxc init ubuntu:18.04 noc --vm
lxc config device add noc config disk source=cloud-init:config
lxc config device override noc root size=100GB
xc config set noc limits.memory 10GB
lxc config set noc limits.cpu 4
lxc start noc
lxc console noc

Install Docker

curl https://get.docker.com | sudo sh 
# systemctl start docker
# systemctl enable docker
sudo curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

Install NOC-Docker

git clone https://code.getnoc.com/noc/noc-dc.git /opt/noc-dc
cd /opt/noc-dc
./pre.sh -p all
export DOCKER_CLIENT_TIMEOUT=200
docker-compose up --no-start
docker-compose up migrate
docker-compose up -d 

If you need change default install path to other or other image run pre.sh with parameter -d or -t ./pre.sh -p all -d /opt/noc-dc -t stable

Multiple Hard but you get vrf help