gonet2 / snowflake Goto Github PK
View Code? Open in Web Editor NEWsnowflake based on etcd
License: MIT License
snowflake based on etcd
License: MIT License
docker build -t snowflake .
Sending build context to Docker daemon 405.5 kB
Step 1 : FROM golang:1.5
---> c3d2a6307f4e
Step 2 : MAINTAINER xtaci [email protected]
---> Using cache
---> 714da1482b86
Step 3 : ENV GOBIN /go/bin
---> Using cache
---> c384540bc104
Step 4 : COPY . /go
---> Using cache
---> 44ee67a0397d
Step 5 : WORKDIR /go
---> Using cache
---> 771c0ede8348
Step 6 : ENV GOPATH /go:/go/.godeps
---> Using cache
---> 3ca6193b9d2c
Step 7 : RUN go install snowflake
---> Running in a66f056e84de
src/etcdclient/client.go:4:2: cannot find package "github.com/coreos/etcd/client" in any of:
/usr/local/go/src/github.com/coreos/etcd/client (from $GOROOT)
/go/src/github.com/coreos/etcd/client (from $GOPATH)
/go/.godeps/src/github.com/coreos/etcd/client
src/proto/snowflake.pb.go:16:8: cannot find package "github.com/golang/protobuf/proto" in any of:
/usr/local/go/src/github.com/golang/protobuf/proto (from $GOROOT)
/go/src/github.com/golang/protobuf/proto (from $GOPATH)
/go/.godeps/src/github.com/golang/protobuf/proto
src/etcdclient/client.go:5:2: cannot find package "github.com/gonet2/libs/nsq-logger" in any of:
/usr/local/go/src/github.com/gonet2/libs/nsq-logger (from $GOROOT)
/go/src/github.com/gonet2/libs/nsq-logger (from $GOPATH)
/go/.godeps/src/github.com/gonet2/libs/nsq-logger
src/snowflake/main.go:5:2: cannot find package "github.com/gonet2/libs/statsd-pprof" in any of:
/usr/local/go/src/github.com/gonet2/libs/statsd-pprof (from $GOROOT)
/go/src/github.com/gonet2/libs/statsd-pprof (from $GOPATH)
/go/.godeps/src/github.com/gonet2/libs/statsd-pprof
src/snowflake/service.go:9:2: cannot find package "golang.org/x/net/context" in any of:
/usr/local/go/src/golang.org/x/net/context (from $GOROOT)
/go/src/golang.org/x/net/context (from $GOPATH)
/go/.godeps/src/golang.org/x/net/context
src/snowflake/main.go:6:2: cannot find package "google.golang.org/grpc" in any of:
/usr/local/go/src/google.golang.org/grpc (from $GOROOT)
/go/src/google.golang.org/grpc (from $GOPATH)
/go/.godeps/src/google.golang.org/grpc
The command '/bin/sh -c go install snowflake' returned a non-zero code: 1
dockerfile是否需要添加安装依赖包的步骤?
自己实测时,同时调用800次Next接口,会出现大量的request timeout
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.