-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# text editors | ||
.*.swp | ||
.vagrant/* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
# The most common configuration options are documented and commented below. | ||
# For a complete reference, please see the online documentation at | ||
# https://docs.vagrantup.com. | ||
|
||
Vagrant.configure(2) do |config| | ||
|
||
if Vagrant.has_plugin?("vagrant-vbguest") | ||
config.vbguest.auto_update = false | ||
end | ||
|
||
BOX = "treehouses/buster64" | ||
BOX_VERSION = "0.12.1" | ||
|
||
config.vm.define "cli" do |cli| | ||
cli.vm.box = BOX | ||
cli.vm.box_version = BOX_VERSION | ||
|
||
cli.vm.hostname = "cli" | ||
|
||
cli.vm.provider "virtualbox" do |vb| | ||
vb.name = "cli" | ||
end | ||
|
||
cli.vm.provider "virtualbox" do |vb| | ||
vb.memory = "666" | ||
end | ||
|
||
cli.vm.network "forwarded_port", guest: 22, host: 2222, host_ip: "0.0.0.0", id: "ssh", auto_correct: true | ||
|
||
# Prevent TTY Errors (copied from laravel/homestead: "homestead.rb" file)... By default this is "bash -l". | ||
cli.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'" | ||
|
||
cli.vm.provision "shell", inline: <<-SHELL | ||
ln -sr /vagrant /root/cli | ||
ln -sr /vagrant /home/vagrant/cli | ||
SHELL | ||
|
||
# Run binding on each startup make sure the mount is available on VM restart | ||
cli.vm.provision "shell", run: "always", inline: <<-SHELL | ||
SHELL | ||
end | ||
|
||
end |