Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close #85 #112, Go mod round2 #121

Merged
merged 12 commits into from
Dec 4, 2018
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.*
*.md
test/
*.proto
deployment/
.github/
sharding-p2p-poc
.vscode/
cli-example/
docker/
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
language: go

go:
- "1.10.x"
- "1.11.x"

sudo: required

env:
- GO111MODULE=on

services:
- docker

install:
- docker build -f docker/prod.Dockerfile -t ethereum/sharding-p2p:latest .
- docker build -f docker/dev.Dockerfile -t ethereum/sharding-p2p:latest .
- docker run -d --name p2p ethereum/sharding-p2p:latest
- make deps

before_install:
- sudo add-apt-repository -y ppa:deadsnakes/ppa
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ deps: gx
gx-go rewrite
python3 ./script/partial-gx-uw.py .

update-go-mod:
GO111MODULE=on go mod download && go mod tidy

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can also remove the gx related commands in Makefile.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do those in #125 for better review experience.

build-prod:
docker build -f docker/prod.Dockerfile -t ethresearch/sharding-p2p:latest .

Expand Down
23 changes: 11 additions & 12 deletions docker/dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
FROM golang:1.10.3-alpine
WORKDIR /go/src/github.com/ethresearch/sharding-p2p-poc
RUN apk add git python3 make
RUN go get -u -v github.com/whyrusleeping/gx &&\
go get -u -v github.com/whyrusleeping/gx-go
FROM golang:1.11-alpine

COPY *.go ./
COPY pb ./pb
RUN apk add git

RUN go get -d -v .
WORKDIR /bin

COPY package.json .
RUN gx install
RUN go build
COPY go.mod go.sum /bin/

CMD ["./sharding-p2p-poc"]
RUN go mod download

COPY . /bin/

RUN CGO_ENABLED=0 go build

CMD ["/bin/sharding-p2p-poc"]
113 changes: 113 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
module github.com/ethresearch/sharding-p2p-poc

