From 3f4dd2dd3a20458b67f2c782c65080ac95f02641 Mon Sep 17 00:00:00 2001 From: Arthur Barr Date: Wed, 7 Feb 2018 16:28:16 +0000 Subject: [PATCH] Limit apt to main/updates/security only --- install-mq.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install-mq.sh b/install-mq.sh index 900b5c3..6ac6bd2 100644 --- a/install-mq.sh +++ b/install-mq.sh @@ -29,6 +29,12 @@ fi if ($UBUNTU); then export DEBIAN_FRONTEND=noninteractive + # Use a reduced set of apt repositories. + # This ensures no unsupported code gets installed, and makes the build faster + source /etc/os-release + echo "deb http://archive.ubuntu.com/ubuntu/ ${UBUNTU_CODENAME} main restricted" > /etc/apt/sources.list + echo "deb http://archive.ubuntu.com/ubuntu/ ${UBUNTU_CODENAME}-updates main restricted" >> /etc/apt/sources.list + echo "deb http://archive.ubuntu.com/ubuntu/ ${UBUNTU_CODENAME}-security main restricted" >> /etc/apt/sources.list # Install additional packages required by MQ, this install process and the runtime scripts apt-get update apt-get install -y --no-install-recommends \