mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-12 06:24:10 +01:00
build: add DOCKER_BUILD_OPTIONS variable to arguments to docker build
Notably, we can do: ``` make docker DOCKER_BUILD_OPTIONS=--platform=linux/amd64/v3 ```
This commit is contained in:
7
Makefile
7
Makefile
@@ -255,10 +255,13 @@ version:
|
|||||||
@echo $(VERSION)
|
@echo $(VERSION)
|
||||||
|
|
||||||
.PHONY: docker docker-dev
|
.PHONY: docker docker-dev
|
||||||
|
DOCKER_BUILD_OPTIONS =
|
||||||
docker: ; $(info $(M) build Docker image…) @ ## Build Docker image
|
docker: ; $(info $(M) build Docker image…) @ ## Build Docker image
|
||||||
$Q docker build -f docker/Dockerfile --build-arg VERSION=$(VERSION) -t ghcr.io/akvorado/akvorado:main .
|
$Q docker build -f docker/Dockerfile $(DOCKER_BUILD_OPTIONS) \
|
||||||
|
--build-arg VERSION=$(VERSION) -t ghcr.io/akvorado/akvorado:main .
|
||||||
docker-dev: all ; $(info $(M) build development Docker image…) @ ## Build development Docker image
|
docker-dev: all ; $(info $(M) build development Docker image…) @ ## Build development Docker image
|
||||||
$Q docker build -f docker/Dockerfile.dev --build-arg VERSION=$(VERSION) -t ghcr.io/akvorado/akvorado:main .
|
$Q docker build -f docker/Dockerfile.dev $(DOCKER_BUILD_OPTIONS) \
|
||||||
|
--build-arg VERSION=$(VERSION) -t ghcr.io/akvorado/akvorado:main .
|
||||||
|
|
||||||
# This requires "skopeo". I fetch it from nix.
|
# This requires "skopeo". I fetch it from nix.
|
||||||
.PHONY: docker-upgrade-versions
|
.PHONY: docker-upgrade-versions
|
||||||
|
|||||||
Reference in New Issue
Block a user