require (
github.com/btcsuite/btcd v0.0.0-20181130015935-7d2daa5bfef2 // indirect
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd // indirect
github.com/coreos/go-semver v0.2.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fd/go-nat v1.0.0 // indirect
github.com/go-check/check v0.0.0-20180628173108-788fd7840127 // indirect
github.com/gogo/protobuf v1.1.1 // indirect
github.com/golang/protobuf v1.2.0
github.com/google/uuid v1.1.0 // indirect
github.com/gorilla/websocket v1.4.0 // indirect
github.com/gxed/GoEndian v0.0.0-20160916112711-0f5c6873267e // indirect
github.com/gxed/eventfd v0.0.0-20160916113412-80a92cca79a8 // indirect
github.com/gxed/hashland v0.0.0-20180221191214-d9f6b97f8db2 // indirect
github.com/hashicorp/golang-lru v0.5.0 // indirect
github.com/huin/goupnp v1.0.0 // indirect
github.com/ipfs/go-cid v0.9.0 // indirect
github.com/ipfs/go-datastore v3.2.0+incompatible
github.com/ipfs/go-detect-race v1.0.1 // indirect
github.com/ipfs/go-ipfs-util v1.2.8 // indirect
github.com/ipfs/go-log v1.5.7
github.com/ipfs/go-todocounter v1.0.1 // indirect
github.com/jackpal/gateway v1.0.5 // indirect
github.com/jbenet/go-cienv v0.0.0-20150120210510-1bb1476777ec // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/jbenet/go-randbuf v0.0.0-20160322125720-674640a50e6a // indirect
github.com/jbenet/go-temp-err-catcher v0.0.0-20150120210811-aac704a3f4f2 // indirect
github.com/jbenet/goprocess v0.0.0-20160826012719-b497e2f366b8 // indirect
github.com/kr/pretty v0.1.0 // indirect
github.com/libp2p/go-addr-util v2.0.7+incompatible // indirect
github.com/libp2p/go-buffer-pool v0.1.1 // indirect
github.com/libp2p/go-conn-security v0.1.15 // indirect
github.com/libp2p/go-conn-security-multistream v0.1.15 // indirect
github.com/libp2p/go-flow-metrics v0.2.0 // indirect
github.com/libp2p/go-libp2p v6.0.23+incompatible
github.com/libp2p/go-libp2p-blankhost v0.3.15 // indirect
github.com/libp2p/go-libp2p-circuit v2.3.2+incompatible // indirect
github.com/libp2p/go-libp2p-crypto v2.0.1-0.20181130162722-b150863d61f7+incompatible
github.com/libp2p/go-libp2p-host v3.0.15+incompatible
github.com/libp2p/go-libp2p-interface-connmgr v0.0.21 // indirect
github.com/libp2p/go-libp2p-interface-pnet v3.0.0+incompatible // indirect
github.com/libp2p/go-libp2p-kad-dht v4.4.12+incompatible
github.com/libp2p/go-libp2p-kbucket v2.2.12+incompatible // indirect
github.com/libp2p/go-libp2p-loggables v1.1.24 // indirect
github.com/libp2p/go-libp2p-metrics v2.1.7+incompatible // indirect
github.com/libp2p/go-libp2p-nat v0.8.8 // indirect
github.com/libp2p/go-libp2p-net v3.0.15+incompatible
github.com/libp2p/go-libp2p-netutil v0.4.12 // indirect
github.com/libp2p/go-libp2p-peer v2.4.0+incompatible
github.com/libp2p/go-libp2p-peerstore v2.0.6+incompatible
github.com/libp2p/go-libp2p-protocol v1.0.0
github.com/libp2p/go-libp2p-pubsub v0.10.2
github.com/libp2p/go-libp2p-record v4.1.7+incompatible // indirect
github.com/libp2p/go-libp2p-routing v2.7.1+incompatible // indirect
github.com/libp2p/go-libp2p-secio v2.0.17+incompatible // indirect
github.com/libp2p/go-libp2p-swarm v3.0.22+incompatible // indirect
github.com/libp2p/go-libp2p-transport v3.0.15+incompatible // indirect
github.com/libp2p/go-libp2p-transport-upgrader v0.1.16 // indirect
github.com/libp2p/go-maddr-filter v1.1.10 // indirect
github.com/libp2p/go-mplex v0.2.30 // indirect
github.com/libp2p/go-msgio v0.0.6 // indirect
github.com/libp2p/go-reuseport v0.1.18 // indirect
github.com/libp2p/go-reuseport-transport v0.1.11 // indirect
github.com/libp2p/go-sockaddr v1.0.3 // indirect
github.com/libp2p/go-stream-muxer v3.0.1+incompatible // indirect
github.com/libp2p/go-tcp-transport v2.0.16+incompatible // indirect
github.com/libp2p/go-testutil v1.2.10 // indirect
github.com/libp2p/go-ws-transport v2.0.15+incompatible // indirect
github.com/mattn/go-colorable v0.0.9 // indirect
github.com/mattn/go-isatty v0.0.4 // indirect
github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1 // indirect
github.com/minio/sha256-simd v0.0.0-20181005183134-51976451ce19 // indirect
github.com/mr-tron/base58 v1.1.0
github.com/multiformats/go-multiaddr v1.3.0
github.com/multiformats/go-multiaddr-dns v0.2.5 // indirect
github.com/multiformats/go-multiaddr-net v1.6.3 // indirect
github.com/multiformats/go-multibase v0.3.0 // indirect
github.com/multiformats/go-multicodec v0.1.6
github.com/multiformats/go-multihash v1.0.8 // indirect
github.com/multiformats/go-multistream v0.3.9 // indirect
github.com/onsi/ginkgo v1.7.0 // indirect
github.com/onsi/gomega v1.4.3 // indirect
github.com/opentracing/opentracing-go v1.0.2
github.com/pkg/errors v0.8.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72 // indirect
github.com/stretchr/testify v1.2.2 // indirect
github.com/uber-go/atomic v1.3.2 // indirect
github.com/uber/jaeger-client-go v2.15.0+incompatible
github.com/uber/jaeger-lib v1.5.0 // indirect
github.com/whyrusleeping/base32 v0.0.0-20170828182744-c30ac30633cc // indirect
github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 // indirect
github.com/whyrusleeping/go-logging v0.0.0-20170515211332-0457bb6b88fc // indirect
github.com/whyrusleeping/go-notifier v0.0.0-20170827234753-097c5d47330f // indirect
github.com/whyrusleeping/go-smux-multiplex v3.0.16+incompatible // indirect
github.com/whyrusleeping/go-smux-multistream v2.0.2+incompatible // indirect
github.com/whyrusleeping/go-smux-yamux v2.0.8+incompatible // indirect
github.com/whyrusleeping/mafmt v1.2.8 // indirect
github.com/whyrusleeping/multiaddr-filter v0.0.0-20160516205228-e903e4adabd7 // indirect
github.com/whyrusleeping/timecache v0.0.0-20160911033111-cfcb2f1abfee // indirect
github.com/whyrusleeping/yamux v1.1.2 // indirect
go.uber.org/atomic v1.3.2 // indirect
golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9
golang.org/x/net v0.0.0-20181201002055-351d144fa1fc
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f // indirect
golang.org/x/sys v0.0.0-20181128092732-4ed8d59d0b35 // indirect
google.golang.org/genproto v0.0.0-20181202183823-bd91e49a0898 // indirect
google.golang.org/grpc v1.16.0
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gopkg.in/yaml.v2 v2.2.2 // indirect
)
Loading