Merge pull request #3 from mrkz/ciao-deploy

Add `ciao-deploy` Dockerfile
This commit is contained in:
Obed N Munoz
2016-09-26 16:17:57 -05:00
committed by GitHub
3 changed files with 62 additions and 0 deletions
+1
View File
@@ -6,6 +6,7 @@ https://hub.docker.com/u/clearlinux/
Containers
----------
- Ciao-deploy
- CIAO-WebUI
- Keystone
- MariaDB
+14
View File
@@ -0,0 +1,14 @@
FROM clearlinux
MAINTAINER marcos.simental.magana@intel.com
ARG swupd_args
ENV HOME=/root/
RUN swupd bundle-add sysadmin-hostmgmt go-basic c-basic kvm-host 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
CMD 'bash'
+47
View File
@@ -0,0 +1,47 @@
Ciao Deploy
==========
[![](https://images.microbadger.com/badges/image/clearlinux/ciao-deploy.svg)](http://microbadger.com/images/clearlinux/ciao-deploy "Get your own image badge on microbadger.com")
[![](https://images.microbadger.com/badges/version/clearlinux/ciao-deploy.svg)](http://microbadger.com/images/clearlinux/ciao-deploy "Get your own version badge on microbadger.com")
This provides a ciao deployment container.
Build
-----
```
docker build -t clearlinux/ciao-deploy .
```
Or just pull it from Dockerhub
------------------------------
```
docker pull clearlinux/ciao-deploy
```
Run the Ciao-deploy Container
----------------------------
```
docker run -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 \
-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
----------------
- ``swupd_args`` Specifies [SWUPD](https://clearlinux.org/documentation/swupdate_how_to_run_the_updater.html) flags
Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#/arg