ci: update apt-get handling to follow latest guidelines

The docker documentation suggests that all the apt-get operations should
be done in a single RUN command.

Additionally it mentions that explicit invocation of apt-get clean is not
needed, and one should rm -rf the local apt cache.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Elie Tournier <elie.tournier@collabora.com>
macos/master
Emil Velikov 6 years ago committed by Gert Wollny
parent c5a2df90a2
commit 83aeb97169
  1. 16
      ci/Dockerfile

@ -21,8 +21,8 @@ RUN echo 'exit 101' >> /usr/sbin/policy-rc.d
RUN chmod +x /usr/sbin/policy-rc.d RUN chmod +x /usr/sbin/policy-rc.d
RUN echo deb-src http://deb.debian.org/debian testing main >> /etc/apt/sources.list RUN echo deb-src http://deb.debian.org/debian testing main >> /etc/apt/sources.list
RUN apt-get update RUN apt-get update && \
RUN apt-get -y install ca-certificates && \ apt-get -y install ca-certificates && \
apt-get -y install --no-install-recommends \ apt-get -y install --no-install-recommends \
autoconf \ autoconf \
busybox \ busybox \
@ -74,16 +74,14 @@ RUN apt-get -y install ca-certificates && \
xserver-xorg-core \ xserver-xorg-core \
xterm \ xterm \
xvfb \ xvfb \
zlib1g-dev zlib1g-dev && \
apt-get -y build-dep --no-install-recommends \
RUN apt-get -y build-dep --no-install-recommends \
libdrm \ libdrm \
mesa \ mesa \
piglit \ piglit \
virglrenderer virglrenderer && \
apt-get -y remove valgrind && \
RUN apt-get -y remove valgrind && \ rm -rf /var/lib/apt/lists/*
apt-get clean
RUN pip3 install meson RUN pip3 install meson

Loading…
Cancel
Save