-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reachability check loop to expose reachability failures in node l…
…ogs (#556)
- Loading branch information
Showing
5 changed files
with
145 additions
and
7 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,7 +1,26 @@ | ||
clean: | ||
rm -rf ./bin | ||
GITCOMMIT := $(shell git rev-parse --short HEAD) | ||
GITDATE := $(shell git log -1 --format=%cd --date=unix) | ||
|
||
# GitVersion provides the semantic versioning for the project. | ||
SEMVER := $(shell docker run --rm --volume "${PWD}/../:/repo" gittools/gitversion:5.12.0 /repo -output json -showvariable SemVer) | ||
ifeq ($(SEMVER), ) | ||
SEMVER = "0.0.0" # Fallback if docker is not installed or gitversion fails | ||
endif | ||
|
||
build: clean | ||
# cd .. && make protoc | ||
go mod tidy | ||
go build -o ./bin/node ./cmd | ||
|
||
clean: | ||
rm -rf ./bin | ||
|
||
docker: docker-node docker-plugin | ||
|
||
docker-node: | ||
cd ../ && docker build --build-arg SEMVER=${SEMVER} --build-arg GITCOMMIT=${GITCOMMIT} --build-arg GITDATE=${GITDATE} . -t opr-node:${SEMVER} -t opr-node:latest -f node/cmd/Dockerfile | ||
|
||
docker-plugin: | ||
cd ../ && docker build --build-arg SEMVER=${SEMVER} --build-arg GITCOMMIT=${GITCOMMIT} --build-arg GITDATE=${GITDATE} . -t opr-nodeplugin:${SEMVER} -t opr-nodeplugin:latest -f node/plugin/cmd/Dockerfile | ||
|
||
semver: | ||
echo "${SEMVER}" |
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