qemu/tests/docker/dockerfiles
Philippe Mathieu-Daudé beac6a98f6 docker: ubuntu: Update the package list before installing new ones
Since docker caches the different layers, updating the package
list does not invalidate the previous "apt-get update" layer,
and it is likely "apt-get install" hits an outdated repository.

See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#apt-get

This fixes:

  $ make docker-image-ubuntu V=1
  ./tests/docker/docker.py build qemu:ubuntu tests/docker/dockerfiles/ubuntu.docker   --add-current-user
  Sending build context to Docker daemon  3.072kB
  [...]
  E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/mesa/libgles2-mesa_17.0.7-0ubuntu0.16.04.2_amd64.deb  404  Not Found
  E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/mesa/libgles2-mesa-dev_17.0.7-0ubuntu0.16.04.2_amd64.deb  404  Not Found
  E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
  The command '/bin/sh -c apt-get -y install $PACKAGES' returned a non-zero code: 100
  tests/docker/Makefile.include:40: recipe for target 'docker-image-ubuntu' failed
  make: *** [docker-image-ubuntu] Error 1

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
2018-07-05 15:59:41 +01:00
..
centos7.docker docker: add installation to build tests 2017-09-29 11:14:14 +08:00
debian8-mxe.docker docker: add python stdlib dependency (required by keycodemapdb) 2017-11-02 11:46:41 +00:00
debian8.docker docker: move debian-powerpc-cross to sid based build 2018-06-20 20:22:34 +01:00
debian9.docker docker: add installation to build tests 2017-09-29 11:14:14 +08:00
debian-alpha-cross.docker tests/tcg: enable building for Alpha 2018-06-20 20:22:34 +01:00
debian-amd64.docker docker: enable gcrypt to extend code coverage on amd64 2017-07-18 10:54:30 +01:00
debian-arm64-cross.docker docker: enable nettle to extend code coverage on arm64 2017-07-18 10:54:30 +01:00
debian-armel-cross.docker docker: add debian/armel based on Stretch 2017-07-18 10:54:30 +01:00
debian-armhf-cross.docker docker: remove packages now dependent of qemu in Stretch 2017-07-18 10:54:30 +01:00
debian-bootstrap.docker tests/docker/dockerfiles: new debian-bootstrap.docker 2016-07-20 19:19:43 +08:00
debian-bootstrap.pre docker: build debootstrap after cloning 2016-09-08 19:56:34 +08:00
debian-hppa-cross.docker tests/tcg: enable building for HPPA 2018-06-20 20:22:34 +01:00
debian-m68k-cross.docker tests/tcg: enable building for m68k 2018-06-20 20:22:34 +01:00
debian-mips64-cross.docker tests/tcg: enable building for mips64 2018-06-20 20:22:34 +01:00
debian-mips64el-cross.docker docker: add debian/mips64el image 2017-07-18 10:58:36 +01:00
debian-mips-cross.docker docker: add debian/mips[eb] images 2017-07-18 10:58:35 +01:00
debian-mipsel-cross.docker docker: add debian/mips[eb] images 2017-07-18 10:58:35 +01:00
debian-ports.docker docker: add installation to build tests 2017-09-29 11:14:14 +08:00
debian-powerpc-cross.docker docker: move debian-powerpc-cross to sid based build 2018-06-20 20:22:34 +01:00
debian-ppc64el-cross.docker docker: add debian/ppc64el based on Stretch 2017-07-18 10:54:30 +01:00
debian-riscv64-cross.docker tests/tcg: enable building for RISCV64 2018-06-20 20:22:34 +01:00
debian-s390x-cross.docker docker: remove packages now dependent of qemu in Stretch 2017-07-18 10:54:30 +01:00
debian-sh4-cross.docker tests/tcg: enable building for sh4 2018-06-20 20:22:34 +01:00
debian-sid.docker tests/tcg: enable building for Alpha 2018-06-20 20:22:34 +01:00
debian-sparc64-cross.docker tests/tcg: enable building for sparc64 2018-06-20 20:22:34 +01:00
debian-tricore-cross.docker docker: add debian/tricore image 2018-06-05 16:25:43 +01:00
debian-win32-cross.docker docker: add MXE (M cross environment) base image for MinGW-w64 2017-07-18 10:58:36 +01:00
debian-win64-cross.docker docker: add MXE (M cross environment) base image for MinGW-w64 2017-07-18 10:58:36 +01:00
debian.docker docker: warn users to use newer debian8/debian9 base image 2017-07-18 10:58:36 +01:00
fedora-i386-cross.docker docker: Add fedora-i386-cross image 2018-06-05 16:25:42 +01:00
fedora.docker docker: test-mingw: use SDL2 and GTK+3 2018-06-05 16:25:42 +01:00
travis.docker docker: add gcovr to travis image 2018-07-05 15:59:41 +01:00
ubuntu.docker docker: ubuntu: Update the package list before installing new ones 2018-07-05 15:59:41 +01:00