31 lines
826 B
Ruby
31 lines
826 B
Ruby
Vagrant.configure("2") do |config|
|
|
config.vm.box = "ubuntu/bionic64"
|
|
|
|
config.vm.provision "shell" do |s|
|
|
s.inline = <<-SHELL
|
|
sudo apt update -y
|
|
sudo apt install -y build-essential
|
|
|
|
# Installation of Janet from source
|
|
git clone https://github.com/janet-lang/janet.git
|
|
cd janet
|
|
sudo make
|
|
sudo make test
|
|
|
|
sudo cp build/janet /usr/local/bin/
|
|
cd ..
|
|
|
|
# Installation of Perl from source
|
|
git clone https://github.com/Perl/perl5
|
|
cd perl5
|
|
./Configure -des -Dprefix=/usr/local -Dusedevel
|
|
make test
|
|
make install
|
|
SHELL
|
|
end
|
|
|
|
config.vm.provider "virtualbox" do |v|
|
|
v.memory = 2048
|
|
v.cpus = 4
|
|
end
|
|
end |