Created
June 11, 2017 14:22
-
-
Save patelkunal/0c640b05e04ffecc19fcdb4fcee51aa0 to your computer and use it in GitHub Desktop.
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 : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.box_check_update = false | |
config.vm.network "forwarded_port", guest: 80, host: 8888, host_ip: "127.0.0.1" | |
config.vm.network "forwarded_port", guest: 443, host: 8443, host_ip: "127.0.0.1" | |
# config.vm.synced_folder "./data", "/vagrant_data" | |
config.vm.provider "virtualbox" do |vb| | |
# vb.name = "some_name" | |
end | |
config.vm.provision "shell", privileged: false, inline: <<-SHELL | |
# common setup, nothing specific to ugcom | |
sudo apt-get -y -qq update | |
sudo apt-get install -y -qq vim curl tree git | |
wget -q https://gist.githubusercontent.com/patelkunal/5c5b06f4fb2ae57c027983ffa8076ca7/raw -O .bash_profile | |
# backend setup | |
# java8 server-jre setup | |
# production setup | |
wget -q https://gist.githubusercontent.com/patelkunal/691d4790c968cfed27798e838bce3393/raw/c2266599175f7bafdd04d421967db9765394cd8e/java8-serverjre.sh -O - | sudo bash | |
# download artifacts and start program | |
# frontend setup | |
sudo apt-get -y -qq install nginx | |
# download artifacts and run | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment