Run unit testing in Vagrant

This commit is contained in:
Chai Feng 2019-10-17 22:56:29 +02:00
parent 3893c86236
commit aef8f7df82

4
Vagrantfile vendored
View File

@ -55,6 +55,10 @@ Vagrant.configure('2') do |config|
master.vm.hostname = "master" master.vm.hostname = "master"
master.vm.network "private_network", ip: "#{ip_prefix}.130" master.vm.network "private_network", ip: "#{ip_prefix}.130"
master.vm.provision "unit-testing", type: 'shell', inline: <<-SHELL
/vagrant/test/ufw-docker.test.sh
SHELL
master.vm.provision "docker-registry", type: 'docker' do |d| master.vm.provision "docker-registry", type: 'docker' do |d|
d.run "registry", d.run "registry",
image: "registry:2", image: "registry:2",