evolve_cfengine_freelib icon indicating copy to clipboard operation
evolve_cfengine_freelib copied to clipboard

Add docker management bundle

Open neilhwatson opened this issue 7 years ago • 2 comments

Requirements:

  1. Promise Dockerfile and supporting files from cf-serverd.
  2. If above promise is repaired then 'force' both image build and container restart. Use --restart=unless-stopped for run and --rm=true for images.
  3. If promise 1 is kept then ensure defined image is present and container is running.

How to do the last promise the least invasive way given CFEngine has not docker aware parts? Commands must be used.

Data required:

  1. File src on cf-serverd.
  2. File destination on agent host.
  3. Image and container name.
  4. Image tag (maybe)
  5. Docker capabilities.
  6. Volumes (nice to have)

Possible checks:

  1. docker images -q pcf_dns:latest
  2. docker ps -q --filter=name=pcf_dns

neilhwatson avatar Nov 03 '16 00:11 neilhwatson

Separate building, from image management, from running (lifecycle management).

Look at integrating with 1.12 Swarm.

tzz avatar Nov 05 '16 00:11 tzz

See #27 For building images.

neilhwatson avatar Nov 15 '16 15:11 neilhwatson