aboutsummaryrefslogtreecommitdiff
path: root/docker/mistral/mistral-api
diff options
context:
space:
mode:
authorhparekh <hardik.parekh@nectechnologies.in>2015-12-17 18:14:53 +0900
committerhardik <hardik.parekh@nectechnologies.in>2015-12-28 02:03:22 +0000
commitf36b5aef718fc41344afd8e6cd01a40d671d1da1 (patch)
tree9b8553e776bd73bab5085d710952ea987274dbb8 /docker/mistral/mistral-api
parent9e9225d8e6f3ea98734a9627cd2d787a5d1dae84 (diff)
downloadkolla-f36b5aef718fc41344afd8e6cd01a40d671d1da1.tar.gz
kolla-f36b5aef718fc41344afd8e6cd01a40d671d1da1.zip
Added dockerfiles for mistral.
Change-Id: Ie74a91dccf654da9305722d14af2f0a893dbaaff Partially-implements: blueprint enable-mistral-container
Diffstat (limited to 'docker/mistral/mistral-api')
-rw-r--r--docker/mistral/mistral-api/Dockerfile.j29
-rw-r--r--docker/mistral/mistral-api/extend_start.sh8
2 files changed, 17 insertions, 0 deletions
diff --git a/docker/mistral/mistral-api/Dockerfile.j2 b/docker/mistral/mistral-api/Dockerfile.j2
new file mode 100644
index 000000000..3e313ddef
--- /dev/null
+++ b/docker/mistral/mistral-api/Dockerfile.j2
@@ -0,0 +1,9 @@
+FROM {{ namespace }}/{{ image_prefix }}mistral-base:{{ tag }}
+MAINTAINER {{ maintainer }}
+
+COPY extend_start.sh /usr/local/bin/kolla_extend_start
+RUN chmod 755 /usr/local/bin/kolla_extend_start
+
+{{ include_footer }}
+
+USER mistral
diff --git a/docker/mistral/mistral-api/extend_start.sh b/docker/mistral/mistral-api/extend_start.sh
new file mode 100644
index 000000000..4316395ac
--- /dev/null
+++ b/docker/mistral/mistral-api/extend_start.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
+# of the KOLLA_BOOTSTRAP variable being set, including empty.
+if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
+ mistral-db-manage --config-file /etc/mistral/mistral.conf upgrade head
+ exit 0
+fi