sstarcher / docker-sensu

Dockerized Sensu - Client, Server, Api
MIT License
103 stars 72 forks source link

Handling sensu-install without build-essentials #44

Closed absolutejam closed 7 years ago

absolutejam commented 7 years ago

Hey again,

The image doesn't container build-essentials so I can't compile ruby gems (Eg. sensu-install -p mailer). How are you currently handling this?

I threw up a container that is based on your image and has build-essentials installed, then used this to generate the sensu files (handlers, plugins, etc.) & gems, but it's a bind to copy these over to the different folders on my sensu_server container.

I guess I could just build on top of your image and add build-essentials :man_shrugging:

Regards, James.

absolutejam commented 7 years ago

Hm, looks like I missed the RUNTIME_INSTALL env, which builds them before removing the build tools.

I guess the only other way is to use a builder container and ship the artifacts over to the server container via. a volume. I guess I could overwrite the /opt/sensu/embedded/bin directory with this volume as both containers would be of the same sensu version.

Anyway, thanks for the amazing set of containers - Sensu should really pick up on these!

sstarcher commented 7 years ago

If you use https://github.com/sstarcher/docker-sensu/blob/master/bin/install to do the installation it install build tools and than removes it.

sstarcher commented 7 years ago

I'm going to close it let me know if you have any questions.