Provide a not-very-opinionated Makefile
with simple targets for building and running containers
Either clone this repo, or copy the Makefile to your project
make build
make build CONTAINER_FILE=path/to/containerfile
to use a different container filemake build CONTAINER_CONTEXT=path/to/context
to use a different container context
make run
make root
run as a privledged user (passes--user=root
)
Only docker compose is supported.
up
stop
clean
stops the containers, removes orphans and volumesveryclean
clean, and removes all imagesconsole
Automatically setting IMAGE_*
requires docker being present
COMPOSE_FILE
CONTAINER_CONTEXT
CONTAINER_ENGINE
CONTAINER_FILE
CONTAINER_IMAGE
CONTAINER_LIBRARY
CONTAINER_NAME
CONTAINER_REPO
CONTAINER_TAG
IMAGE_OSTYPE
IMAGE_ARCHITECTURE
IMAGE_PLATFORM