Skip to content

Commit

Permalink
symlink base image entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Oct 25, 2023
1 parent 4be47b9 commit 58a761a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions db/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# FROM registry.redhat.io/rhel8/postgresql-15:latest
FROM docker.io/library/postgres:15

RUN ln -s /usr/local/bin/docker-entrypoint.sh /usr/local/bin/postgres-entrypoint.sh

ENTRYPOINT ["/usr/local/bin/cryostat-db-entrypoint.bash"]

COPY ./pgcrypto.sql /docker-entrypoint-initdb.d/pgcrypto.sql
Expand Down
2 changes: 1 addition & 1 deletion db/entrypoint.bash
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ if [ -z "${PG_ENCRYPT_KEY}" ]; then
exit 1
fi

exec /usr/local/bin/docker-entrypoint.sh postgres -c encrypt.key="${PG_ENCRYPT_KEY}" "$@"
exec /usr/local/bin/postgres-entrypoint.sh postgres -c encrypt.key="${PG_ENCRYPT_KEY}" "$@"

0 comments on commit 58a761a

Please sign in to comment.