Skip to content
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

Merged
merged 3 commits into from
Jul 13, 2017
Merged

Conversation

tmaczukin
Copy link
Contributor

This PR makes possible to use exporter as Docker container.

Makefile Outdated
@@ -0,0 +1,9 @@
dependencies:
go get github.com/digitalocean/godo
Copy link

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; \
Copy link

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,

Copy link
Contributor Author

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.

@andrewsomething
Copy link
Owner

Strange that Travis is failing here but not in general. Their docs state go get -t ./... should be run... Either way, I set it up to explicitly install the dependencies. Re-basing on master should make this green.

@tmaczukin
Copy link
Contributor Author

@andrewsomething It's green now.

@andrewsomething
Copy link
Owner

👍 Great! Thanks again.

@andrewsomething andrewsomething merged commit f261c3b into andrewsomething:master Jul 13, 2017
@tmaczukin tmaczukin deleted the add-dockerfile branch July 13, 2017 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants