Last active
July 21, 2020 20:18
-
-
Save nitind/4b55b9d8b3a3211f2d2f7b651d529137 to your computer and use it in GitHub Desktop.
Vagrantfile.bionic-podman
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$pvn = <<SCRIPT | |
DEBIAN_FRONTEND=noninteractive | |
. /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-get update -y | |
sudo apt-get install -y --no-install-recommends git build-essential java-common maven openjdk-8-jdk-headless gradle wget podman | |
sudo apt-get -y upgrade | |
sudo apt-get clean | |
# systemd cgroup flag passed, but systemd support for managing cgroups is not available | |
cd /vagrant | |
# sudo podman build --build-arg MPTW_ENV=dev -t application . | |
SCRIPT | |
Vagrant.configure("2") do |config| | |
config.vm.provision "shell", inline: $pvn | |
config.vm.box = "ubuntu/bionic64" | |
config.vm.provider :virtualbox do |v| | |
v.memory = 2048 | |
v.cpus = 2 | |
end | |
config.vm.provider :libvirt do |v| | |
v.memory = 2048 | |
v.cpus = 2 | |
end | |
config.vm.define "scratch" do |box| | |
box.vm.network "private_network", ip: "192.168.11.10" | |
box.vm.hostname = "scratch" | |
box.vm.synced_folder ".", "/vagrant" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment