Skip to content

Instantly share code, notes, and snippets.

@mefellows
Last active August 29, 2015 14:17
Show Gist options
  • Save mefellows/561c6d9188bb733c9f3f to your computer and use it in GitHub Desktop.
Save mefellows/561c6d9188bb733c9f3f to your computer and use it in GitHub Desktop.
Mono Vagrantfile for building images
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "deb/jessie-amd64"
config.vbguest.auto_update = false
# Provision the Debian server with the Mono build environment
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y curl
rm -rf /var/lib/apt/lists/*
apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/3.12.0 main" > /etc/apt/sources.list.d/mono-xamarin.list
echo "deb http://ftp.debian.org/debian testing main" > /etc/apt/sources.list.d/debian-testing
echo "deb-src http://ftp.debian.org/debian testing main" >> /etc/apt/sources.list.d/debian-testing
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes mono-devel ca-certificates-mono fsharp mono-vbnc nuget docker.io
rm -rf /var/lib/apt/lists/*
sudo groupadd docker
sudo gpasswd -a vagrant docker
sudo service docker restart
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment