From a7553219b8ceaf3f57294f969a14d8eff7490986 Mon Sep 17 00:00:00 2001 From: "Munoz, Obed N" Date: Fri, 21 Oct 2016 09:49:23 -0500 Subject: [PATCH] Update READMEs Signed-off-by: Munoz, Obed N --- ciao-common/README.md | 4 ++-- ciao-deploy/README.md | 10 ++++----- ciao-scheduler/README.md | 4 ++-- ciao-webui/README.md | 20 ++++++++--------- keystone/README.md | 48 ++++++++++++++++++++-------------------- mariadb/README.md | 15 ++++++------- 6 files changed, 50 insertions(+), 51 deletions(-) diff --git a/ciao-common/README.md b/ciao-common/README.md index 83185fa..b6ff196 100644 --- a/ciao-common/README.md +++ b/ciao-common/README.md @@ -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 diff --git a/ciao-deploy/README.md b/ciao-deploy/README.md index 64398e6..0597784 100644 --- a/ciao-deploy/README.md +++ b/ciao-deploy/README.md @@ -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 diff --git a/ciao-scheduler/README.md b/ciao-scheduler/README.md index 256a25d..4f3b72c 100644 --- a/ciao-scheduler/README.md +++ b/ciao-scheduler/README.md @@ -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 diff --git a/ciao-webui/README.md b/ciao-webui/README.md index fd52b57..b39a808 100644 --- a/ciao-webui/README.md +++ b/ciao-webui/README.md @@ -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 diff --git a/keystone/README.md b/keystone/README.md index 3be872b..faf961d 100644 --- a/keystone/README.md +++ b/keystone/README.md @@ -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 \ No newline at end of file +Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#/arg diff --git a/mariadb/README.md b/mariadb/README.md index 7e1bc5c..a92028f 100644 --- a/mariadb/README.md +++ b/mariadb/README.md @@ -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 \ No newline at end of file +Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#/arg