Bug 1845: LTS Support 00/11600/1 v10.1.0 v10.1.0-rc1 v10.1.0rc2 v10.1.0rc3
authorbeierlm <mark.beierl@canonical.com>
Tue, 18 Jan 2022 13:48:07 +0000 (08:48 -0500)
committerbeierlm <mark.beierl@canonical.com>
Mon, 31 Jan 2022 13:24:00 +0000 (08:24 -0500)
Updates base to Ubuntu 20.04
Adds apt cache to stage 2 dockerfile
Fixes bug 1845

Change-Id: I7bb259efc3ac14bb72e9e5fd78562843e4a67e52
Signed-off-by: beierlm <mark.beierl@canonical.com>
Dockerfile

index f222244..d092886 100644 (file)
 #   devops-stages/stage-build.sh
 #
 
-FROM ubuntu:18.04
+FROM ubuntu:20.04
+
+ARG APT_PROXY
+RUN if [ ! -z $APT_PROXY ] ; then \
+    echo "Acquire::http::Proxy \"$APT_PROXY\";" > /etc/apt/apt.conf.d/proxy.conf ;\
+    echo "Acquire::https::Proxy \"$APT_PROXY\";" >> /etc/apt/apt.conf.d/proxy.conf ;\
+    fi
 
 RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
     DEBIAN_FRONTEND=noninteractive apt-get -y install \