549d734da9
Add support for vendoring in containers/storage and ran dep ensure Need to get default storage for containers to include and default to overlay2. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
36 lines
1.1 KiB
Bash
Executable file
36 lines
1.1 KiB
Bash
Executable file
#!/bin/bash
|
|
set -xe
|
|
|
|
source /etc/os-release
|
|
|
|
case "${ID_LIKE:-${ID:-unknown}}" in
|
|
debian)
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
apt-get -q update
|
|
apt-get -q -y install linux-headers-`uname -r`
|
|
echo deb http://httpredir.debian.org/debian testing main > /etc/apt/sources.list
|
|
echo deb http://httpredir.debian.org/debian testing contrib >> /etc/apt/sources.list
|
|
apt-get -q update
|
|
apt-get -q -y install systemd curl
|
|
apt-get -q -y install apt make git btrfs-progs libdevmapper-dev
|
|
apt-get -q -y install zfs-dkms zfsutils-linux
|
|
apt-get -q -y install golang gccgo
|
|
;;
|
|
fedora)
|
|
dnf -y clean all
|
|
dnf -y install make git gcc btrfs-progs-devel device-mapper-devel
|
|
dnf -y install golang gcc-go
|
|
alternatives --set go /usr/lib/golang/bin/go
|
|
;;
|
|
unknown)
|
|
echo Unknown box OS, unsure of how to install required packages.
|
|
exit 1
|
|
;;
|
|
esac
|
|
mkdir -p /go/src/github.com/containers
|
|
rm -f /go/src/github.com/containers/storage
|
|
ln -s /vagrant /go/src/github.com/containers/storage
|
|
export GOPATH=/go
|
|
export PATH=/go/bin:${PATH}
|
|
go get github.com/golang/lint/...
|
|
exit 0
|