From d19adb6a6b861147de3235c6867953d872e3aeec Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Wed, 6 May 2015 05:19:56 -0700 Subject: [PATCH] Readd Zaqar for Juno series since that was where it was introduced Change-Id: I379844bb46d9ac1b933124b1736b7594700f88a8 Partially-implements: blueprint port-kilo --- README.md | 1 + docker/base/service_hosts.sh | 3 ++ docker/zaqar/Dockerfile | 9 +++++ docker/zaqar/build | 1 + docker/zaqar/check.sh | 10 ++++++ docker/zaqar/start.sh | 64 ++++++++++++++++++++++++++++++++++++ 6 files changed, 88 insertions(+) create mode 100644 docker/zaqar/Dockerfile create mode 120000 docker/zaqar/build create mode 100755 docker/zaqar/check.sh create mode 100755 docker/zaqar/start.sh diff --git a/README.md b/README.md index 5caa7a24ff..7c1c3e7edf 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ services: * Mongodb * Ceilometer * Horizon +* Zaqar ``` $ sudo docker search kollaglue diff --git a/docker/base/service_hosts.sh b/docker/base/service_hosts.sh index 99e52f8fca..c3006f720a 100755 --- a/docker/base/service_hosts.sh +++ b/docker/base/service_hosts.sh @@ -40,3 +40,6 @@ : ${NOVA_METADATA_API_SERVICE_PORT:=8775} : ${RABBITMQ_SERVICE_HOST:=$RABBITMQ_PORT_5672_TCP_ADDR} : ${RABBITMQ_SERVICE_PORT:=5672} +: ${ZAQAR_SERVER_SERVICE_HOST:=$ZAQAR_SERVER_PORT_8888_TCP_ADDR} +: ${ZAQAR_SERVER_SERVICE_PORT:=8888} + diff --git a/docker/zaqar/Dockerfile b/docker/zaqar/Dockerfile new file mode 100644 index 0000000000..956f908254 --- /dev/null +++ b/docker/zaqar/Dockerfile @@ -0,0 +1,9 @@ +FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%% +MAINTAINER Kolla Project (https://launchpad.net/kolla) + +RUN yum -y install openstack-zaqar && yum clean all + +ADD ./start.sh /start.sh +ADD ./check.sh /check.sh + +CMD ["/start.sh"] diff --git a/docker/zaqar/build b/docker/zaqar/build new file mode 120000 index 0000000000..d2accf7d39 --- /dev/null +++ b/docker/zaqar/build @@ -0,0 +1 @@ +../../tools/build-docker-image \ No newline at end of file diff --git a/docker/zaqar/check.sh b/docker/zaqar/check.sh new file mode 100755 index 0000000000..4b3cdbb464 --- /dev/null +++ b/docker/zaqar/check.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +status=$(curl -s -w "%{http_code}" -o /dev/null http://localhost:8888/v1/queues) + +if [[ $status -ne 200 && $status -ne 204 ]]; then + echo "ERROR($status): queue list failed" + exit $status +fi + +exit 0 diff --git a/docker/zaqar/start.sh b/docker/zaqar/start.sh new file mode 100755 index 0000000000..6c68fccf22 --- /dev/null +++ b/docker/zaqar/start.sh @@ -0,0 +1,64 @@ +#!/bin/sh + +set -e + +. /opt/kolla/kolla-common.sh + +: ${ADMIN_TENANT_NAME:=admin} +: ${ZAQAR_KEYSTONE_USER:=zaqar} +: ${KEYSTONE_AUTH_PROTOCOL:=http} + +check_required_vars ZAQAR_KEYSTONE_PASSWORD ZAQAR_SERVER_SERVICE_HOST \ + KEYSTONE_ADMIN_SERVICE_HOST KEYSTONE_ADMIN_TOKEN \ + PUBLIC_IP +dump_vars + +#check_for_mongodb +check_for_keystone + +cat > /openrc <