Created
January 25, 2016 02:24
-
-
Save makenova/ef539a099b6924769b8a to your computer and use it in GitHub Desktop.
.NET Vagrant development
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 : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.synced_folder ".", "/home/vagrant/projects" | |
config.vm.provision "shell", privileged:false, inline: <<-SHELL | |
echo '#########################' | |
echo 'add mono keys and dependencies' | |
echo '#########################' | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | |
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list | |
sudo apt-get update | |
echo '#########################' | |
echo 'install DNVM' | |
echo '#########################' | |
curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh | |
echo '#########################' | |
echo 'install DNX prerequisites and mono' | |
echo '#########################' | |
sudo apt-get -y install unzip git libunwind8 gettext libssl-dev libcurl4-openssl-dev zlib1g libicu-dev uuid-dev Mono-Complete make automake libtool | |
echo '#########################' | |
echo 'install DNX for .NET Core' | |
echo '#########################' | |
dnvm upgrade -r coreclr | |
echo '#########################' | |
echo 'install libuv' | |
echo '#########################' | |
curl -sSL https://github.com/libuv/libuv/archive/v1.8.0.tar.gz | sudo tar zxfv - -C /usr/local/src | |
cd /usr/local/src/libuv-1.8.0 | |
sudo sh autogen.sh | |
sudo ./configure | |
sudo make | |
sudo make install | |
sudo rm -rf /usr/local/src/libuv-1.8.0 && cd ~/ | |
sudo ldconfig | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment