summaryrefslogtreecommitdiff
path: root/contrib/cirrus/packer/ubuntu_setup.sh
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2019-02-22 09:33:41 -0500
committerChris Evich <cevich@redhat.com>2019-02-22 12:07:36 -0500
commit69c91e044a41455b9d089767f4094c8f992faa7e (patch)
tree01e2e4c937a51c2eaf62bc712d358c3925df3876 /contrib/cirrus/packer/ubuntu_setup.sh
parent7184efe93980f2e59bed08f0bf9430c8f35f030d (diff)
downloadpodman-69c91e044a41455b9d089767f4094c8f992faa7e.tar.gz
podman-69c91e044a41455b9d089767f4094c8f992faa7e.tar.bz2
podman-69c91e044a41455b9d089767f4094c8f992faa7e.zip
Cirrus: Install Go 1.11 on Ubuntu VMs
There is no native package for this, so the packaged version must also be installed, otherwise all the support/dependencies would be removed also (like go-md2man). Fix this by installing from the google released tarball, into /usr/local/go and set $GOROOT to point there. Also, include a small fix for hack/get_ci_vm.sh not installing testing dependencies because of an old assumption. ***CIRRUS: REBUILD IMAGES*** Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib/cirrus/packer/ubuntu_setup.sh')
-rw-r--r--contrib/cirrus/packer/ubuntu_setup.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/cirrus/packer/ubuntu_setup.sh b/contrib/cirrus/packer/ubuntu_setup.sh
index af5671c90..7d49c5dc7 100644
--- a/contrib/cirrus/packer/ubuntu_setup.sh
+++ b/contrib/cirrus/packer/ubuntu_setup.sh
@@ -28,7 +28,13 @@ export DEBIAN_FRONTEND=noninteractive
echo "Updating system and installing package dependencies"
ooe.sh sudo -E apt-get -qq update || sudo -E apt-get -qq update
ooe.sh sudo -E apt-get -qq upgrade || sudo -E apt-get -qq upgrade
-ooe.sh sudo -E apt-get -qq install --no-install-recommends \
+ooe.sh sudo -E apt-get -qq install software-properties-common
+
+# Required to have Go 1.11 on Ubuntu 18.0.4
+ooe.sh sudo -E add-apt-repository --yes ppa:longsleep/golang-backports
+ooe.sh sudo -E apt-get -qq update || sudo -E apt-get -qq update
+
+ooe.sh sudo -E apt-get -qq install \
apparmor \
autoconf \
automake \