Skip to content

Commit

Permalink
fix(docker): extend (not override) base image entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgb committed Dec 18, 2024
1 parent cf173a6 commit b4a6499
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker/usr/local/bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ if [ "${AKHQ_CONFIGURATION}" ]; then
echo "${AKHQ_CONFIGURATION}" > /app/application.yml
fi

exec "$@"
# We currently override the base image ENTRYPOINT in our Dockerfile making it harder
# to get access to the CA certificates feature provided by the base image ENTRYPOINT:
# https://github.com/docker-library/docs/blob/master/eclipse-temurin/content.md#can-i-add-my-internal-ca-certificates-to-the-truststore
# To fix this issue, we invoke the base image ENTRYPOINT script (/__cacert_entrypoint.sh) before the arguments.
# Credits to https://superuser.com/a/1460890
exec /__cacert_entrypoint.sh "$@"

0 comments on commit b4a6499

Please sign in to comment.