diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2 index f6411b95ad..13372519f4 100644 --- a/docker/base/Dockerfile.j2 +++ b/docker/base/Dockerfile.j2 @@ -230,6 +230,7 @@ RUN {{ macros.install_packages(base_centos_yum_repo_packages | customizable("cen {% set base_centos_packages = [ 'ca-certificates', 'curl', + 'dumb-init', 'findutils', 'hostname', 'iproute', @@ -308,6 +309,7 @@ COPY apt_preferences /etc/apt/preferences.d/kolla-custom {% set base_apt_packages = [ 'apt-utils', 'curl', + 'dumb-init', 'gawk', 'iproute2', 'kmod', @@ -320,8 +322,8 @@ COPY apt_preferences /etc/apt/preferences.d/kolla-custom 'python3-pip', 'socat', 'sudo', - 'tgt'] -%} + 'tgt' +] %} {% if base_distro == 'ubuntu' %} {# 391A9AA2147192839E9DB0315EDB1B62EC4926EA -- Canonical Cloud Archive Signing Key #} @@ -401,16 +403,7 @@ COPY httpd_setup.sh /usr/local/bin/kolla_httpd_setup COPY sudoers /etc/sudoers {% 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", "--"] - {% endif %} {% if docker_healthchecks %} diff --git a/releasenotes/notes/improve_offline_support-e7b2384fb7390184.yaml b/releasenotes/notes/improve_offline_support-e7b2384fb7390184.yaml new file mode 100644 index 0000000000..ba262ae164 --- /dev/null +++ b/releasenotes/notes/improve_offline_support-e7b2384fb7390184.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + Improve the way offline scenario are supported: + * Switching dumb-init installation to distribution provided packages.