Project shows how to use Custom Entrypoint extension for Google Jib gradle plugin to customize target image entrypoint. It adds a prefix to the entrypoint which runs wait-for-it.sh. Script checks availability of port 80 at google.com and then runs the java application with arguments.
Build docker image with gradle command:
./gradlew jibDockerBuild
Docker image will be locally created and saved into local storage with name jib-custom-entrypoint
.
Run with docker command:
docker run -it jib-custom-entrypoint