tasks-playground icon indicating copy to clipboard operation
tasks-playground copied to clipboard

Bolt in docker example

Open andresgutgon opened this issue 6 years ago • 2 comments

Describe the Bug

Hi, I'm trying to follow docker-image example and I see when I clone bolt it already has a Dockerfile

Some questions

Some questions I have after trying this. Is this recipe expected to be used in a real project? The idea is to have bolt's source code as a git submodule? How we can maintain both Dockerfile without conflicts?

image

Expected Behavior

Don't have conflics

Anyway the idea looks super nice :)

andresgutgon avatar Aug 18 '19 12:08 andresgutgon

You can use -f path/to/Dockerfile to build a different dockerfile than the local one. So the instructions could change to: copy to Dockerfile.cli, then docker build -f Dockerfile.cli ....

My personal opinion would probably be to rename the Dockerfile in the bolt repository because it's the less common scenario (running a bolt server, @lucywyman). It's used primarily for testing.

MikaelSmith avatar Aug 19 '19 16:08 MikaelSmith

We should probably rename the Dockerfile in the bolt repo - I made https://github.com/puppetlabs/bolt/issues/1159. @andresgutgon if you're interested we now publish a docker container with Bolt in it from CI, so it has the newest version: https://hub.docker.com/r/puppet/puppet-bolt

lucywyman avatar Aug 19 '19 16:08 lucywyman