Hi,
Thanks for the reply.

I can use the existing node-exporter image as the base image for my 
dockerfile. But where will I copy my additional collectors code? Because 
only the NE binary will be there in the image and so I need to provide 
those collectors file to the NE source code.
Can you please elaborate a bit?

I can also use multi stage to just copy the binary and use it in my second 
layer, but how would I give the collectors file to the NE?

Thanks

On Thursday, 12 March 2020 14:17:27 UTC+5:30, Brian Candler wrote:
>
> You can build your own docker image with a Dockerfile that uses the 
> existing node_exporter image as a base, and just add the extra files you 
> want.  That sounds like what you want.
>
> You can also build an image from scratch which extracts specific files 
> from another docker image (e.g. just the node_exporter binary).  This 
> feature is called multi-stage build 
> <https://docs.docker.com/develop/develop-images/multistage-build/>.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/930c76af-9dc9-47e7-8eff-90112b36f452%40googlegroups.com.

Reply via email to