Skip to content

Commit

Permalink
Implement workaround for broken buildah installation
Browse files Browse the repository at this point in the history
  • Loading branch information
kpfleming committed Apr 3, 2021
1 parent d2f9505 commit a4f8e1c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/buildah_fix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

set -ex

sudo apt-get remove buildah
sudo apt-get -y install software-properties-common
sudo add-apt-repository -y ppa:alexlarsson/flatpak
sudo apt-get -y -qq update
sudo apt-get -y install bats libapparmor-dev libdevmapper-dev libglib2.0-dev libgpgme11-dev libseccomp-dev libselinux1-dev skopeo-containers go-md2man
sudo apt-get -y install golang-1.13
mkdir ~/buildah
pushd ~/buildah
export GOPATH=`pwd`
git clone https://github.com/containers/buildah ./src/github.com/containers/buildah
cd ./src/github.com/containers/buildah
git checkout release-1.19
PATH=/usr/lib/go-1.13/bin:$PATH make runc all SECURITYTAGS="apparmor seccomp"
sudo make install install.runc
buildah version
popd
2 changes: 2 additions & 0 deletions tests/make_pdns_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ fi
scriptdir=$(realpath $(dirname ${BASH_SOURCE[0]}))
pdns=${1}

${scriptdir}/buildah_fix.sh

c=$(buildah from ${base_image})

buildcmd() {
Expand Down
2 changes: 2 additions & 0 deletions tests/make_tox_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ scriptdir=$(realpath $(dirname ${BASH_SOURCE[0]}))
pdns=${1}
pydeps=(build-essential libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev)

${scriptdir}/buildah_fix.sh

c=$(buildah from debian:buster)

buildcmd() {
Expand Down

0 comments on commit a4f8e1c

Please sign in to comment.