Herald.go #47

Merged
jeffreypicard merged 5 commits from herald.go into master 2022-08-09 13:43:02 +02:00
3 changed files with 5 additions and 6 deletions
Showing only changes of commit a5f300d9f7 - Show all commits

View file

@ -4,7 +4,7 @@ EXPOSE 50051
RUN mkdir /app RUN mkdir /app
WORKDIR /app WORKDIR /app
COPY . /app COPY . /app
moodyjon commented 2022-08-04 22:07:07 +02:00 (Migrated from github.com)
Review

Should this be changed also? It looks like it would be building herald.go at line #7.

See also https://github.com/lbryio/herald.go/blob/master/docker/Dockerfile.action where there is some commented out reference to "/hub".

Should this be changed also? It looks like it would be building herald.go at line #7. See also https://github.com/lbryio/herald.go/blob/master/docker/Dockerfile.action where there is some commented out reference to "/hub".
jeffreypicard commented 2022-08-05 16:32:28 +02:00 (Migrated from github.com)
Review

Yup, good catch.

Yup, good catch.
RUN go build RUN go build -o herald .
FROM alpine:latest FROM alpine:latest
COPY --from=stage1 /app/hub /hub COPY --from=stage1 /app/herald /herald
ENTRYPOINT ["/herald.go", "serve"] ENTRYPOINT ["/herald", "serve"]

View file

@ -22,7 +22,7 @@ echo "using tag $LATEST_TAG"
git checkout "$LATEST_TAG" git checkout "$LATEST_TAG"
# CGO_ENABLED=0 go build -v -ldflags "-X ${IMPORT_PATH}/meta.Version=${VERSION}" # CGO_ENABLED=0 go build -v -ldflags "-X ${IMPORT_PATH}/meta.Version=${VERSION}"
go build -v -ldflags "-X ${IMPORT_PATH}/meta.Version=${VERSION}" go build -o herald -v -ldflags "-X ${IMPORT_PATH}/meta.Version=${VERSION}"
docker build . -t lbry/herald.go:latest docker build . -t lbry/herald.go:latest
docker tag lbry/herald.go:latest lbry/herald.go:"$LATEST_TAG" docker tag lbry/herald.go:latest lbry/herald.go:"$LATEST_TAG"
docker push lbry/herald.go:latest docker push lbry/herald.go:latest

View file

@ -1,6 +1,5 @@
#!/bin/bash #!/bin/bash
./protobuf/build.sh ./protobuf/build.sh
go version go version
go build . go build -o herald .
rm herald.go
go test -v -race -cover ./... go test -v -race -cover ./...