gitlab-ci: Bring ARM docker image install script in line with x86_64
authorMichel Dänzer <mdaenzer@redhat.com>
Thu, 10 Oct 2019 08:56:08 +0000 (10:56 +0200)
committerMichel Dänzer <michel@daenzer.net>
Tue, 22 Oct 2019 10:26:29 +0000 (10:26 +0000)
Use https:// URLs in the APT configuration.

Drop --no-install-recommends, the image generation template disables
installation of recommended packages in /etc/apt/apt.conf.

Run apt-get autoremove at the end, cleaning up packages which were
installed to satisfy dependencies but are no longer needed.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
.gitlab-ci/debian-test-install.sh

index cf0c7fab7b70e98f2c3917ff8de20693cecbc07a..85817d161f0561853aa3b6b1fc3052098bfaf589 100644 (file)
@@ -4,9 +4,10 @@ set -e
 set -o xtrace
 
 ############### Install packages for building
-apt-get update
 apt-get -y install ca-certificates
-apt-get -y install --no-install-recommends \
+sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
+apt-get update
+apt-get -y install \
        bc \
        bison \
        bzip2 \
@@ -102,3 +103,5 @@ apt-get purge -y \
         gcc \
         git \
         ninja-build
+
+apt-get autoremove -y --purge