-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add dockerfile #9
Add dockerfile #9
Conversation
Makefile
Outdated
@@ -0,0 +1,9 @@ | |||
dependencies: | |||
go get github.com/digitalocean/godo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go get -v ./cmd/digitalocean_exporter
?
Dockerfile
Outdated
RUN apk add -U ca-certificates | ||
|
||
COPY . . | ||
RUN apk add --no-cache git make; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go get -v ./cmd/digitalocean_exporter
I believe that this should also compile and install in path,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it does. And it allows us to not use Makefile. I'll update the PR.
Strange that Travis is failing here but not in general. Their docs state |
0ab330c
to
75d0c07
Compare
@andrewsomething It's green now. |
👍 Great! Thanks again. |
This PR makes possible to use exporter as Docker container.