mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:11:48 +00:00
* Revert build base images * Revert 'MANUAL REBUILD' comment in image configs * sg wolfi lock
58 lines
1.2 KiB
YAML
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
|