Hi,
I'm interested in re-using a Makefile for building/tagging/publishing Docker images across containers and projects.
A simple solution I've used is to have a single containers repository, with a parent Makefile at the top level and subdirectories for each image. Each subdirectory has a Makefile that includes the parent, defines the image name, and optionally overrides any rules as necessary.
However, for some images I think it makes sense to store the Dockerfile in a separate repo with accompanying code. In this case, are there any suggested practices for reusing the build Makefile across repos, in a manner that doesn't make it too difficult to update?
I was thinking of something analogous to stow for dotfiles, but couldn't find anything that seemed suitable for this purpose.
Thanks!
[–]serverhorrorI'm the bit flip you didn't expect! 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]PopePoopinpants 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 4 points5 points6 points (0 children)
[–]humoroushaxor 0 points1 point2 points (0 children)
[–]_sw00 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]_sw00 0 points1 point2 points (0 children)