aboutsummaryrefslogtreecommitdiff
path: root/docker/base
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2019-04-13 14:57:40 +0000
committerGerrit Code Review <review@openstack.org>2019-04-13 14:57:40 +0000
commit32693b83385c3b76ba0edf7e426bb110c6c335ae (patch)
treec687b63e3e37128de0e72695c7d4f2a0563190f2 /docker/base
parent68b17a2bed7bf47a0fdc63c9e47354cc6c0300fa (diff)
parentfb4cb9efda5a522ba0d837047385b61275d09150 (diff)
downloadkolla-32693b83385c3b76ba0edf7e426bb110c6c335ae.tar.gz
kolla-32693b83385c3b76ba0edf7e426bb110c6c335ae.zip
Merge "Add config option use_dumb_init to add it to container images"
Diffstat (limited to 'docker/base')
-rw-r--r--docker/base/Dockerfile.j26
1 files changed, 4 insertions, 2 deletions
diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2
index c9d18b296..a26ba63fc 100644
--- a/docker/base/Dockerfile.j2
+++ b/docker/base/Dockerfile.j2
@@ -407,8 +407,9 @@ COPY start.sh /usr/local/bin/kolla_start
COPY sudoers /etc/sudoers
COPY curlrc /root/.curlrc
-{% block dumb_init_installation %}
+{% if use_dumb_init %}
+{% block dumb_init_installation %}
{% if base_arch == 'x86_64' %}
RUN curl -sSL https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_{{debian_arch}} -o /usr/local/bin/dumb-init \
@@ -428,10 +429,11 @@ RUN curl -sSL http://deb.debian.org/debian/pool/main/d/dumb-init/{{dumb_init_pac
&& rm data.tar.xz {{dumb_init_package_name}}
{% endif %}
+{% endblock %}
ENTRYPOINT ["dumb-init", "--single-child", "--"]
-{% endblock %}
+{% endif %}
RUN touch /usr/local/bin/kolla_extend_start \
&& chmod 755 /usr/local/bin/kolla_start /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_set_configs \