Commit Graph
138 Commits
Author SHA1 Message Date
Crystal Augustus 0b0ec2644c Update Code Insights to use postgres (#780)
* Migrate codeinsights image to vanilla postgres, add exporter
2022-04-12 14:14:52 -04:00
Michael Lin 72e3ec4e7c Add support to customize pg conf (#792) 2022-04-12 08:36:36 -07:00
Kevin WojkovichandCrystal Augustus 646a6cdb7b caddy: update caddy to v2.4.6 (#788)
* caddy: update caddy to v2.4.6

* use versioned tag

* missing end quote

* Update pure-docker/deploy-caddy.sh

Co-authored-by: Crystal Augustus <91073224+caugustus-sourcegraph@users.noreply.github.com>

* Remove errantly committed redis conf

* another one, be gone

Co-authored-by: Crystal Augustus <91073224+caugustus-sourcegraph@users.noreply.github.com>
2022-03-29 09:10:44 -05:00
Crystal Augustus 58fbd836dd Frontend pods now wait for the migrator to complete (#782) 2022-03-16 17:06:37 -04:00
renovate[bot]andRenovate Bot 67bc52d80c Update Sourcegraph Docker images to 3544dba (#771)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-10 16:46:42 -05:00
Crystal Augustus 5aba48dc77 Update codeintel-db exporter to scrape codeintel-db (#778) 2022-03-10 17:14:31 +00:00
Crystal Augustus 82930981b3 Reduce default resources on migrator container (#775) 2022-03-07 21:40:33 +00:00
david-sandy 34d577f6ed Update postgres references (#774)
* Update postgres references

Update postgres-12.x references to simply 12.

No tags exist for this image other than a very old one.

* Pinned postgres image version with SHA

* Pinned postgres image

* Pinned postgres image version
2022-03-07 07:36:07 -06:00
Michael Lin 957e178efd Add postgres_exporter (#770) 2022-03-04 13:23:17 -08:00
Camden Cheek b507173c1d add env vars for searching in worker (#773)
This adds the necessary environment variables to execute searches from
worker directly. These variables are copied from the corresponding
frontend configurations.
2022-03-02 11:23:25 -07:00
Renovate Bot bf5acdde2a Update Sourcegraph Docker images to fc06dda 2022-02-21 04:13:33 +00:00
1b8f530d62 Add in migrator containers (#684)
* Add in migrator containers

* migration: block all services until frontend is up

Only use a single migration container and the generic `up` command

* migrator: remove new_migrations env var

No longer needed

* migrator: Now with 50% less depends

* migrator: add link todocs for running without codeinsights

* migrator: reduce resource usage to 1/4

* migrator: bump migrator version to 3.36.3

* migrator: remove new_migrations

* migrator: re-add depends_on

* migrator: add new_migrations back in to test CI

* migrator: bump version to insiders to align

* update insider shas

* change frontend healthcheck dependency

* tweak frontend healthcheck (#762)

* Remove NEW_MIGRATIONS flag

Co-authored-by: Dave Try <davetry@gmail.com>
Co-authored-by: Michael Lin <mlzc@hey.com>
Co-authored-by: Crystal Augustus <91073224+caugustus-sourcegraph@users.noreply.github.com>
2022-02-18 12:00:27 -05:00
Dax McDonald 2c43cddb1f Remove GOMAXPROC env var (#760) 2022-02-14 16:08:37 -07:00
renovate[bot]andRenovate Bot 358e8f2b99 Update Sourcegraph Docker images (#701)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-04 15:13:32 -05:00
Crystal Augustus 9b4be189ae Add cpus setting for zoekt-indexserver-0 (#728) 2022-02-01 10:56:47 -05:00
Camden Cheek 8fb0e833bd Remove query-runner from the deployment (#649)
* Remove query-runner from the deployment

* remove docker-compose block for query-runner

* remove remaining references to query-runner

* update smoke tests
2021-11-30 22:31:46 -07:00
John Rothfels 8f14afea72 docker-compose.yml: spell certificates correctly (#623) 2021-10-15 14:53:44 -07:00
davejrt 7933926890 update images, switch to alpine (#589) 2021-09-14 10:41:10 -07:00
renovate[bot]andRenovate Bot 3a1b10ef38 Update Sourcegraph Docker images (#523)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-19 11:17:05 -07:00
renovate[bot]andRenovate Bot 81c0ed3abc Update Sourcegraph Prometheus / Grafana Docker images (#395)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-19 11:16:34 -07:00
Dax McDonald fe3eb900f3 Revert "Merge branch 'release'" (#525)
This reverts commit 7f9cc4c4ce, reversing
changes made to d27e277608.
2021-08-18 17:11:21 -07:00
topebali 7f9cc4c4ce Merge branch 'release' 2021-08-18 15:16:48 +01:00
Beatrix 2e4afd8ef7 Enable Jaeger Tracing (#489) 2021-08-04 00:43:58 -07:00
DaedalusG 42310a0400 Merge branch 'master' into Update-Caddy-Image 2021-08-02 16:40:47 -07:00
Dave Try 3d9f1c0341 Revert "Use postgres alpine images everywhere (#457)"
This reverts commit c056b85a7d.
2021-07-28 11:11:55 -05:00
Dax McDonald b48392bcfb Add 'stop_grace_period to database services (#477)
This gives Postgres more time to gracefully shutdown
2021-07-28 11:22:45 +08:00
Robert Lin 76c2112a19 docker-compose: migrate documentation out of repo (#471) 2021-07-26 22:54:52 +08:00
renovate[bot]andRenovate Bot 9760b5b5d0 Update Sourcegraph Docker images (#463)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-26 08:51:39 +08:00
Warren Gifford 2d72dde62b Update Caddy Image in docker-compose.yaml
Updates Caddy image to caddy 2.0.0-alpine sha256:83d9aa7a5f1bbcc0fc1b4720c183a5ec53dae7dc5d9fa555daf3db345010e7f9
2021-07-23 14:29:40 -07:00
Dax McDonald c056b85a7d Use postgres alpine images everywhere (#457)
Prefer alpine image everywhere
2021-07-22 14:00:28 +08:00
renovate[bot]andRenovate Bot 5f0a7be516 Update Sourcegraph Docker images (#394)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-21 14:49:13 -07:00
Dax McDonald b40e3a5750 Upgrade Jaeger (#453) 2021-07-08 12:56:02 -07:00
davejrt 63aeab0861 release: sourcegraph@3.29.1 (#452) 2021-06-29 15:14:14 -05:00
Dax McDonald 1cfbc5f2b6 release: sourcegraph@3.29.0 (#450) 2021-06-18 15:43:10 -07:00
Eric Fritz 2c0a88149b Introduce worker service (#440) 2021-06-07 21:20:05 -05:00
Geoffrey Gilmore dbd98e8b05 bump memory limits for redis-[cache,store] to 7 GB (#373) 2021-05-18 16:03:09 -07:00
Andre EleuterioandSourcegraph a0f54fc382 Update sourcegraph/postgres-12.6 images (#390)
Co-authored-by: Sourcegraph <batch-changes@sourcegraph.com>
2021-05-07 11:47:30 -03:00
Dax McDonald dd5654840b Configure healthcheck for sourcegraph-internal (#358)
Our docker-compose deployments were failing due to the sourcegraph-internal pod restarting. This prevents sourcegraph-internal-0 from starting until the pgsql & codeintel-db's are up
2021-04-23 17:12:06 -07:00
Eric Fritz 9113e14107 Use Postgres 12 (#320) 2021-03-30 15:31:54 -05:00
davejrt 1e98e3bbf5 increase retries for frontend (#277)
* increase retries for frontend

* bump retries in all frontend containers
2021-03-02 11:47:09 -05:00
davejrt d7db46d372 use healthcheck to fix db lock (#274)
* use healthcheck to fix db lock
2021-03-01 17:25:39 -05:00
Ryan Slade 511517b85d Set hostname for gitserver (#271) 2021-03-01 16:14:41 +02:00
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
davejrt 6363a21f56 add codeintel-db (#257) 2021-02-15 10:17:43 -05:00
Robert Lin f3a9145a53 cadvisor: add commented support for macos (#213) 2021-01-15 09:35:59 +08:00
renovate[bot]andRenovate Bot 0d5144dfcf Update Sourcegraph Prometheus / Grafana Docker images (#180)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-10 18:14:50 +08:00
renovate[bot]andRenovate Bot 74a71abd90 Update Sourcegraph Docker images (#179)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-10 18:03:33 +08:00
renovate[bot]andRenovate Bot 43399737d8 Pin Docker digests (#174)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-20 11:27:44 +01:00