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.
7 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
hey everyone, is the issue solution for the poppler install. i been going on 5 days trying to get it installed to use Zerox OCR. Ived build it the container using Poppler in an Alpine base image. copy all the files from the Copy pdftoppm and all shared libraries from the builder stage. i tried the says as above .. install binaries using the INIT_SCRIPT in my docker-compose yml . im newer to containers and cant put my finger on whats going wrong. thanks in advance for any help