aboutsummaryrefslogtreecommitdiff
path: root/docker/opendaylight
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2017-05-04 15:54:21 +0200
committerMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2017-05-08 14:31:33 +0200
commitbfc72492e7a10221237261e276f8b8d1fefa70e3 (patch)
tree6e594709a230fbbc59b96abf8706d5382e79e3e4 /docker/opendaylight
parent9751b32a7b37e12fab19a6a99c98c4c58f348a6d (diff)
downloadkolla-bfc72492e7a10221237261e276f8b8d1fefa70e3.tar.gz
kolla-bfc72492e7a10221237261e276f8b8d1fefa70e3.zip
always update APT lists when install packages
Normally we update APT lists when 'base' image is built. But when some time pass those lists get out-of-date and images can not be built. CentOS based images handle that without issues because YUM updates repository data whenever they are out-of-date. Change-Id: I5ba5b2067566639b399329b878027d4513567f71
Diffstat (limited to 'docker/opendaylight')
-rw-r--r--docker/opendaylight/Dockerfile.j23
1 files changed, 1 insertions, 2 deletions
diff --git a/docker/opendaylight/Dockerfile.j2 b/docker/opendaylight/Dockerfile.j2
index a3b323981..f6775c21d 100644
--- a/docker/opendaylight/Dockerfile.j2
+++ b/docker/opendaylight/Dockerfile.j2
@@ -24,8 +24,7 @@ COPY {{ opendaylight_repo }} /etc/yum.repos.d/
{% set odl_release_deb_url = 'http://download.opensuse.org/repositories/home:/akshitajha/Debian_8.0/' %}
{% endif %}
{% endif %}
-RUN sh -c "echo 'deb {{ odl_release_deb_url }} /' > /etc/apt/sources.list.d/opendaylight.list" \
-&& apt-get update
+RUN sh -c "echo 'deb {{ odl_release_deb_url }} /' > /etc/apt/sources.list.d/opendaylight.list"
{% endif %}
{{ macros.install_packages(opendaylight_packages | customizable("packages")) }}