@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0
|
||||
# The local Postgres's entrypoint (compose.dev.yaml, the e2e stacks, test/relay-scope.test.ts): installs
|
||||
# `postgres-roles.sql` for the image's first start with a mode the server can read, then runs the image's own
|
||||
# entrypoint. The checkout's file mode depends on the host (a clone under `umask 077` writes it 0600, and
|
||||
# under rootless Docker the server's user cannot read that), so the script is not mounted where the server
|
||||
# reads it: the container's root, which can, copies it there. It runs as `sh <file>`, so it needs no mode of
|
||||
# its own either.
|
||||
set -eu
|
||||
install -m 0644 /conusai-dev/postgres-roles.sql /docker-entrypoint-initdb.d/10-roles.sql
|
||||
exec docker-entrypoint.sh "$@"
|
||||
Reference in New Issue
Block a user