user icon indicating copy to clipboard operation
user copied to clipboard

Can not build from scratch

Open steveww opened this issue 8 years ago • 4 comments

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 avatar Aug 18 '17 12:08 steveww

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.

steveww avatar Aug 18 '17 14:08 steveww

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.

mongrelion avatar Sep 05 '17 15:09 mongrelion

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

LucaRUnipi avatar Apr 11 '22 14:04 LucaRUnipi

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

mongrelion avatar Jul 26 '22 07:07 mongrelion