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.
Having /bin/sh to run my script solved my issue.
quarkus.jib.jvm-entrypoint=/bin/sh,/docker/run-java.sh
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With