diff options
author | Magnus Kirø <magnuskiro@gmail.com> | 2016-03-20 14:01:13 +0100 |
---|---|---|
committer | Magnus Kirø <magnuskiro@gmail.com> | 2016-03-20 14:01:13 +0100 |
commit | 47788e2d2c95ecf4174dbb9ab8d5dafcfd552c67 (patch) | |
tree | e8a12875e0328aa475f79554a42d791250606ea3 | |
parent | 25c603b32eaf35f07bea0dfd9541afd196cb1343 (diff) |
Updated Readme with new docker run commands.
-rw-r--r-- | nms/README.md | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/nms/README.md b/nms/README.md index 107b630..739fc5b 100644 --- a/nms/README.md +++ b/nms/README.md @@ -4,21 +4,28 @@ - fetch data from tg server: `scp ${USER}@wat.gathering.org:/root/nms-2015.sql.gz .` - Rename the nms dump so we can use it later: `mv nms-2015.sql.gz nms-dump.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. +- 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 inspect db` -- Start a shell in a container: `docker exec front /bin/bash` -- Open localhost:PORT in browser to start testing. +- Start database node: +`docker run -v /sys/fs/cgroup:/sys/fs/cgroup:ro --privileged --rm -ti --name=db nms-db` + +- Start front end node: +-- with cgroup: `docker run -v /sys/fs/cgroup:/sys/fs/cgroup:ro --privileged --rm -ti --name=front --link=db:db nms-front` + +-- getting to prompt(without cgroup): +`docker run -v "/home/kiro/repos/tgmanage:/srv/tgmanage" -v "/home/kiro/repos/tgmanage/nms/.bashrc:/root/.bashrc" -w "/srv/tgmanage/web/nms.gathering.org" \ +-it --privileged nms-front /bin/bash` +- Find IP's: +`docker inspect nms-db | grep "IPAddress\":"` +`docker inspect nms-front | grep "IPAddress\":"` +- Open the nms-front ip in the web browser. -## TODO -- finish the installation guide above. |