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 <bdobrelia@mirantis.com>
This commit is contained in:
Bogdan Dobrelya 2015-07-06 17:38:51 +02:00
parent 6f74f2070b
commit a1a65589e9

View File

@ -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