Last active
March 9, 2018 00:37
-
-
Save bzerangue/991d7114a24fb21ab7c0c566ae41c5c4 to your computer and use it in GitHub Desktop.
vagrant ubuntu1404 build base for serverpilot (add serverpilot via "manual install")
This file contains hidden or 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 : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
# Disable automatic box update checking. If you disable this, then | |
# boxes will only be checked for updates when the user runs | |
# `vagrant box outdated`. This is not recommended. | |
# config.vm.box_check_update = false | |
config.vm.hostname = 'vagrant' | |
# Create a forwarded port mapping which allows access to a specific port | |
# within the machine from a port on the host machine. In the example below, | |
# accessing "localhost:8080" will access port 80 on the guest machine. | |
# config.vm.network :forwarded_port, guest: 443, host: 8443 | |
config.vm.network :forwarded_port, guest: 80, host: 8080 | |
config.vm.network :forwarded_port, guest: 443, host: 8443 | |
config.vm.network :forwarded_port, guest: 3306, host: 33060 | |
# Create a private network, which allows host-only access to the machine | |
# using a specific IP. | |
# config.vm.network "private_network", ip: "192.168.56.101" | |
config.vm.network "private_network", ip: "172.20.10.101" | |
# If true, then any SSH connections made will enable agent forwarding. | |
# Default value: false | |
config.ssh.forward_agent = true | |
config.ssh.insert_key = false | |
# Share an additional folder to the guest VM. The first argument is | |
# the path on the host to the actual folder. The second argument is | |
# the path on the guest to mount the folder. And the optional third | |
# argument is a set of non-required options. | |
#config.vm.synced_folder '/var/www/Sites/website', '/srv/users/serverpilot/apps/website/public', owner: "serverpilot", group: "serverpilot" | |
#config.vm.synced_folder '/Users/bmz/Sites/_apps/apps/pcpcemail/public', '/srv/users/serverpilot/apps/pcpcemail/public', type: "nfs" | |
#config.vm.synced_folder '/var/www/Sites/pma', '/srv/users/serverpilot/apps/pma/public', owner: "serverpilot", group: "serverpilot" | |
#config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: ".git/" | |
#config.vm.synced_folder 'apps', '/srv/users/serverpilot/apps', :create => "true", owner: "serverpilot", group: "serverpilot", mount_options: ["dmode=775", "fmode=764"] | |
# Provider-specific configuration so you can fine-tune various | |
# backing providers for Vagrant. These expose provider-specific options. | |
# Example for VirtualBox: | |
# | |
config.vm.provider "virtualbox" do |vb| | |
# # Display the VirtualBox GUI when booting the machine | |
# vb.gui = true | |
# | |
# # Customize the amount of memory on the VM: | |
vb.memory = "1024" | |
end | |
config.vm.provision "shell", inline: "apt-get update && apt-get install -y curl gcc g++ make autoconf libc-dev pkg-config gcj-jdk zip unzip" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment