health-dashboard icon indicating copy to clipboard operation
health-dashboard copied to clipboard

Docker-Compose Up Fails... Cannot find package "gopkg.in/mgo.v2/bson

Open markwk opened this issue 6 years ago • 0 comments

I wanted to about setting this up again with docker either on a Mac or on a Linux machine in the cloud. Running docker-compose up gave me this error:

Step 4/23 : RUN CGO_ENABLED=0 GOOS=linux go build -ldflags '-s' -a -installsuffix cgo -v -o server
 ---> Running in d3a0bee29955
utils/utils.go:9:2: cannot find package "gopkg.in/mgo.v2" in any of:
	/go/src/github.com/MaximeHeckel/health-dashboard/go/src/server/vendor/gopkg.in/mgo.v2 (vendor tree)
	/usr/local/go/src/gopkg.in/mgo.v2 (from $GOROOT)
	/go/src/gopkg.in/mgo.v2 (from $GOPATH)
apihandlers/apihandlers.go:14:2: cannot find package "gopkg.in/mgo.v2/bson" in any of:
	/go/src/github.com/MaximeHeckel/health-dashboard/go/src/server/vendor/gopkg.in/mgo.v2/bson (vendor tree)
	/usr/local/go/src/gopkg.in/mgo.v2/bson (from $GOROOT)
	/go/src/gopkg.in/mgo.v2/bson (from $GOPATH)

Feels like some cleanup and updating needed in the compose or docker file?

markwk avatar Feb 14 '18 06:02 markwk