diff options
| author | Mark Goddard <mark@stackhpc.com> | 2019-06-05 17:16:49 +0100 |
|---|---|---|
| committer | Mark Goddard <mark@stackhpc.com> | 2019-06-06 11:06:58 +0000 |
| commit | aa59f0db6f88ed0a03169b473fdf6d541d34df9f (patch) | |
| tree | d5d2bc3512d17f88a052f652a7d0d073f61fe47c /docker/dind | |
| parent | 4e083196d14877de458ae16129331c37fe1f6f21 (diff) | |
| download | kolla-aa59f0db6f88ed0a03169b473fdf6d541d34df9f.tar.gz kolla-aa59f0db6f88ed0a03169b473fdf6d541d34df9f.zip | |
Debian/Ubuntu: more python3 packages for binary
backport: Stein
During the switch to Stein UCA, we did not switch all packages to python
3 for Debian/Ubuntu binary images. This change switches some more of
those packages.
Change-Id: I0bff21384d88ea678608392de2db1ba418c96665
Co-Authored-By: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Diffstat (limited to 'docker/dind')
| -rw-r--r-- | docker/dind/Dockerfile.j2 | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/docker/dind/Dockerfile.j2 b/docker/dind/Dockerfile.j2 index 33b8fb851..fa5daad14 100644 --- a/docker/dind/Dockerfile.j2 +++ b/docker/dind/Dockerfile.j2 @@ -15,31 +15,26 @@ RUN /bin/true {% elif base_package_type == 'deb' %} {% set dind_packages = [ 'btrfs-progs', + 'docker.io', 'openssh-server' ] %} - {% if base_distro in ['debian'] %} - {% set dind_packages = dind_packages + [ - 'docker-ce' - ] %} - {% else %} - {% set dind_packages = dind_packages + [ - 'docker.io' - ] %} - {% endif %} - {% if install_type == 'binary' %} {% set dind_packages = dind_packages + [ - 'python-setuptools' + 'python3-docker' ] %} {% endif %} + {{ macros.install_packages(dind_packages | customizable("packages")) }} -{% set dind_pip_packages = [ - 'docker' -] %} + {% if install_type == 'source' %} + + {% set dind_pip_packages = [ + 'docker' + ] %} RUN {{ macros.install_pip(dind_pip_packages | customizable("pip_packages"), constraints = false) }} + {% endif %} {% endif %} |
