aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaël THEROND (Fl1nt) <gael.therond@bitswalk.com>2021-06-17 16:42:42 +0200
committerGaël THEROND (Fl1nt) <gael.therond@bitswalk.com>2021-06-17 16:42:42 +0200
commit5940d1758fabf47d15bac5c08d0afa57fbb35964 (patch)
tree91fa5b38e9f8a1b2d538748fe332a3183736bd74
parent4e4dcf0eae4ab0338ca3480a3524066c1fdd6218 (diff)
downloadkolla-5940d1758fabf47d15bac5c08d0afa57fbb35964.tar.gz
kolla-5940d1758fabf47d15bac5c08d0afa57fbb35964.zip
Improve offline build scenario.
* Use distribution based dumb-init package. Change-Id: I75927b6016bdb7577fbff354632bdab6407f359c Related-Bug: #19311980
-rw-r--r--docker/base/Dockerfile.j215
-rw-r--r--releasenotes/notes/improve_offline_support-e7b2384fb7390184.yaml5
2 files changed, 9 insertions, 11 deletions
diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2
index f6411b95a..13372519f 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 <ftpmaster@canonical.com> #}
@@ -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 000000000..ba262ae16
--- /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.