microservices-demo / user

The users microservice.
http://microservices-demo.github.io/
Apache License 2.0
91 stars 617 forks source link

Can not build from scratch #49

Open steveww opened 7 years ago

steveww commented 7 years ago

Force complete rebuild

rm glide.lock docker-compose build

vendor/github.com/weaveworks/common/user/grpc.go:11: undefined: metadata.FromContext vendor/github.com/weaveworks/common/user/grpc.go:31: undefined: metadata.FromContext vendor/github.com/weaveworks/common/user/grpc.go:47: undefined: metadata.NewContext

Looks like a problem with your common library.

steveww commented 7 years ago

Even if not building from scratch the resulting image does not match the one on Docker Hub. It would be nice if they did all match. It would make it possible for me to contribute code.

mongrelion commented 7 years ago

Sorry to hear that you're having troubles with the build, @steveww

Just a couple of checks here:

  1. What's the latest commit that you have on your local repo?
  2. What version of Docker & Docker Compose are you running?

I just tried building it here and it went smoothly.

LucaRUnipi commented 2 years ago

I also have a build problem, using docker-compose build as well as simply build the Dockerfile inside the /docker/user folder I get this error while retrieving the dependencies:

[ERROR] Update failed for gopkg.in/gomail.v2: Unable to get repository: Cloning into '/root/.glide/cache/src/https-www.github.com-go-gomail-gomail.git'...
fatal: unable to access 'https://www.github.com:go-gomail/gomail.git/': Port number ended with 'g'
: exit status 128
[ERROR] Update failed for gopkg.in/mgo.v2: Unable to get repository: Cloning into '/root/.glide/cache/src/https-gopkg.in-mgo.v2'...
fatal: unable to access 'https://gopkg.in/mgo.v2/': SSL certificate problem: certificate has expired
: exit status 128
[ERROR] Update failed for gopkg.in/tomb.v2: Unable to get repository: Cloning into '/root/.glide/cache/src/https-gopkg.in-tomb.v2'...
fatal: unable to access 'https://gopkg.in/tomb.v2/': SSL certificate problem: certificate has expired
: exit status 128

I really don't know what to do, I've also tried to insert:

RUN apk add ca-certificates && rm -rf /var/cache/apk/*

inside the Dockerfile but with no success.

EDIT: @mongrelion edited formatting

mongrelion commented 2 years ago

I'm unassigning this issue from me since I haven't been working on this project for a few years now.