Reputation: 2175
What is the correct way to write the above code? My problem is that in order for the docker container to work, it needs its configuration
template '/etc/foo/conf.yaml' do
...
notifies :restart, 'docker_container[foo]'# , :delayed
end
docker_container 'foo' do
..
volumes("/etc/foo/conf.yaml:/app/conf.yaml:ro")
action [:create, :run_if_missing]
end
Upvotes: 1
Views: 14