diff options
| author | Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> | 2019-10-17 03:36:17 -0700 |
|---|---|---|
| committer | Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> | 2019-10-17 03:39:40 -0700 |
| commit | bf20b41e7dea702b693fa98ea27822c8a33a5591 (patch) | |
| tree | b6720d7b5f6c0c1646a269358405f0df4734fddc /docker/base/Dockerfile.j2 | |
| parent | fd5bff9cf1d9eac371cf481d2888771666eba359 (diff) | |
| download | kolla-bf20b41e7dea702b693fa98ea27822c8a33a5591.tar.gz kolla-bf20b41e7dea702b693fa98ea27822c8a33a5591.zip | |
get 'apt_*' options of kolla-build.conf working again
We broke 'apt_sources_list' and 'apt_preferences' options quite a while
ago. Turned out that fix is quite simple.
This change adds empty sources.list and apt-preferences files which are
always added into images. If kolla-build.conf will use any of APT
related options then those files will be replaced with provided ones.
Change-Id: I7bbdcbd5c60f654a484a872209e0537e3950346c
Closes-bug: #1706549
Diffstat (limited to 'docker/base/Dockerfile.j2')
| -rw-r--r-- | docker/base/Dockerfile.j2 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2 index 170885346..04aeee35a 100644 --- a/docker/base/Dockerfile.j2 +++ b/docker/base/Dockerfile.j2 @@ -315,10 +315,12 @@ COPY sources.list.{{ base_distro }} /etc/apt/sources.list {% else %} COPY sources.list.{{ base_distro }}.{{ base_arch }} /etc/apt/sources.list {% endif %} +COPY sources.list /etc/apt/sources.list.d/kolla-custom.list {% endblock %} {% block base_ubuntu_package_apt_preferences %} COPY apt_preferences.{{ base_distro }} /etc/apt/preferences +COPY apt_preferences /etc/apt/preferences.d/kolla-custom {% endblock %} {% set base_apt_packages = [ |
