From a1a65589e9d17cabe38c60a8c9621b21db452e18 Mon Sep 17 00:00:00 2001 From: Bogdan Dobrelya Date: Mon, 6 Jul 2015 17:38:51 +0200 Subject: [PATCH] Update README * Add details for vagrant link * Describe how to get ssh access to slave nodes * Add info for basic manipulations with docker containers * Describe how to get resources data in raw and JSON formats Signed-off-by: Bogdan Dobrelya --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 36af1360..33e6f8db 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Setup development env -* Install vagrant +* Install [Vagrant](http://www.vagrantup.com/downloads.html) * Setup environment: ``` cd solar @@ -18,8 +18,25 @@ solar --help python example.py ``` +* Get ssh details for running slave nodes (vagrant/vagrant): +``` +vagrant ssh-config +``` + +* Get list of docker containers and attach to the foo container +``` +sudo docker ps -a +sudo docker exec -it foo +``` + ## Solar usage +* To get data for the resource bar (raw and pretty-JSON): +``` +solar resource show --tag 'resources/bar' +solar resource show --use-json --tag 'resources/bar' | jq . +``` + * To clear all resources/connections: ``` solar resource clear_all