aboutsummaryrefslogtreecommitdiffstats
path: root/nms/README.md
blob: 4d310cbb6e0c2ee4b7f0862299ee5b6be80db4c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#Instructions

## Installation
- fetch data from tg server: `scp ${USER}@wat.gathering.org:/root/nms-2015.sql.gz .`

- Do the Debian install(or whatever OS you're on.): https://docs.docker.com/engine/installation/linux/debian/ And make sure that your user is in the docker group, so that you can run docker without sudo.  

- Clone repository: `git clone git@github.com:tech-server/tgmanage.git`

- run `./makedockerfiles.sh`, which creates the docker image files, and builds
  them. 

- Start database node: `docker run -v /sys/fs/cgroup:/sys/fs/cgroup:ro --privileged --rm -ti --name=db nms-db`
- Start front end node: ` docker run -v /sys/fs/cgroup:/sys/fs/cgroup:ro --privileged --rm -ti --name=front --link=db:db nms-front `
- Find IP's: `docker inspect front`, `docker instpect db`
- Start a shell in a container: `docker exec front /bin/bash`
- Open localhost:PORT in browser to start testing.



## TODO
- finish the installation guide above.