rubenf
rubenf7mo ago

you're missing a library, need to use init script or modify the image

you're missing a library, need to use init script or modify the image. you can @Ask Inkeep about it
2 Replies
Ask Inkeep
Ask Inkeep7mo ago
Thanks for tagging me @rubenf. I'll look through relevant sources and get back to you shortly. Please tag @Ask Inkeep for any follow-ups. ----------------------------- While I generate an answer, here are some sources that might be helpful: * Preinstall Binaries * PDF * Workers and Worker Groups * HTML -----------------------------
Ask Inkeep
Ask Inkeep7mo ago
Answer To include a missing library in Windmill, you have two main options: using an init script or modifying the Docker image. 1. Init Script: Init scripts offer a convenient way to pre-install binaries or set initial configurations without modifying the base image. They are executed at the beginning when the worker starts, ensuring any necessary binaries or configurations are set up before any job is undertaken. Init scripts can be set from the Worker Management UI at the worker group level (1) . 2. Modify the Docker Image: You can extend the base image of Windmill to include additional binaries. Here’s an example Dockerfile to get you started:
FROM ghcr.io/windmill-labs/windmill:main
RUN apt-get update && apt install [your-library-here]
CMD ["windmill"]
FROM ghcr.io/windmill-labs/windmill:main
RUN apt-get update && apt install [your-library-here]
CMD ["windmill"]
Remember to replace [your-library-here] with the actual library or tool you need to install. Choose the method that best fits your needs. Init scripts are generally easier and more convenient for adding libraries without the need for a custom Docker image.