-
Notifications
You must be signed in to change notification settings - Fork 29
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
Co-authored-by: dogi <[email protected]>
- Loading branch information
1 parent
974be27
commit 554212e
Showing
2 changed files
with
55 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -17,4 +17,4 @@ gen/ | |
/build | ||
/captures | ||
.externalNativeBuild | ||
|
||
.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,54 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
# All Vagrant configuration is done below. The "2" in Vagrant.configure | ||
# configures the configuration version (we support older styles for | ||
# backwards compatibility). Please don't change it unless you know what | ||
# you're doing. | ||
Vagrant.configure("2") do |config| | ||
|
||
if Vagrant.has_plugin?("vagrant-vbguest") | ||
config.vbguest.auto_update = false | ||
end | ||
|
||
BOX = "treehouses/buster64" | ||
BOX_VERSION = "0.13.25" | ||
|
||
config.vm.define "remote" do |remote| | ||
remote.vm.box = BOX | ||
remote.vm.box_version = BOX_VERSION | ||
|
||
remote.vm.hostname = "remote" | ||
|
||
remote.vm.provider "virtualbox" do |vb| | ||
vb.name = "remote" | ||
vb.memory="666" | ||
end | ||
|
||
remote.vm.network "forwarded_port", guest: 22, host: 2222, host_ip: "0.0.0.0", id: "ssh", auto_correct: true | ||
|
||
remote.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'" | ||
remote.vm.provision "shell", inline: <<-SHELL | ||
ln -sr /vagrant /root/remote | ||
ln -sr /vagrant /home/vagrant/remote | ||
#windows | ||
dos2unix /vagrant/*/*/*/*/*/*/*/*/*/* /vagrant/*/*/*/*/*/*/*/*/* /vagrant/*/*/*/*/*/*/*/*/* /vagrant/*/*/*/*/*/*/*/* /vagrant/*/*/*/*/*/*/* /vagrant/*/*/*/*/*/* /vagrant/*/*/*/*/* /vagrant/*/*/*/* /vagrant/*/*/* /vagrant/*/* /vagrant/* | ||
unix2dos /vagrant/gradlew.bat | ||
#codeclimate | ||
docker pull codeclimate/codeclimate | ||
echo "alias codeclimate=\\\"docker run --interactive --tty --rm --env CODECLIMATE_CODE=\\\$PWD --volume \\\$PWD:/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate\\\"" > /home/vagrant/.bash_aliases | ||
chown vagrant: /home/vagrant/.bash_aliases | ||
SHELL | ||
|
||
# Run binding on each startup make sure the mount is available on VM restart | ||
remote.vm.provision "shell", run: "always", inline: <<-SHELL | ||
docker pull codeclimate/codeclimate | ||
echo | ||
echo | ||
echo "vagrant ssh" | ||
echo "cd remote" | ||
echo "git checkout <branch>" | ||
echo "codeclimate help" | ||
SHELL | ||
end | ||
end |