Created
September 23, 2018 13:21
-
-
Save s-belichenko/b70d23ede89348008cfe5e0ff259c68e 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 file v1.0.0 for scotch/box | |
# Vagrant version: 2.0.0 and later | |
# | |
######################################################### | |
PROJECT_NAME = "vm.local" | |
PROGECT_MEMORY = 1024 | |
PROJECT_CORE = 1 | |
PROJECT_IP = "192.168.10.x" | |
Vagrant.configure("2") do |config| | |
config.vm.provider "virtualbox" do |v| | |
v.name = PROJECT_NAME | |
v.memory = PROGECT_MEMORY | |
v.cpus = PROJECT_CORE | |
end | |
config.ssh.username = "vagrant" | |
config.ssh.password = "vagrant" | |
config.vm.box = "scotch/box" | |
# uncomment and edit this if you want to specify version of box | |
#config.vm.box_version = "x.x.x" | |
# set the domain name and IP* | |
# *you can use a different range of local addresses, 10.10.0.0 for example | |
config.vm.network "private_network", ip: PROJECT_IP | |
config.vm.hostname = PROJECT_NAME | |
config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"] | |
# uncomment this if you are bothered by 'stdin-is-not-a-tty' error | |
# see more here http://foo-o-rama.com/vagrant--stdin-is-not-a-tty--fix.html | |
#config.vm.provision "fix-no-tty", type: "shell" do |s| | |
# s.privileged = false | |
# s.inline = "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile" | |
#end | |
# uncomment and edit this if you have a bootstrap/common.sh or any other bootstrap script | |
#config.vm.provision "Some name", type: "shell" do |s| | |
# s.keep_color = true | |
# s.binary = true | |
# s.privileged = false | |
# s.path = "bootstrap/common.sh" | |
#end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment