From f2f679690a1c53ae7ea6f212bcab6747dc5bbe36 Mon Sep 17 00:00:00 2001 From: Daneyon Hansen Date: Thu, 19 Feb 2015 00:50:01 +0000 Subject: [PATCH] Implements: blueprint heat-fig-update Fig is initially being evaluated to provide container set functionality. Therefore, the heat template needs to be updated to support running fig on Kolla nodes. This patch adds the required directories, files, and commands to run fig and a RabbitMQ container for testing. Change-Id: Ifad399b43d8ca712a5efbdafe945d055c33b1e77 --- devenv/kollanode.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/devenv/kollanode.yaml b/devenv/kollanode.yaml index 915c53a012..fd365e35c0 100644 --- a/devenv/kollanode.yaml +++ b/devenv/kollanode.yaml @@ -152,6 +152,34 @@ resources: systemctl enable docker systemctl start docker + # Directory where the fig container reads yaml files + mkdir -p /opt/docker-compose + + # Sample yaml file for testing + cat << EOF > /opt/docker-compose/docker-compose.yml + rabbitmq: + image: kollaglue/fedora-rdo-rabbitmq + environment: + RABBITMQ_NODENAME: rabbit01 + RABBITMQ_USER: rabbit + RABBITMQ_PASS: password + net: "host" + ports: + - "5672:5672" + - "15672:15672" + - "4369:4369" + - "25672:25672" + privileged: true + EOF + + # Pull the fig image + docker pull kollaglue/fedora-rdo-docker-compose + + # Up the RabbitMQ test container-set + docker run --privileged -v /opt/docker-compose:/opt/docker-compose \ + -v /var/run/docker.sock:/var/run/docker.sock \ + kollaglue/fedora-rdo-docker-compose up -d + cfn-signal -e0 --data 'OK' -r 'Setup complete' '$WAIT_HANDLE' params: "$WAIT_HANDLE":