mirror of
https://github.com/chaifeng/ufw-docker.git
synced 2025-05-10 13:38:32 +02:00
build ufw-docker-agent image in Vagrant
This commit is contained in:
parent
ab03a6aa64
commit
0ad2ebbd47
1 changed files with 8 additions and 0 deletions
8
Vagrantfile
vendored
8
Vagrantfile
vendored
|
@ -60,6 +60,14 @@ Vagrant.configure('2') do |config|
|
|||
daemonize: true
|
||||
end
|
||||
|
||||
ufw_docker_agent_image = "192.168.56.130:5000/chaifeng/ufw-docker-agent:test"
|
||||
|
||||
master.vm.provision "docker-build", type: 'shell', inline: <<-SHELL
|
||||
set -ex
|
||||
docker build -t #{ufw_docker_agent_image} /vagrant
|
||||
docker push #{ufw_docker_agent_image}
|
||||
SHELL
|
||||
|
||||
master.vm.provision "swarm-init", type: 'shell', inline: <<-SHELL
|
||||
set -ex
|
||||
docker info | fgrep 'Swarm: active' && exit 0
|
||||
|
|
Loading…
Add table
Reference in a new issue