...
 
Commits (2)
......@@ -2,21 +2,17 @@
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2".freeze
VAGRANTFILE_API_VERSION = '2'.freeze
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = ENV['BOX'] || "debian/stretch64"
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.box = ENV['BOX'] || 'debian/stretch64'
config.vm.network 'forwarded_port', guest: 8080, host: 8080
# default synced_folder settings will copy the actual contents of the symlink
# but we only want to copy the symlinks as they are
config.vm.synced_folder ".", "/vagrant", type: "rsync",
rsync__args: ["--verbose", "--archive", "--delete", "-z", "--links"]
config.vm.synced_folder '.', '/vagrant', type: 'rsync',
rsync__args: ['--verbose', '--archive', '--delete', '-z', '--links']
# if for some reason you want to run `vagrant provision`
# please uncomment the following line and comment the original line
# config.vm.provision "shell", inline: 'echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list', run: "never"
config.vm.provision "shell", inline: 'echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list'
config.vm.provision "shell", path: "vagrant/script.sh"
config.vm.provision 'shell', path: 'tools/vagrant_root.sh'
config.vm.provision 'shell', path: 'tools/vagrant_user.sh', privileged: false
end
......@@ -34,10 +34,10 @@ Once inside vagrant, you can start run debci with the following commands
```
vagrant@stretch $ cd /vagrant
vagrant@stretch $ sudo foreman start
vagrant@stretch $ foreman start
```
Note: The other commands are the same as the ones mentioned in manual setup, but you have to use `sudo`.
Note: The other commands are the same as the ones mentioned in manual setup.
## Manual Setup
### Grab the dependencies and required software
......
......@@ -21,8 +21,4 @@ esac
echo "I: Web UI at http://localhost:$port/"
echo "I: Hit Control+C to stop"
echo ""
# --host defaults to localhost
# which is different from what `man rackup` says
# also see: https://github.com/rack/rack/commit/076711a837cda3f07889cab05cb89964ce2314f0
# change to 0.0.0.0 for vagrant or docker environments to have access
exec rerun --no-notify --background --dir lib -p '**/*.rb' -- rackup --include lib --port="$port" --host=0.0.0.0
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
echo "Running as root"
export DEBIAN_FRONTEND=noninteractive
echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list
apt-get -y update
apt-get -qqyt stretch-backports install autopkgtest
apt-get -qqy install make ruby git debootstrap
cd /vagrant
apt-get -qqy build-dep .
./tools/init-dev.sh
make
./bin/debci migrate
./bin/debci setup-chdist
echo "Development virtual machine is installed!"
#!/bin/bash
echo "Running as user vagrant"
cd /vagrant
./tools/init-dev.sh
make
./bin/debci migrate
./bin/debci setup-chdist
echo "Development virtual machine is installed!"
\ No newline at end of file