Commit Graph
3 Commits
Author SHA1 Message Date
Stephen Gutekanst 299827ec9d insights: set PGDATA=/var/lib/postgresql/data/pgdata (#269)
I previously thought `PGDATA=/var/lib/postgresql/data/pgdata` was the default,
but it is definitely not: `/var/lib/postgresql/data` is.

I removed this from `deploy-codeinsights-db.sh` for consistency with the Docker
Compose deployment, but this would have broken existing pure-docker deployments
because they were storing data in the `pgdata` subdirectory previously.

I have added this to Docker Compose deployments here, for consistency, although
it is not strictly required (Docker Compose volumes, unlike Kubernetes ones, do
not appear ot have a `lost+found` file in them and as such Postgres is happy to
use the root of the volume - whereas in Kubernetes deployments it will complain
the directory is not empty and fail to start.)

Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
2021-02-26 16:18:47 -07:00
Stephen Gutekanst 18e82d7bba codeinsights-db: correct data volume path (#268)
Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
2021-02-26 14:26:16 -07:00
Stephen Gutekanst 32dbb25d80 add codeinsights-db deployment (#259)
* pure-docker: add codeinsights-db

* test: add codeinsights-db permissions

Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>

* prometheus: add codeinsights-db (optional)

Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>

* docker-compose: add codeinsights-db

Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>

* test: update expected # of containers

Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
2021-02-19 16:14:01 -07:00