Makefile shorthands to build Docker images
This commit is contained in:
parent
7448fb6412
commit
b9668b08e8
1 changed files with 17 additions and 2 deletions
19
Makefile
19
Makefile
|
|
@ -108,11 +108,26 @@ create-target-docker:
|
|||
@PHONY: docker-build
|
||||
docker-build: create-target-docker
|
||||
docker build \
|
||||
-f target/docker/Dockerfile \
|
||||
-t ikatson/rqbit:$(shell git describe --tags) \
|
||||
-f docker/Dockerfile \
|
||||
-t ikatson/rqbit:$(shell git describe --tags)-dev \
|
||||
--platform linux/amd64,linux/arm64,linux/arm/v7 \
|
||||
target/docker/
|
||||
|
||||
@PHONY: docker-build-xx-one-platform
|
||||
docker-build-xx-one-platform:
|
||||
docker build -f docker/Dockerfile.xx \
|
||||
--platform $(PLATFORM) \
|
||||
--output type=local,dest=target/cross/$(PLATFORM) . && \
|
||||
docker build \
|
||||
-t ikatson/rqbit:$(shell git describe --tags)-dev-$(shell echo $(PLATFORM) | tr '/' '-') \
|
||||
--platform $(PLATFORM) \
|
||||
-f docker/Dockerfile \
|
||||
target/cross/
|
||||
|
||||
@PHONY: docker-build-xx-amd64
|
||||
docker-build-xx-amd64:
|
||||
PLATFORM=linux/amd64 $(MAKE) docker-build-xx-one-platform
|
||||
|
||||
@PHONY: release-linux-aarch64
|
||||
release-linux-aarch64:
|
||||
TARGET=aarch64-unknown-linux-musl \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue