evolve_cfengine_freelib
evolve_cfengine_freelib copied to clipboard
Add docker management bundle
Requirements:
- Promise Dockerfile and supporting files from cf-serverd.
- If above promise is repaired then 'force' both image build and container restart. Use --restart=unless-stopped for run and --rm=true for images.
- 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:
- File src on cf-serverd.
- File destination on agent host.
- Image and container name.
- Image tag (maybe)
- Docker capabilities.
- Volumes (nice to have)
Possible checks:
- docker images -q pcf_dns:latest
- docker ps -q --filter=name=pcf_dns
Separate building, from image management, from running (lifecycle management).
Look at integrating with 1.12 Swarm.
See #27 For building images.