change eveything to sentinel for niko
This commit is contained in:
parent
d41e54fb9f
commit
417f78803c
|
@ -1,4 +1,4 @@
|
||||||
# Ignore everything
|
# Ignore everything
|
||||||
**
|
**
|
||||||
# Allow files and directories
|
# Allow files and directories
|
||||||
!/bin/watcher
|
!/bin/sentinel
|
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,3 +1,3 @@
|
||||||
/bin/watcher
|
/bin/sentinel
|
||||||
/.env
|
/.env
|
||||||
/bin/watcher.txt
|
/bin/sentinel.txt
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
os: linux
|
os: linux
|
||||||
dist: xenial
|
dist: xenial
|
||||||
language: go
|
language: go
|
||||||
go_import_path: github.com/lbryio/dispendium
|
go_import_path: github.com/lbryio/sentinel
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.15
|
- 1.15
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
# chain-watcher
|
# sentinel
|
||||||
Watcher of the Blockchain
|
Watcher of the Blockchain
|
||||||
|
|
|
@ -4,11 +4,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/lbryio/chain-watcher/daemon"
|
"github.com/lbryio/sentinel/daemon"
|
||||||
|
"github.com/lbryio/sentinel/env"
|
||||||
"github.com/lbryio/chain-watcher/pools"
|
"github.com/lbryio/sentinel/pools"
|
||||||
|
|
||||||
"github.com/lbryio/chain-watcher/env"
|
|
||||||
|
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
|
|
||||||
"github.com/lbryio/lbry.go/v2/extras/stop"
|
"github.com/lbryio/lbry.go/v2/extras/stop"
|
||||||
|
|
||||||
"github.com/lbryio/chain-watcher/pools"
|
"github.com/lbryio/sentinel/pools"
|
||||||
)
|
)
|
||||||
|
|
||||||
var stopper = stop.New(nil)
|
var stopper = stop.New(nil)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
watcher:
|
sentinel:
|
||||||
image: lbry/watcher:master
|
image: lbry/sentinel:master
|
||||||
entrypoint: ./watcher -d
|
entrypoint: ./sentinel -d
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/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
|
echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
|
||||||
docker push lbry/watcher:$TRAVIS_BRANCH
|
docker push lbry/sentinel:$TRAVIS_BRANCH
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module github.com/lbryio/chain-watcher
|
module github.com/lbryio/sentinel
|
||||||
|
|
||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
|
|
2
main.go
2
main.go
|
@ -1,6 +1,6 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "github.com/lbryio/chain-watcher/cmd"
|
import "github.com/lbryio/sentinel/cmd"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
cmd.Execute()
|
cmd.Execute()
|
||||||
|
|
|
@ -18,14 +18,14 @@ set -e
|
||||||
|
|
||||||
|
|
||||||
echo "== Compiling =="
|
echo "== Compiling =="
|
||||||
export IMPORTPATH="github.com/lbryio/chain-watcher"
|
export IMPORTPATH="github.com/lbryio/sentinel"
|
||||||
mkdir -p "$DIR/bin"
|
mkdir -p "$DIR/bin"
|
||||||
go generate -v
|
go generate -v
|
||||||
export VERSIONSHORT="${TRAVIS_COMMIT:-"$(git describe --tags --always --dirty)"}"
|
export VERSIONSHORT="${TRAVIS_COMMIT:-"$(git describe --tags --always --dirty)"}"
|
||||||
export VERSIONLONG="${TRAVIS_COMMIT:-"$(git describe --tags --always --dirty --long)"}"
|
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)"
|
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
|
echo "$(git describe --tags --always --dirty)" > ./bin/watcher.txt
|
||||||
chmod +x ./bin/watcher
|
chmod +x ./bin/sentinel
|
||||||
exit 0
|
exit 0
|
Loading…
Reference in a new issue