Can not build from scratch
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.
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.
Sorry to hear that you're having troubles with the build, @steveww
Just a couple of checks here:
- What's the latest commit that you have on your local repo?
- What version of Docker & Docker Compose are you running?
I just tried building it here and it went smoothly.
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
I'm unassigning this issue from me since I haven't been working on this project for a few years now.