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

docker buld does not compile either #35

Open
linearregression opened this issue May 10, 2017 · 2 comments
Open

docker buld does not compile either #35

linearregression opened this issue May 10, 2017 · 2 comments

Comments

@linearregression
Copy link

docker build -t go-oauth2-server:latest .
Sending build context to Docker daemon 9.801 MB
Step 1/11 : FROM golang
---> ef15416724f6
Step 2/11 : MAINTAINER Richard Knop [email protected]
---> Running in deafd9a40cfd
---> 7bf6019d505e
Removing intermediate container deafd9a40cfd
Step 3/11 : ENV PATH /go/bin:$PATH
---> Running in 08a257c000af
---> fec0353b59bc
Removing intermediate container 08a257c000af
Step 4/11 : RUN useradd --user-group --shell /bin/false app
---> Running in 0b0bd3950e16
---> 1da4125eacda
Removing intermediate container 0b0bd3950e16
Step 5/11 : WORKDIR /go/src/github.com/RichardKnop/go-oauth2-server
---> 2e01ac964f67
Removing intermediate container a4f9b13faf71
Step 6/11 : ADD . /go/src/github.com/RichardKnop/go-oauth2-server
---> 8431492bbf64
Removing intermediate container 4d02fafae8fd
Step 7/11 : RUN chown -R app:app /go/src/github.com/RichardKnop/go-oauth2-server/
---> Running in fb9437b3f4ce
---> b289fbe03a91
Removing intermediate container fb9437b3f4ce
Step 8/11 : USER app
---> Running in 7616f58ec03e
---> f55c6eb1f370
Removing intermediate container 7616f58ec03e
Step 9/11 : RUN go install github.com/RichardKnop/go-oauth2-server
---> Running in ebb11a37a17e
cmd/load_data.go:4:2: cannot find package "github.com/RichardKnop/go-fixtures" in any of:
/usr/local/go/src/github.com/RichardKnop/go-fixtures (from $GOROOT)
/go/src/github.com/RichardKnop/go-fixtures (from $GOPATH)
util/response/list.go:4:2: cannot find package "github.com/RichardKnop/jsonhal" in any of:
/usr/local/go/src/github.com/RichardKnop/jsonhal (from $GOROOT)
/go/src/github.com/RichardKnop/jsonhal (from $GOPATH)
logger/logger.go:4:2: cannot find package "github.com/RichardKnop/logging" in any of:
/usr/local/go/src/github.com/RichardKnop/logging (from $GOROOT)
/go/src/github.com/RichardKnop/logging (from $GOPATH)
models/oauth.go:8:2: cannot find package "github.com/RichardKnop/uuid" in any of:
/usr/local/go/src/github.com/RichardKnop/uuid (from $GOROOT)
/go/src/github.com/RichardKnop/uuid (from $GOPATH)
config/etcd.go:10:2: cannot find package "github.com/coreos/etcd/clientv3" in any of:
/usr/local/go/src/github.com/coreos/etcd/clientv3 (from $GOROOT)
/go/src/github.com/coreos/etcd/clientv3 (from $GOPATH)
config/etcd.go:11:2: cannot find package "github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes" in any of:
/usr/local/go/src/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes (from $GOROOT)
/go/src/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes (from $GOPATH)
config/etcd.go:12:2: cannot find package "github.com/coreos/etcd/pkg/transport" in any of:
/usr/local/go/src/github.com/coreos/etcd/pkg/transport (from $GOROOT)
/go/src/github.com/coreos/etcd/pkg/transport (from $GOPATH)
web/context.go:9:2: cannot find package "github.com/gorilla/context" in any of:
/usr/local/go/src/github.com/gorilla/context (from $GOROOT)
/go/src/github.com/gorilla/context (from $GOPATH)
util/routes/routes.go:6:2: cannot find package "github.com/gorilla/mux" in any of:
/usr/local/go/src/github.com/gorilla/mux (from $GOROOT)
/go/src/github.com/gorilla/mux (from $GOPATH)
session/service.go:9:2: cannot find package "github.com/gorilla/sessions" in any of:
/usr/local/go/src/github.com/gorilla/sessions (from $GOROOT)
/go/src/github.com/gorilla/sessions (from $GOPATH)
config/consul.go:10:2: cannot find package "github.com/hashicorp/consul/api" in any of:
/usr/local/go/src/github.com/hashicorp/consul/api (from $GOROOT)
/go/src/github.com/hashicorp/consul/api (from $GOPATH)
database/database.go:7:2: cannot find package "github.com/jinzhu/gorm" in any of:
/usr/local/go/src/github.com/jinzhu/gorm (from $GOROOT)
/go/src/github.com/jinzhu/gorm (from $GOPATH)
database/database.go:10:2: cannot find package "github.com/lib/pq" in any of:
/usr/local/go/src/github.com/lib/pq (from $GOROOT)
/go/src/github.com/lib/pq (from $GOPATH)
web/render.go:9:2: cannot find package "github.com/oxtoacart/bpool" in any of:
/usr/local/go/src/github.com/oxtoacart/bpool (from $GOROOT)
/go/src/github.com/oxtoacart/bpool (from $GOPATH)
cmd/run_server.go:9:2: cannot find package "github.com/phyber/negroni-gzip/gzip" in any of:
/usr/local/go/src/github.com/phyber/negroni-gzip/gzip (from $GOROOT)
/go/src/github.com/phyber/negroni-gzip/gzip (from $GOPATH)
util/secure.go:4:2: cannot find package "github.com/unrolled/secure" in any of:
/usr/local/go/src/github.com/unrolled/secure (from $GOROOT)
/go/src/github.com/unrolled/secure (from $GOPATH)
go_oauth2_server.go:8:2: cannot find package "github.com/urfave/cli" in any of:
/usr/local/go/src/github.com/urfave/cli (from $GOROOT)
/go/src/github.com/urfave/cli (from $GOPATH)
util/response/logging.go:11:2: cannot find package "github.com/urfave/negroni" in any of:
/usr/local/go/src/github.com/urfave/negroni (from $GOROOT)
/go/src/github.com/urfave/negroni (from $GOPATH)
util/password/password.go:4:2: cannot find package "golang.org/x/crypto/bcrypt" in any of:
/usr/local/go/src/golang.org/x/crypto/bcrypt (from $GOROOT)
/go/src/golang.org/x/crypto/bcrypt (from $GOPATH)
config/etcd.go:13: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)
cmd/run_server.go:11:2: cannot find package "gopkg.in/tylerb/graceful.v1" in any of:
/usr/local/go/src/gopkg.in/tylerb/graceful.v1 (from $GOROOT)
/go/src/gopkg.in/tylerb/graceful.v1 (from $GOPATH)
The command '/bin/sh -c go install github.com/RichardKnop/go-oauth2-server' returned a non-zero code: 1

@RichardKnop
Copy link
Owner

Tested it right now and it works. Can you pull latest version and try again?

Also, you can pull from Docker Hub if you don't need to build locally: https://hub.docker.com/r/richardknop/go-oauth2-server/

@etsangsplk
Copy link

just tried on a clean machine and use master
same error
yes would like to start try on source code level
i am going to hold off for now and check for others

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants