Puppet Docker Rebuild an image with respect to changes in dockerfile

0 votes

I am building a docker image via a dockerfile that i have specified in the manifest file as shown:

docker::image { 'ubuntu':
  docker_file => '/tmp/Dockerfile'
}

How do i rebuild an image pertaining to changes in the docker file? How can i include this in my manifest?

Aug 13, 2019 in Puppet by Sam
• 6,260 points
1,027 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

To rebuild an image, subscribe to external events such as Dockerfile changes by adding the following code to the manifest file:

docker::image { 'ubuntu':
  docker_file => '/tmp/Dockerfile'
  subscribe => File['/tmp/Dockerfile'],
}
file { '/tmp/Dockerfile':
  ensure => file,
  source => 'puppet:///modules/someModule/Dockerfile',
}
answered Aug 13, 2019 by Sirajul
• 59,230 points

Related Questions In Puppet

0 votes
1 answer

Is it possible to install puppet agent in a docker container on linux?

Hey @Janice, this is pretty simple. Create ...READ MORE

answered Mar 12, 2019 in Puppet by Jason
1,516 views
0 votes
1 answer

What's the need to integrate docker with puppet?

There are 3 core use cases for integrating docker with Puppet or with ...READ MORE

answered Aug 13, 2019 in Puppet by Sirajul
• 59,230 points
1,046 views
0 votes
0 answers

Puppet+Docker: pull an image and launch a container

I am experimenting on integrating a containerization ...READ MORE

Aug 13, 2019 in Puppet by Sam
• 6,260 points
2,087 views
0 votes
1 answer

Docker with Puppet: DNS allocation to the Docker Daemon

Hey @Dipika, to allocate a dns server ...READ MORE

answered Aug 16, 2019 in Puppet by Sirajul
• 59,230 points
555 views
0 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,714 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP