-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a Vagrant file that is caplable of running vmpooler in Docker o…
…r locally
- Loading branch information
Showing
2 changed files
with
20 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,3 +1,4 @@ | ||
.vagrant/ | ||
.ruby-version | ||
Gemfile.lock | ||
Gemfile.local | ||
|
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,19 @@ | ||
# vim: autoindent tabstop=2 shiftwidth=2 expandtab softtabstop=2 filetype=ruby | ||
Vagrant.configure("2") do |config| | ||
config.vm.box = "genebean/centos-7-rvm-221" | ||
config.vm.network "forwarded_port", guest: 4567, host: 4567 | ||
config.vm.network "forwarded_port", guest: 8080, host: 8080 | ||
config.vm.provision "shell", inline: <<-SCRIPT | ||
mkdir /var/log/vmpooler | ||
chown vagrant:vagrant /var/log/vmpooler | ||
yum -y install docker | ||
groupadd docker | ||
usermod -aG docker vagrant | ||
systemctl enable docker | ||
systemctl start docker | ||
docker build -t vmpooler /vagrant | ||
docker images | ||
echo 'To use the container run with the dummy provider do this:' | ||
echo "docker run -e VMPOOLER_DEBUG=true -p 8080:4567 -v /vagrant/vmpooler.yaml.dummy-example:/var/lib/vmpooler/vmpooler.yaml -e VMPOOLER_LOG='/var/log/vmpooler/vmpooler.log' -it --rm --name pooler vmpooler" | ||
SCRIPT | ||
end |