From bfc72492e7a10221237261e276f8b8d1fefa70e3 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Thu, 4 May 2017 15:54:21 +0200 Subject: 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 --- docker/opendaylight/Dockerfile.j2 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'docker') 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")) }} -- cgit v1.2.3