ciao-deploy: delegate the file edits out of the container

By delegating the cluster configuration out of the
container, those will be persistent, allowing the user to
keep them for a future reference/re-deployment.

Signed-off-by: Simental Magana, Marcos <marcos.simental.magana@intel.com>
This commit is contained in:
Simental Magana, Marcos
2016-11-01 16:53:47 -06:00
parent 234543015f
commit a86cb4eb00
2 changed files with 21 additions and 11 deletions
-1
View File
@@ -6,7 +6,6 @@ ENV HOME=/root/
RUN swupd bundle-add cryptography sysadmin-hostmgmt go-basic c-basic openstack-common $swupd_args
RUN cp -r /usr/share/ansible/examples/ciao /root/
RUN ansible-galaxy install -r /root/ciao/requirements.yml --ignore-certs
RUN rm -rf /var/lib/swupd
+21 -10
View File
@@ -17,28 +17,39 @@ Or just pull it from Dockerhub
docker pull clearlinux/ciao-deploy
```
Clone the ciao example deployment
---------------------------------
```
git clone https://github.com/clearlinux/clear-config-management.git
```
Setup your cluster configuration
--------------------------------
You may need to edit `clear-config-management/examples/ciao/group_vars/all`
and `clear-config-management/examples/ciao/hosts` to suit your cluster
setup needs.
For more detailed instructions you may want to check
[Deploying ciao via automation](https://clearlinux.org/documentation/ciao-deploy.html)
documentation.
Run the Ciao-deploy Container
----------------------------
```
docker run -it clearlinux/ciao-deploy
docker run -v $(pwd)/clear-config-management/examples/ciao:/root/ciao \
-it clearlinux/ciao-deploy
```
If you have setup your ssh key for the ansible setup, you may want to use it
in your ciao-deploy container:
```
docker run -v /path/to/your/.ssh/key:/root/.ssh/key \
docker run -v $(pwd)/clear-config-management/examples/ciao:/root/ciao \
-v /path/to/your/.ssh/key:/root/.ssh/key \
-it clearlinux/ciao-deploy
```
Setup your cluster configuration
--------------------------------
You may need to edit `/root/ciao/group_vars/all` and `/root/ciao/hosts` to
suit your cluster setup needs.
For more detailed instructions you may want to check
[Deploying ciao via automation](https://clearlinux.org/documentation/ciao-deploy.html)
documentation.
Extra Build ARGs
----------------