diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-04-14 16:34:46 +0200 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-04-14 16:34:46 +0200 |
commit | 217990b0ec9b378bcd2ede982c8e5d557de8e1e7 (patch) | |
tree | 8d135761b7a0daeea55a1c2c059166988cf83ffd | |
parent | ed6d6386a82ed4b783d07e186620ffcbaf33b0f4 (diff) |
Update README for development and fix typo in playbook
-rw-r--r-- | README.rst | 28 | ||||
-rw-r--r-- | build/test/playbook-test.yml | 2 |
2 files changed, 16 insertions, 14 deletions
@@ -70,30 +70,32 @@ This is NOT complete and thoroughly lacking. Testing ------- -There is basic test infrastructure set up in ``build/test``. It uses Docker and -ansible against the host in ``build/test/inventory`` which happens to be -localhost by default. +There is basic test and development infrastructure set up in +``build/test``. It uses Docker and ansible against the host in +``build/test/inventory`` which happens to be localhost by default. -To use it, first set up ssh to localhost (or change host in inventory) and -install docker, then run:: +To use it, first set up docker and install Ansible, then run: $ ansible-playbook -i build/test/inventory build/test/playbook-test.yml This will build the relevant docker images, start them and run a very -simple tests to see that the front works. It assumes a check out on the -target machine (e.g.: localhost) on ``~/src/tgnms``. It does not use sudo -or make any attempt to configure the local host beyond docker building. +simple tests to see that the front works. It does some hacks to detect PWD +(...), but does not use sudo/root and makes no attempt at configuring the +host beyond interacting with docker images and containers. -It will set up 4 containers right now: +It will build and run 4 containers: -- Database -- Frontend (apache) -- Varnish -- Collector with ping +- nms-db-test - Database +- nms-front-test - Frontend (apache) +- nms-varnish-test - Varnish +- nms-ping-test - Collector with ping The IP of the Varnish instance is reported and can be used. The credentials used are 'demo/demo'. +The repostiroy is mounted as a docker volume under /opt/nms on all +containers, which means you can do your editing outside of the containers. + Architecture ------------ diff --git a/build/test/playbook-test.yml b/build/test/playbook-test.yml index a2b416a..0b5f84e 100644 --- a/build/test/playbook-test.yml +++ b/build/test/playbook-test.yml @@ -60,7 +60,7 @@ - name: Display IP debug: - msg: "Front test is available at http://{{ ip.stdout }}/" + msg: "Varnish test is available at http://{{ ip.stdout }}/" - name: test index uri: url="http://{{ ip.stdout }}/" |