Reputation: 117
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.
Upvotes: 4
Views: 1840
Reputation: 117
Having /bin/sh
to run my script solved my issue.
quarkus.jib.jvm-entrypoint=/bin/sh,/docker/run-java.sh
Upvotes: 3