Created
April 4, 2016 15:20
-
-
Save antweiss/da38fc6b3acc78977a34902ccdc5f040 to your computer and use it in GitHub Desktop.
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.network "forwarded_port", guest: 80, host: 8080 | |
# | |
config.vm.provider "virtualbox" do |vb| | |
# # Customize the amount of memory on the VM: | |
vb.memory = "4096" | |
end | |
# | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo perl -i -ple 's/archive/il.archive/g' /etc/apt/sources.list | |
sudo apt-get update | |
sudo useradd -d /home/stack -m -s /bin/bash stack | |
sudo fallocate -l 1G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo echo 'stack ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers | |
sudo chown stack:stack /home/stack | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment