diff --git a/.dockerignore b/.dockerignore index 84d69f0..a6fbf8e 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,4 @@ # Ignore everything ** # Allow files and directories -!/bin/watcher \ No newline at end of file +!/bin/sentinel \ No newline at end of file diff --git a/.gitignore b/.gitignore index 344f362..d4e5dc3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -/bin/watcher +/bin/sentinel /.env -/bin/watcher.txt +/bin/sentinel.txt diff --git a/.travis.yml b/.travis.yml index 3ac550a..b64b0fb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ os: linux dist: xenial language: go -go_import_path: github.com/lbryio/dispendium +go_import_path: github.com/lbryio/sentinel go: - 1.15 diff --git a/README.md b/README.md index b5dfebc..46683ab 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# chain-watcher +# sentinel Watcher of the Blockchain diff --git a/cmd/root.go b/cmd/root.go index 7deded8..cc494a4 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -4,11 +4,9 @@ import ( "fmt" "os" - "github.com/lbryio/chain-watcher/daemon" - - "github.com/lbryio/chain-watcher/pools" - - "github.com/lbryio/chain-watcher/env" + "github.com/lbryio/sentinel/daemon" + "github.com/lbryio/sentinel/env" + "github.com/lbryio/sentinel/pools" "github.com/sirupsen/logrus" "github.com/spf13/cobra" diff --git a/daemon/daemon.go b/daemon/daemon.go index 078e3b1..97ac1ff 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -7,7 +7,7 @@ import ( "github.com/lbryio/lbry.go/v2/extras/stop" - "github.com/lbryio/chain-watcher/pools" + "github.com/lbryio/sentinel/pools" ) var stopper = stop.New(nil) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 2dde7a8..d97c118 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -1,5 +1,5 @@ version: "3" services: - watcher: - image: lbry/watcher:master - entrypoint: ./watcher -d + sentinel: + image: lbry/sentinel:master + entrypoint: ./sentinel -d diff --git a/docker/docker.sh b/docker/docker.sh index 1b6ca97..c9bee2a 100755 --- a/docker/docker.sh +++ b/docker/docker.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -docker build --tag lbry/watcher:$TRAVIS_BRANCH ./ +docker build --tag lbry/sentinel:$TRAVIS_BRANCH ./ echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin -docker push lbry/watcher:$TRAVIS_BRANCH \ No newline at end of file +docker push lbry/sentinel:$TRAVIS_BRANCH \ No newline at end of file diff --git a/go.mod b/go.mod index f00d775..f161c7c 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/lbryio/chain-watcher +module github.com/lbryio/sentinel go 1.15 diff --git a/main.go b/main.go index fdce5b8..7884363 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,6 @@ package main -import "github.com/lbryio/chain-watcher/cmd" +import "github.com/lbryio/sentinel/cmd" func main() { cmd.Execute() diff --git a/scripts/build.sh b/scripts/build.sh index 627370b..9563951 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -18,14 +18,14 @@ set -e echo "== Compiling ==" -export IMPORTPATH="github.com/lbryio/chain-watcher" +export IMPORTPATH="github.com/lbryio/sentinel" mkdir -p "$DIR/bin" go generate -v export VERSIONSHORT="${TRAVIS_COMMIT:-"$(git describe --tags --always --dirty)"}" export VERSIONLONG="${TRAVIS_COMMIT:-"$(git describe --tags --always --dirty --long)"}" export COMMITMSG="$(echo ${TRAVIS_COMMIT_MESSAGE:-"$(git show -s --format=%s)"} | tr -d '"' | head -n 1)" -CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o "./bin/watcher" -asmflags -trimpath="$DIR" -ldflags "-X ${IMPORTPATH}/meta.version=${VERSIONSHORT} -X \"${IMPORTPATH}/meta.commitMsg=${COMMITMSG}\"" +CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o "./bin/sentinel" -asmflags -trimpath="$DIR" -ldflags "-X ${IMPORTPATH}/meta.version=${VERSIONSHORT} -X \"${IMPORTPATH}/meta.commitMsg=${COMMITMSG}\"" echo "$(git describe --tags --always --dirty)" > ./bin/watcher.txt -chmod +x ./bin/watcher +chmod +x ./bin/sentinel exit 0 \ No newline at end of file