Trying to install binaries using the INIT_SCRIPT is not working (apt-get or apk add?)
I am trying to use an init script that install poppler. I add the following to the windmill_worker under the environment section: INIT_SCRIPT="apk update && apk add --no-cache poppler-utils"
I get this error:
{"message":"ExitCode: 127, last log lines:\n./main.sh: line 2: apk update && apk add --no-cache libmagic poppler-utils glib libgl: command not found","name":"ExecutionErr"}
Please note, that I have tried to use apt-get as well. Same error.
6 Replies
windmill uses debian so your command must work on a stock debian
I imagine that apk doesn't exist on a stock debian
@rubenf thanks for the fast reply, Ruben. I get the exact same error using
INIT_SCRIPT="apt-get install poppler-utils"
it's probably not the same error no
@rubenf I get the same:
This is my
windmill_worker
environment section:
you should try with bash scripts to check your content, but also, this is pretty surprising, it should work
It's pretty weird. If I ssh into the Docker container, I can run apt-get fine on any of the workers.... What do you mean with "try with bash scripts"? @rubenf