Update READMEs

Signed-off-by: Munoz, Obed N <obed.n.munoz@intel.com>
This commit is contained in:
Munoz, Obed N
2016-10-21 09:49:23 -05:00
parent 7da0b8f31a
commit a7553219b8
6 changed files with 50 additions and 51 deletions
+2 -2
View File
@@ -8,13 +8,13 @@ This provides a CIAO Common base image that contains all initial requirements fo
Build
-----
```
docker build -t clearlinux/ciao-common .
docker build -t clearlinux/ciao-common .
```
Or just pull it from Dockerhub
------------------------------
```
docker pull clearlinux/ciao-common
docker pull clearlinux/ciao-common
```
Extra Build ARGs
+5 -5
View File
@@ -8,27 +8,27 @@ This provides a ciao deployment container.
Build
-----
```
docker build -t clearlinux/ciao-deploy .
docker build -t clearlinux/ciao-deploy .
```
Or just pull it from Dockerhub
------------------------------
```
docker pull clearlinux/ciao-deploy
docker pull clearlinux/ciao-deploy
```
Run the Ciao-deploy Container
----------------------------
```
docker run -it clearlinux/ciao-deploy
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
docker run -v /path/to/your/.ssh/key:/root/.ssh/key \
-it clearlinux/ciao-deploy
```
Setup your cluster configuration
+2 -2
View File
@@ -16,13 +16,13 @@ Features
Build
-----
```
docker build -t clearlinux/ciao-scheduler .
docker build -t clearlinux/ciao-scheduler .
```
Or just pull it from Dockerhub
------------------------------
```
docker pull clearlinux/ciao-scheduler
docker pull clearlinux/ciao-scheduler
```
Pre-requirements
+10 -10
View File
@@ -8,31 +8,31 @@ This provides a ciao web dashboard container
Build
-----
```
docker build -t clearlinux/ciao-webui .
docker build -t clearlinux/ciao-webui .
```
Or just pull it from Dockerhub
------------------------------
```
docker pull clearlinux/ciao-webui
docker pull clearlinux/ciao-webui
```
Create Ciao-webui SSL certificates
----------------------------------
```
YOUR_HOST=`hostname -f`
YOUR_HOST=`hostname -f`
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout webui_key.pem \
-out webui_cert.pem -subj "/CN=$YOUR_HOST"
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout webui_key.pem \
-out webui_cert.pem -subj "/CN=$YOUR_HOST"
```
Run the Ciao-webui Container
----------------------------
```
docker run -v `pwd`/webui_key.pem:/etc/pki/ciao-webui-key.pem \
-v `pwd`/webui_cert.pem:/etc/pki/ciao-webui-cert.pem \
-e CONTROLLER_HOST=controller.example.com \
-e IDENTITY_HOST=keystone.example.com \
-p 443:443 -d clearlinux/ciao-webui
docker run -v `pwd`/webui_key.pem:/etc/pki/ciao-webui-key.pem \
-v `pwd`/webui_cert.pem:/etc/pki/ciao-webui-cert.pem \
-e CONTROLLER_HOST=controller.example.com \
-e IDENTITY_HOST=keystone.example.com \
-p 443:443 -d clearlinux/ciao-webui
```
Environment Variables
+24 -24
View File
@@ -8,49 +8,49 @@ This provides a SSL-enabled Keystone docker container
Build
-----
```
docker build -t clearlinux/keystone .
docker build -t clearlinux/keystone .
```
Or just pull it from Dockerhub
---------------------------
```
docker pull clearlinux/keystone
docker pull clearlinux/keystone
```
Create Keystone SSL certificates
--------------------------------
```
YOUR_HOST=`hostname -f`
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout keystone_key.pem \
-out keystone_cert.pem -subj "/CN=$YOUR_HOST"
YOUR_HOST=`hostname -f`
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout keystone_key.pem \
-out keystone_cert.pem -subj "/CN=$YOUR_HOST"
```
Start Keystone container
------------------------
```
YOUR_HOST=`hostname -f`
MYSQL_DATA_DIR=/var/lib/mysql/
docker run -d -it --name keystone -p 5000:5000 -p 35357:35357 \
-e IDENTITY_HOST="$YOUR_HOST" \
-e KEYSTONE_ADMIN_PASSWORD="secret" \
-v $MYSQL_DATA_DIR:/var/lib/mysql \
-v `pwd`/keystone_cert.pem:/etc/nginx/ssl/keystone_cert.pem \
-v `pwd`/keystone_key.pem:/etc/nginx/ssl/keystone_key.pem \
clearlinux/keystone
YOUR_HOST=`hostname -f`
MYSQL_DATA_DIR=/var/lib/mysql/
docker run -d -it --name keystone -p 5000:5000 -p 35357:35357 \
-e IDENTITY_HOST="$YOUR_HOST" \
-e KEYSTONE_ADMIN_PASSWORD="secret" \
-v $MYSQL_DATA_DIR:/var/lib/mysql \
-v `pwd`/keystone_cert.pem:/etc/nginx/ssl/keystone_cert.pem \
-v `pwd`/keystone_key.pem:/etc/nginx/ssl/keystone_key.pem \
clearlinux/keystone
```
Login into Keystone container
------------------------------
```
docker exec -it keystone bash
# Inside the container
root@26bd2b8a8a60 /root # source openrc
openstack user list
+----------------------------------+-------+
| ID | Name |
+----------------------------------+-------+
| 24620586335a473fb56fc2be2f6bfb53 | admin |
+----------------------------------+-------+
docker exec -it keystone bash
# Inside the container
root@26bd2b8a8a60 /root # source openrc
openstack user list
+----------------------------------+-------+
| ID | Name |
+----------------------------------+-------+
| 24620586335a473fb56fc2be2f6bfb53 | admin |
+----------------------------------+-------+
```
Environment Variables
@@ -64,4 +64,4 @@ 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
Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#/arg
+7 -8
View File
@@ -8,31 +8,30 @@ This provides a Clear Linux* MariaDB
Build
-----
```
docker build -t clearlinux/mariadb .
docker build -t clearlinux/mariadb .
```
Or just pull it from Dockerhub
---------------------------
```
docker pull clearlinux/mariadb
docker pull clearlinux/mariadb
```
Start MariaDB Container
-----------------------
```
YOUR_HOST=`hostname -f`
docker run --name mariadb -p 3306:3306 -e MYSQL_ROOT_PASSWORD=secret -d clearlinux/mariadb
# Test it
mysql -uroot -h $YOUR_HOST -psecret -e "show databases;"
YOUR_HOST=`hostname -f`
docker run --name mariadb -p 3306:3306 -e MYSQL_ROOT_PASSWORD=secret -d clearlinux/mariadb
# Test it
mysql -uroot -h $YOUR_HOST -psecret -e "show databases;"
```
Environment Variables
---------------------
- ``MYSQL_ROOT_PASSWORD`` specifies MariaDB root password
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
Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#/arg