change eveything to sentinel for niko
This commit is contained in:
parent
d41e54fb9f
commit
417f78803c
11 changed files with 19 additions and 21 deletions
|
@ -1,4 +1,4 @@
|
|||
# Ignore everything
|
||||
**
|
||||
# Allow files and directories
|
||||
!/bin/watcher
|
||||
!/bin/sentinel
|
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,3 +1,3 @@
|
|||
/bin/watcher
|
||||
/bin/sentinel
|
||||
/.env
|
||||
/bin/watcher.txt
|
||||
/bin/sentinel.txt
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
# chain-watcher
|
||||
# sentinel
|
||||
Watcher of the Blockchain
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
version: "3"
|
||||
services:
|
||||
watcher:
|
||||
image: lbry/watcher:master
|
||||
entrypoint: ./watcher -d
|
||||
sentinel:
|
||||
image: lbry/sentinel:master
|
||||
entrypoint: ./sentinel -d
|
||||
|
|
|
@ -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
|
||||
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
|
||||
|
||||
|
|
2
main.go
2
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()
|
||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue