-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from GLEIF-IT/enc/logging
adds more logging and format. updates makefile to multiarch builds
- Loading branch information
Showing
8 changed files
with
70 additions
and
43 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
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,12 +1,30 @@ | ||
.PHONY: build-sally | ||
build-sally: | ||
@docker buildx build --platform=linux/amd64 --no-cache -f containers/sally.dockerfile --tag gleif/sally:0.8.0 . | ||
@docker buildx build --platform=linux/arm64 --no-cache -f containers/sally-arm64.dockerfile --tag gleif/sally:0.8.0-arm64 . | ||
|
||
VERSION=0.9.0 | ||
|
||
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-sally: .warn | ||
@docker build --platform=linux/amd64,linux/arm64 --no-cache -f containers/sally.dockerfile -t gleif/sally:$(VERSION) . | ||
|
||
.PHONY: run-sally | ||
run-agent: | ||
@docker run -p 5921:5921 -p 5923:5923 --name agent gleif/sally:0.8.0 | ||
@docker run -p 5921:5921 -p 5923:5923 --name agent gleif/sally:$(VERSION) | ||
|
||
.PHONY: push-all | ||
push-all: | ||
@docker push gleif/sally --all-tags | ||
|
||
.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
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
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
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
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
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