-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: docker multi-arch builds for x86 and arm (#303)
- Loading branch information
Showing
2 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
.PHONY: build-keria | ||
build-keria: | ||
@docker buildx build --platform=linux/amd64 --no-cache -f images/keria.dockerfile --tag weboftrust/keria:0.2.0-dev3 . | ||
|
||
VERSION=0.2.0-dev3 | ||
|
||
define DOCKER_WARNING | ||
In order to use the multi-platform build enable the containerd image store | ||
The containerd image store is not enabled by default. | ||
To enable the feature for Docker Desktop: | ||
Navigate to Settings in Docker Desktop. | ||
In the General tab, check Use containerd for pulling and storing images. | ||
Select Apply and Restart." | ||
endef | ||
|
||
build-keria: .warn | ||
@docker build --platform=linux/amd64,linux/arm64 --no-cache -f images/keria.dockerfile -t weboftrust/keria:$(VERSION) . | ||
|
||
publish-keria: | ||
@docker push weboftrust/keria --all-tags | ||
@docker push weboftrust/keria:$(VERSION) | ||
|
||
.warn: | ||
@echo -e ${RED}"$$DOCKER_WARNING"${NO_COLOUR} | ||
|
||
RED="\033[0;31m" | ||
NO_COLOUR="\033[0m" | ||
export DOCKER_WARNING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters