Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Ensure docker_compose builds images if docker-compose.yml changed

$
0
0
I have simple manifest that should instantiate application defined docker-compose.yml. I use https://forge.puppet.com/puppetlabs/docker_platform and my manifest looks like this: include 'docker' class {'docker::compose': ensure => present, } docker_compose { './docker-compose.yml': ensure => present, } One of my services in docker-compose.yml requires build. When I do `puppet apply` for the first time, it correctly builds images and then run them using docker. Unfortunately, even if something changed, second time `puppet apply` does nothing. Is there any way how to force `docker_compose` to build images from docker-compose.yml file every time I run `puppet apply`?

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>