aboutsummaryrefslogtreecommitdiff
path: root/docker_templates
diff options
context:
space:
mode:
authorSwapnil Kulkarni <me@coolsvap.net>2015-07-16 08:48:15 +0000
committerSteven Dake <stdake@cisco.com>2015-08-20 03:22:33 -0700
commit19136fd4c4b9689b8da70f788f9426c3a242b8a6 (patch)
tree2e2d9148fd6a59fcbd7303f657296befd892b408 /docker_templates
parenta760549e78d2a36b2684dc75f521b5d05bb501b2 (diff)
downloadkolla-19136fd4c4b9689b8da70f788f9426c3a242b8a6.tar.gz
kolla-19136fd4c4b9689b8da70f788f9426c3a242b8a6.zip
Add build from source and templating for Zaqar
Co-Authored-By: Steven Dake <stdake@cisco.com> Change-Id: Ibe8b6ea7941ab3f2fd7dcfcd2ed18fd6111bb270 Partially-implements: blueprint install-from-source Partially-implements: blueprint dockerfile-template
Diffstat (limited to 'docker_templates')
-rw-r--r--docker_templates/zaqar/Dockerfile.j233
l---------docker_templates/zaqar/config-external.sh1
l---------docker_templates/zaqar/start.sh1
3 files changed, 35 insertions, 0 deletions
diff --git a/docker_templates/zaqar/Dockerfile.j2 b/docker_templates/zaqar/Dockerfile.j2
new file mode 100644
index 000000000..e312f27ad
--- /dev/null
+++ b/docker_templates/zaqar/Dockerfile.j2
@@ -0,0 +1,33 @@
+FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
+MAINTAINER Kolla Project (https://launchpad.net/kolla)
+
+{% if install_type == 'binary' %}
+ {% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
+
+RUN yum -y install openstack-zaqar && yum clean all
+
+ {% elif base_distro in ['ubuntu', 'debian'] %}
+
+RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
+ && /bin/false
+
+{% elif install_type == 'source' %}
+
+ADD ./zaqar.tar /
+RUN ln -s /zaqar-* /zaqar
+
+RUN cd /zaqar \
+ && useradd --user-group zaqar \
+ && pip install -r requirements.txt \
+ && pip install /zaqar \
+ && mkdir /etc/zaqar /var/log/zaqar \
+ && cp -r /zaqar/etc/* /etc/zaqar/ \
+ && rm -rf /root/.cache
+
+{% endif %}
+
+COPY ./start.sh /start.sh
+
+COPY config-external.sh /opt/kolla/
+
+CMD ["/start.sh"]
diff --git a/docker_templates/zaqar/config-external.sh b/docker_templates/zaqar/config-external.sh
new file mode 120000
index 000000000..412266e05
--- /dev/null
+++ b/docker_templates/zaqar/config-external.sh
@@ -0,0 +1 @@
+../../docker/common/zaqar/config-external.sh \ No newline at end of file
diff --git a/docker_templates/zaqar/start.sh b/docker_templates/zaqar/start.sh
new file mode 120000
index 000000000..51966e271
--- /dev/null
+++ b/docker_templates/zaqar/start.sh
@@ -0,0 +1 @@
+../../docker/common/zaqar/start.sh \ No newline at end of file