Skip to content

Instantly share code, notes, and snippets.

@developer-guy
Created September 29, 2020 09:00
Show Gist options
  • Save developer-guy/20a109a60563bb5d205a0376619dcab8 to your computer and use it in GitHub Desktop.
Save developer-guy/20a109a60563bb5d205a0376619dcab8 to your computer and use it in GitHub Desktop.
podman + buildah + skopeo Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-18.04"
config.vm.define "buildah" do |buildah|
buildah.vm.network "private_network", ip: "192.168.33.10"
buildah.vm.provider "virtualbox" do |vb|
vb.name = "buildah"
vb.memory = "2048"
end
buildah.vm.provision "shell", inline: <<-SHELL
sudo apt-get update -qq
sudo apt-get -qq -y install wget
echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_10/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/Debian_10/Release.key -O Release.key
sudo apt-key add - < Release.key
sudo apt-get update -qq
sudo apt-get -qq -y install buildah
. /etc/os-release
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add -
sudo apt update
sudo apt -y install podman skopeo
SHELL
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment