Skip to content

Instantly share code, notes, and snippets.

@mshmsh5000
Last active September 7, 2017 00:32
Show Gist options
  • Save mshmsh5000/515d9deababf60ac00258055ba7d4905 to your computer and use it in GitHub Desktop.
Save mshmsh5000/515d9deababf60ac00258055ba7d4905 to your computer and use it in GitHub Desktop.
We Vote Server: Prebuilt Vagrantfile
# -*- 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 = "wevote-imported"
config.vm.define "wevoteserver-prebuilt", primary: true do |app|
app.vm.hostname = "wevoteapi"
end
config.vm.network :forwarded_port, guest: 80, host: 8888
config.vm.network :forwarded_port, guest: 443, host: 8889
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--name", "WeVoteServer", "--memory", "2048"]
# Prevent the creation of ubuntu-xenial-16.04-cloudimg-console.log on host
vb.customize ["modifyvm", :id, "--uartmode1", "disconnected"]
end
config.ssh.username = "ubuntu"
# Make sure your local WeVoteServer repo is accessible here.
config.vm.synced_folder "../WeVoteServer", "/webapps/wevoteserver/WeVoteServer"
# Disable the default share
config.vm.synced_folder '.', '/vagrant', disabled: true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment