{"action":"created","issue":{"url":"https://api.github.com/repos/iotexproject/iotex-core/issues/5","repository_url":"https://api.github.com/repos/iotexproject/iotex-core","labels_url":"https://api.github.com/repos/iotexproject/iotex-core/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/iotexproject/iotex-core/issues/5/comments","events_url":"https://api.github.com/repos/iotexproject/iotex-core/issues/5/events","html_url":"https://github.com/iotexproject/iotex-core/issues/5","id":328963014,"node_id":"MDU6SXNzdWUzMjg5NjMwMTQ=","number":5,"title":"Docker build fails","user":{"login":"jerkyrs","id":10046115,"node_id":"MDQ6VXNlcjEwMDQ2MTE1","avatar_url":"https://avatars1.githubusercontent.com/u/10046115?v=4","gravatar_id":"","url":"https://api.github.com/users/jerkyrs","html_url":"https://github.com/jerkyrs","followers_url":"https://api.github.com/users/jerkyrs/followers","following_url":"https://api.github.com/users/jerkyrs/following{/other_user}","gists_url":"https://api.github.com/users/jerkyrs/gists{/gist_id}","starred_url":"https://api.github.com/users/jerkyrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerkyrs/subscriptions","organizations_url":"https://api.github.com/users/jerkyrs/orgs","repos_url":"https://api.github.com/users/jerkyrs/repos","events_url":"https://api.github.com/users/jerkyrs/events{/privacy}","received_events_url":"https://api.github.com/users/jerkyrs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"zjshen14","id":35021395,"node_id":"MDQ6VXNlcjM1MDIxMzk1","avatar_url":"https://avatars3.githubusercontent.com/u/35021395?v=4","gravatar_id":"","url":"https://api.github.com/users/zjshen14","html_url":"https://github.com/zjshen14","followers_url":"https://api.github.com/users/zjshen14/followers","following_url":"https://api.github.com/users/zjshen14/following{/other_user}","gists_url":"https://api.github.com/users/zjshen14/gists{/gist_id}","starred_url":"https://api.github.com/users/zjshen14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zjshen14/subscriptions","organizations_url":"https://api.github.com/users/zjshen14/orgs","repos_url":"https://api.github.com/users/zjshen14/repos","events_url":"https://api.github.com/users/zjshen14/events{/privacy}","received_events_url":"https://api.github.com/users/zjshen14/received_events","type":"User","site_admin":false},"assignees":[{"login":"zjshen14","id":35021395,"node_id":"MDQ6VXNlcjM1MDIxMzk1","avatar_url":"https://avatars3.githubusercontent.com/u/35021395?v=4","gravatar_id":"","url":"https://api.github.com/users/zjshen14","html_url":"https://github.com/zjshen14","followers_url":"https://api.github.com/users/zjshen14/followers","following_url":"https://api.github.com/users/zjshen14/following{/other_user}","gists_url":"https://api.github.com/users/zjshen14/gists{/gist_id}","starred_url":"https://api.github.com/users/zjshen14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zjshen14/subscriptions","organizations_url":"https://api.github.com/users/zjshen14/orgs","repos_url":"https://api.github.com/users/zjshen14/repos","events_url":"https://api.github.com/users/zjshen14/events{/privacy}","received_events_url":"https://api.github.com/users/zjshen14/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-06-04T08:49:54Z","updated_at":"2018-06-04T15:52:26Z","closed_at":null,"author_association":"NONE","body":"What I did\r\n1) Pull out iotex-core\r\n2) Run \"docker -f Dockerfile .\"\r\n\r\nWhat i saw\r\n```\r\ngo clean\r\nrm -f ./bin/server\r\nrm -f ./bin/txinjector\r\nrm -f chain.db\r\nrm -f block.dat\r\ngo build -o ./bin/server -v ./server\r\ndb/db.go:14:2: cannot find package \"github.com/boltdb/bolt\" in any of:\r\n        /usr/local/go/src/github.com/boltdb/bolt (from $GOROOT)\r\n        /go/src/github.com/boltdb/bolt (from $GOPATH)\r\nserver/main.go:19:2: cannot find package \"github.com/golang/protobuf/proto\" in any of:\r\n        /usr/local/go/src/github.com/golang/protobuf/proto (from $GOROOT)\r\n        /go/src/github.com/golang/protobuf/proto (from $GOPATH)\r\ndb/db.go:12:2: cannot find package \"github.com/pkg/errors\" in any of:\r\n        /usr/local/go/src/github.com/pkg/errors (from $GOROOT)\r\n        /go/src/github.com/pkg/errors (from $GOPATH)\r\nlogger/logger.go:15:2: cannot find package \"github.com/rs/zerolog\" in any of:\r\n        /usr/local/go/src/github.com/rs/zerolog (from $GOROOT)\r\n        /go/src/github.com/rs/zerolog (from $GOPATH)\r\ncrypto/cryptosort.go:13:2: cannot find package \"golang.org/x/crypto/blake2b\" in any of:\r\n        /usr/local/go/src/golang.org/x/crypto/blake2b (from $GOROOT)\r\n        /go/src/golang.org/x/crypto/blake2b (from $GOPATH)\r\nproto/rpc.pb.go:11:2: cannot find package \"golang.org/x/net/context\" in any of:\r\n        /usr/local/go/src/golang.org/x/net/context (from $GOROOT)\r\n        /go/src/golang.org/x/net/context (from $GOPATH)\r\nproto/rpc.pb.go:12:2: cannot find package \"google.golang.org/grpc\" in any of:\r\n        /usr/local/go/src/google.golang.org/grpc (from $GOROOT)\r\n        /go/src/google.golang.org/grpc (from $GOPATH)\r\nnetwork/utils.go:17:2: cannot find package \"google.golang.org/grpc/credentials\" in any of:\r\n        /usr/local/go/src/google.golang.org/grpc/credentials (from $GOROOT)\r\n        /go/src/google.golang.org/grpc/credentials (from $GOPATH)\r\nconfig/config.go:15:2: cannot find package \"google.golang.org/grpc/keepalive\" in any of:\r\n        /usr/local/go/src/google.golang.org/grpc/keepalive (from $GOROOT)\r\n        /go/src/google.golang.org/grpc/keepalive (from $GOPATH)\r\nnetwork/rpcserver.go:17:2: cannot find package \"google.golang.org/grpc/peer\" in any of:\r\n        /usr/local/go/src/google.golang.org/grpc/peer (from $GOROOT)\r\n        /go/src/google.golang.org/grpc/peer (from $GOPATH)\r\nrpcservice/rpcservice.go:17:2: cannot find package \"google.golang.org/grpc/reflection\" in any of:\r\n        /usr/local/go/src/google.golang.org/grpc/reflection (from $GOROOT)\r\n        /go/src/google.golang.org/grpc/reflection (from $GOPATH)\r\nconfig/config.go:16:2: cannot find package \"gopkg.in/yaml.v2\" in any of:\r\n        /usr/local/go/src/gopkg.in/yaml.v2 (from $GOROOT)\r\n        /go/src/gopkg.in/yaml.v2 (from $GOPATH)\r\nmake: *** [build] Error 1\r\nMakefile:25: recipe for target 'build' failed\r\n```\r\n\r\nWhat I expected to see\r\nA clean build of the iotex-core\r\n"},"comment":{"url":"https://api.github.com/repos/iotexproject/iotex-core/issues/comments/394405218","html_url":"https://github.com/iotexproject/iotex-core/issues/5#issuecomment-394405218","issue_url":"https://api.github.com/repos/iotexproject/iotex-core/issues/5","id":394405218,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDQwNTIxOA==","user":{"login":"jerkyrs","id":10046115,"node_id":"MDQ6VXNlcjEwMDQ2MTE1","avatar_url":"https://avatars1.githubusercontent.com/u/10046115?v=4","gravatar_id":"","url":"https://api.github.com/users/jerkyrs","html_url":"https://github.com/jerkyrs","followers_url":"https://api.github.com/users/jerkyrs/followers","following_url":"https://api.github.com/users/jerkyrs/following{/other_user}","gists_url":"https://api.github.com/users/jerkyrs/gists{/gist_id}","starred_url":"https://api.github.com/users/jerkyrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerkyrs/subscriptions","organizations_url":"https://api.github.com/users/jerkyrs/orgs","repos_url":"https://api.github.com/users/jerkyrs/repos","events_url":"https://api.github.com/users/jerkyrs/events{/privacy}","received_events_url":"https://api.github.com/users/jerkyrs/received_events","type":"User","site_admin":false},"created_at":"2018-06-04T15:52:25Z","updated_at":"2018-06-04T15:52:25Z","author_association":"NONE","body":"@zjshen14 ok this works but i don't like it.. You should not have to install something into your working directory before you run a Dockerfile, Dockerfile assumes you are running on a stateless server without anything more then Docker itself available.\r\n\r\nI dont know if this is feasible because i never tested it but why not use glide inside container, i realize this comes with overhead have having to fetch each time but you can not rely on what is *currently* installed in the users working directory to facilitate a clean build.\r\n\r\n```\r\nRUN curl https://glide.sh/get | sh\r\n```"}}
{"actor":{"display_login":"jerkyrs"}}