add a makefile for building a docker image
Opened this issue · 0 comments
jakoch commented
Add a makefile for building a docker image.
This should enable uses to build the container image manually.
- define vars for each software component
-A_VERSION ?= latest
- override version defines in the dockerfile,--build-arg A_VERSION=$(A_VERSION)
- define DOCKER_BUILDS_ARGS standalone, then use$(DOCKER_BUILD_ARGS)
fordocker build
DOCKER_BUILD_ARGS = --build-arg A_VERSION=$(A_VERSION) \ --build-arg B_VERSION=$(B_VERSION)
- build
- tag
- push
- clean
Usage maybe:
make build A_VERSION=1.0 B_VERSION=2.3 C_VERSION=4.5
make tag
make push
make clean