forked from WebOfTrust/keripy
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 977 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.PHONY: build-keri
VERSION=1.2.0-rc1
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-keri: .warn
@docker build --platform=linux/amd64,linux/arm64 -f images/keripy.dockerfile -t weboftrust/keri:$(VERSION) .
.PHONY: build-witness-demo
build-witness-demo: .warn
@docker build --platform=linux/amd64,linux/arm64 -f images/witness.demo.dockerfile -t weboftrust/keri-witness-demo:1.1.10 .
.PHONY: publish-keri-witness-demo
publish-keri-witness-demo:
@docker push weboftrust/keri-witness-demo --all-tags
publish-keri:
@docker push weboftrust/keri:$(VERSION)
.warn:
@echo -e ${RED}"$$DOCKER_WARNING"${NO_COLOUR}
RED="\033[0;31m"
NO_COLOUR="\033[0m"
export DOCKER_WARNING