rubenf
rubenf2mo ago

how to use init scripts to preinstall jq

@Ask Inkeep how to use init scripts to preinstall jq
1 Reply
Ask Inkeep
Ask Inkeep2mo ago
Thanks for tagging me @rubenf. I'll look through relevant sources and get back to you shortly. Answer Init scripts provide a method to pre-install binaries or set initial configurations without the need to modify the base image (1) . They are executed at the beginning when the worker starts, ensuring that any necessary binaries or configurations are set up before the worker undertakes any other job . To preinstall jq using init scripts, you can use the following approach:
apt-get update && apt-get install -y jq
apt-get update && apt-get install -y jq
Init scripts are available only on self-hosting and enterprise edition on private clusters . Any scripts are set from the Worker Management UI, at the worker group level . Any script content specified in INIT_SCRIPT will be executed at the beginning when each worker of the worker group starts . When adjustments are made in the Worker Management UI, the workers will shut down and are expected to be restarted by their supervisor (Docker or k8s) . The execution of Init scripts is inspectable in the superadmin workspace, with Kind = All filter . The path of those executions are init_script_{worker_name} . For API-based management, you can also configure init scripts programmatically through Windmill's API by updating the worker group configuration with the desired init script content. ** ​ To learn more, see the sources I considered: [1] Preinstall binaries ​ Feel free to tag @Ask Inkeep with additional questions.

Did you find this page helpful?