Improve offline build scenario.
* Use distribution based dumb-init package. Change-Id: I75927b6016bdb7577fbff354632bdab6407f359c Related-Bug: #19311980
This commit is contained in:
@@ -230,6 +230,7 @@ RUN {{ macros.install_packages(base_centos_yum_repo_packages | customizable("cen
|
|||||||
{% set base_centos_packages = [
|
{% set base_centos_packages = [
|
||||||
'ca-certificates',
|
'ca-certificates',
|
||||||
'curl',
|
'curl',
|
||||||
|
'dumb-init',
|
||||||
'findutils',
|
'findutils',
|
||||||
'hostname',
|
'hostname',
|
||||||
'iproute',
|
'iproute',
|
||||||
@@ -308,6 +309,7 @@ COPY apt_preferences /etc/apt/preferences.d/kolla-custom
|
|||||||
{% set base_apt_packages = [
|
{% set base_apt_packages = [
|
||||||
'apt-utils',
|
'apt-utils',
|
||||||
'curl',
|
'curl',
|
||||||
|
'dumb-init',
|
||||||
'gawk',
|
'gawk',
|
||||||
'iproute2',
|
'iproute2',
|
||||||
'kmod',
|
'kmod',
|
||||||
@@ -320,8 +322,8 @@ COPY apt_preferences /etc/apt/preferences.d/kolla-custom
|
|||||||
'python3-pip',
|
'python3-pip',
|
||||||
'socat',
|
'socat',
|
||||||
'sudo',
|
'sudo',
|
||||||
'tgt']
|
'tgt'
|
||||||
%}
|
] %}
|
||||||
|
|
||||||
{% if base_distro == 'ubuntu' %}
|
{% if base_distro == 'ubuntu' %}
|
||||||
{# 391A9AA2147192839E9DB0315EDB1B62EC4926EA -- Canonical Cloud Archive Signing Key <ftpmaster@canonical.com> #}
|
{# 391A9AA2147192839E9DB0315EDB1B62EC4926EA -- Canonical Cloud Archive Signing Key <ftpmaster@canonical.com> #}
|
||||||
@@ -401,16 +403,7 @@ COPY httpd_setup.sh /usr/local/bin/kolla_httpd_setup
|
|||||||
COPY sudoers /etc/sudoers
|
COPY sudoers /etc/sudoers
|
||||||
|
|
||||||
{% if use_dumb_init %}
|
{% if use_dumb_init %}
|
||||||
|
|
||||||
{% block dumb_init_installation %}
|
|
||||||
|
|
||||||
RUN curl https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_{{debian_arch}} -o /usr/local/bin/dumb-init \
|
|
||||||
&& chmod +x /usr/local/bin/dumb-init
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
ENTRYPOINT ["dumb-init", "--single-child", "--"]
|
ENTRYPOINT ["dumb-init", "--single-child", "--"]
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if docker_healthchecks %}
|
{% if docker_healthchecks %}
|
||||||
|
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Improve the way offline scenario are supported:
|
||||||
|
* Switching dumb-init installation to distribution provided packages.
|
Reference in New Issue
Block a user