summaryrefslogtreecommitdiff
path: root/contrib/cirrus/setup_environment.sh
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-06-08 12:36:06 -0400
committerGitHub <noreply@github.com>2020-06-08 12:36:06 -0400
commitb8acc851bb472c7ea9674bf1bf8ca3812ff2ab24 (patch)
tree383a0cd2440c4ec8d8b630008b2d36efa99872bb /contrib/cirrus/setup_environment.sh
parent2869cce1d53aedfe2500f3d921fb901dd5994690 (diff)
parenta5facca78fed010552339a6644dd8ef1bb0fa229 (diff)
downloadpodman-b8acc851bb472c7ea9674bf1bf8ca3812ff2ab24.tar.gz
podman-b8acc851bb472c7ea9674bf1bf8ca3812ff2ab24.tar.bz2
podman-b8acc851bb472c7ea9674bf1bf8ca3812ff2ab24.zip
Merge pull request #6515 from vrothberg/v2-enable-ubuntu
V2 enable ubuntu
Diffstat (limited to 'contrib/cirrus/setup_environment.sh')
-rwxr-xr-xcontrib/cirrus/setup_environment.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/cirrus/setup_environment.sh b/contrib/cirrus/setup_environment.sh
index 25b7ff941..4066b813b 100755
--- a/contrib/cirrus/setup_environment.sh
+++ b/contrib/cirrus/setup_environment.sh
@@ -39,6 +39,17 @@ done
cd "${GOSRC}/"
case "${OS_RELEASE_ID}" in
ubuntu)
+ apt-get update
+ apt-get install -y containers-common
+ sed -ie 's/^\(# \)\?apparmor_profile =.*/apparmor_profile = ""/' /etc/containers/containers.conf
+ if [[ "$OS_RELEASE_VER" == "19" ]]; then
+ apt-get purge -y --auto-remove golang*
+ apt-get install -y golang-1.13
+ ln -s /usr/lib/go-1.13/bin/go /usr/bin/go
+ fi
+ if [[ "$OS_RELEASE_VER" == "20" ]]; then
+ apt-get install -y python-is-python3
+ fi
;;
fedora)
# All SELinux distros need this for systemd-in-a-container