Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't run a container with a custom entrypoint script | Quarkus Jib

Tags:

quarkus

jib

I'm trying to run my application on AKS with a custom entrypoint script but I received an error:

Error: failed to create containerd task: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "/docker/run-java.sh": permission denied: unknown

Based on documentation I added entries to the application.properties

quarkus.jib.jvm-entrypoint=/docker/run-java.sh 
quarkus.jib.environment-variables."JAVA_APP_DIR"=/work 

My custom entrypoint script is located in src/main/jib/docker/

In the Maven Jib plugin is an option to setup permission to extra directories but I don't see it in Quarkus extension for Jib.

like image 728
Bożek Mariusz Avatar asked Oct 27 '25 11:10

Bożek Mariusz


1 Answers

Having /bin/sh to run my script solved my issue.

quarkus.jib.jvm-entrypoint=/bin/sh,/docker/run-java.sh
like image 87
Bożek Mariusz Avatar answered Oct 29 '25 09:10

Bożek Mariusz