-
Notifications
You must be signed in to change notification settings - Fork 109
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
Issue while building docker image #30
Comments
@davidkarlsen Could you please have look into this. |
Hmm, it fails for me at:
Looks like docker-library/golang#148 |
Found it - there are tree PRs. |
Has anyone been able to build the latest source using Docker file provided in the repo? I am stuck at this:
|
I have tested docker file from https://github.com/davidkarlsen/logstash_exporter repository.It looks good. Able to build docker image. |
@davidkarlsen it worked after I change the golang version inside Dockerfile from 1.9 to 1.11 by looking at the comments on #31 :) |
Facing issue while building docker image.
package github.com/BonnierNews/logstash_exporter: directory "/go/src/github.com/BonnierNews/logstash_exporter" is not using a known version control system
T
Below are trace while building image.
Sending build context to Docker daemon 12.45MB
Step 1/8 : FROM golang:1.9 as golang
---> ef89ef5c42a9
Step 2/8 : ADD . $GOPATH/src/github.com/BonnierNews/logstash_exporter/
---> 97ace632cfe1
Step 3/8 : RUN curl -fsSL -o /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.3.2/dep-linux-amd64 && chmod +x /usr/local/bin/dep && go get -u github.com/BonnierNews/logstash_exporter && cd $GOPATH/src/github.com/BonnierNews/logstash_exporter && dep ensure && make
---> Running in 9b8597dd1c79
package github.com/BonnierNews/logstash_exporter: directory "/go/src/github.com/BonnierNews/logstash_exporter" is not using a known version control system
The command '/bin/sh -c curl -fsSL -o /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.3.2/dep-linux-amd64 && chmod +x /usr/local/bin/dep && go get -u github.com/BonnierNews/logstash_exporter && cd $GOPATH/src/github.com/BonnierNews/logstash_exporter && dep ensure && make' returned a non-zero code: 1
The text was updated successfully, but these errors were encountered: