sourcegraph/wolfi-images/postgresql-12-codeinsights.yaml
Will Dollman 0d7ab3e62e
Revert publishing wolfi base images (#62117)
* Revert build base images

* Revert 'MANUAL REBUILD' comment in image configs

* sg wolfi lock
2024-04-25 11:33:00 +01:00

58 lines
1.2 KiB
YAML

include: ./sourcegraph-template.yaml
contents:
packages:
# Postgres packages
- glibc-locale-en
- libpq-12
- postgresql-12
- postgresql-12-client
- postgresql-12-contrib
- postgresql-12-oci-entrypoint
- su-exec
# These are overridden by the Dockerfile, but provide defaults for running in the base image
environment:
PGDATA: /data/pgdata-12
POSTGRES_USER: sg
POSTGRES_PASSWORD: ''
POSTGRES_DB: sg
# Ideally, running the base image would start a Postgres server, but the lack of a Postgres user
# means this won't work. We can't create one as the UID/GID depends on the image.
# entrypoint:
# command: /var/lib/postgres/initdb/postgresql-entrypoint.sh postgres
paths:
- path: /data
type: directory
uid: 70
gid: 70
permissions: 0o750
- path: /data/pgdata-12
type: directory
uid: 70
gid: 70
permissions: 0o750
- path: /var/lib/postgresql
type: directory
uid: 70
gid: 70
permissions: 0o755
- path: /var/run/postgresql
type: directory
uid: 70
gid: 70
permissions: 0o755
accounts:
groups:
- groupname: ping
gid: 700
- groupname: postgres
gid: 70
users:
- username: postgres
uid: 70
gid: 70