mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-09-02 19:51:32 +00:00
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:
@@ -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
@@ -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
|
||||
----------------
|
||||
|
||||
Reference in New Issue
Block a user