Skip to content

Tooling for writing branching Dockerfiles and managing the build process

Notifications You must be signed in to change notification settings

rearc-data/docker-printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

17c683b · Nov 7, 2023

History

37 Commits
Nov 7, 2023
Nov 7, 2023
Nov 7, 2023
Nov 7, 2023
Nov 7, 2023
Aug 31, 2022
Apr 6, 2023
Apr 6, 2023
Sep 12, 2022
Nov 7, 2023
Nov 7, 2023
Nov 7, 2023

Repository files navigation

Documentation Status PyPI

Docker-Printer

docker-printer is a CLI for easily managing multistep and branching dockerfiles.

Regular multi-stage dockerfiles and docker build commands are incredibly powerful and useful; however, they are designed for building a single image. Multistage builds can be used to define multiple related images, but this quickly results in complicated dockerfiles, possibly duplicated instructions, and complicated collections of build commands.

docker-printer addresses this in two main ways:

  • By allowing dockerfiles to be composed from re-usable modules.
  • By building bake files for use by docker buildx bake that consolidate the build processes of multiple images in multiple environments into a single configuration file.

Getting Started and Documentation

pip install docker-printer
docker-printer init

See the documentation for how to get started.

There are also example docker constructs provided in the /examples folder.