diff options
| author | mo khan <mo@mokhan.ca> | 2025-08-14 11:54:52 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-08-14 11:54:52 -0600 |
| commit | 0b7103e850232eaab4e87a0322817055e55dbe51 (patch) | |
| tree | 3a55344b8c589f52687200c0beb5cd92688014fa /vendor/github.com/testcontainers/testcontainers-go/modules/postgres/resources | |
| parent | 3f228b16c758d377566f11d2d328d1ccf658a2ad (diff) | |
| parent | 9e55e65ac5eb6ff645880ee253a33f6ab138b615 (diff) | |
Merge branch 'fix-build' into 'main'
Fix the broken build by running pg as a separate container.
See merge request gitlab-org/software-supply-chain-security/authorization/sparkled!24
Improve shell scripts and remove /sparkles/restore endpoint
- Add error handling and debugging to shell scripts with `set -e` and `DEBUG` flag
- Ensure scripts run from project root with `cd "$(dirname "$0")/.."`
- Remove `/sparkles/restore` endpoint from public routes and Envoy config
- Add Postgres test container support for integration tests
- Update CI configuration with newer Runway version and improved test setup
- Simplify Makefile by removing redundant commands
-------
:robot: Commit message generated by GitLab Duo
Diffstat (limited to 'vendor/github.com/testcontainers/testcontainers-go/modules/postgres/resources')
| -rw-r--r-- | vendor/github.com/testcontainers/testcontainers-go/modules/postgres/resources/customEntrypoint.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vendor/github.com/testcontainers/testcontainers-go/modules/postgres/resources/customEntrypoint.sh b/vendor/github.com/testcontainers/testcontainers-go/modules/postgres/resources/customEntrypoint.sh new file mode 100644 index 0000000..ff4ffa4 --- /dev/null +++ b/vendor/github.com/testcontainers/testcontainers-go/modules/postgres/resources/customEntrypoint.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +set -Eeo pipefail + + +pUID=$(id -u postgres) +pGID=$(id -g postgres) + +if [ -z "$pUID" ] +then + echo "Unable to find postgres user id, required in order to chown key material" + exit 1 +fi + +if [ -z "$pGID" ] +then + echo "Unable to find postgres group id, required in order to chown key material" + exit 1 +fi + +chown "$pUID":"$pGID" \ + /tmp/testcontainers-go/postgres/ca_cert.pem \ + /tmp/testcontainers-go/postgres/server.cert \ + /tmp/testcontainers-go/postgres/server.key + +/usr/local/bin/docker-entrypoint.sh "$@" |
