Skip to content

Commit 85cde6d

Browse files
committed
fix: patch upstream entrypoint script
1 parent a1ed428 commit 85cde6d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docker/orioledb/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -867,11 +867,11 @@ COPY migrations/db /docker-entrypoint-initdb.d/
867867
COPY ansible/files/pgbouncer_config/pgbouncer_auth_schema.sql /docker-entrypoint-initdb.d/init-scripts/00-schema.sql
868868
COPY ansible/files/stat_extension.sql /docker-entrypoint-initdb.d/migrations/00-extension.sql
869869

870-
# Add upstream entrypoint script
871-
ADD --chmod=0755 \
872-
https://github.com/docker-library/postgres/raw/master/15/bullseye/docker-entrypoint.sh \
873-
/usr/local/bin/
874-
ENTRYPOINT ["docker-entrypoint.sh"]
870+
# Patch upstream entrypoint script
871+
RUN sed -i \
872+
-e "s|su-exec|gosu|g" \
873+
-e "s|PGHOST= PGHOSTADDR=|PGHOST=\$POSTGRES_HOST|g" \
874+
/usr/local/bin/docker-entrypoint.sh
875875

876876
HEALTHCHECK --interval=2s --timeout=2s --retries=10 CMD pg_isready -U postgres -h localhost
877877
STOPSIGNAL SIGINT

0 commit comments

Comments
 (0)