Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a makefile for building a docker image #17

Open
5 tasks
jakoch opened this issue Feb 9, 2025 · 0 comments
Open
5 tasks

add a makefile for building a docker image #17

jakoch opened this issue Feb 9, 2025 · 0 comments

Comments

@jakoch
Copy link
Owner

jakoch commented Feb 9, 2025

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) for docker 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant