-
Notifications
You must be signed in to change notification settings - Fork 9
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
Adapt Dockerfile for arguments + multi-stage build #2
base: master
Are you sure you want to change the base?
Conversation
Hello, I saw on your issue prometheus/snmp_exporter#120 that you created this Dockerfile. I modified it so it's lighter (using multi-stage builds), but also configurable like @brian-brazil advised it. In addition I used the idea from prometheus/snmp_exporter#223 to statically compile it. I hope it'll help and maybe integrate it later to the original repo!
Hey @jstoja, could you please update the readme too? Thanks |
With pleasure, what do you want me to modify? |
The docker image is working, though the paths are different, I tested a build using the paths in README and this is the result:
As you see the paths are different, this is why I asked you to update the README to reflect your changes :). |
Hello @ninoabbate sorry for the delay. I indeed need to fix the README file, but the error you're having doesn't come from that.
From there, 2 solutions:
Tell me which solution you prefer so I can push it + the README modification. |
Hi @jstoja no worries, thanks!
We can include the package |
Hello,
I saw on your issue prometheus/snmp_exporter#120 that you created this Dockerfile.
I modified it so it's lighter (using multi-stage builds), but also configurable like @brian-brazil advised it.
In addition I used the idea from prometheus/snmp_exporter#223 to statically compile it.
I hope it'll help and maybe integrate it later to the original repo!