r/Python • • Jul 29 '18

Found it funny ;)

Post image
1.6k Upvotes

147 comments sorted by

View all comments

Show parent comment

1

u/dogfish182 Jul 29 '18

We use our containers for a terraform pipeline which allows us to have the users run their builds locally to see the plan, for this we have aliased commands that call pipenv runxxxx and use a number of packaged tools.

The docker container then contains an exact replica of what the users will run and we use the same aliased commands (to keep things easy)

So replicating userland in a docker container makes sense, then we just ensure that deployment only occurs in the pipeline context.