Skip to content

Conversation

@emidoots
Copy link
Member

@emidoots emidoots commented Feb 19, 2021

This PR adds the codeinsights-db deployment, which is a TimescaleDB time series database deployment used for recording Code Insights data.

I have test both deployments start up as expected.

Fixes https://github.com/sourcegraph/sourcegraph/issues/17225

Checklist

  • Sister deploy-sourcegraph change: already merged
  • All images have a valid tag and SHA256 sum

Stephen Gutekanst added 4 commits February 19, 2021 15:27
Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
emidoots pushed a commit to sourcegraph/sourcegraph-public-snapshot that referenced this pull request Feb 19, 2021
cpus: 4
mem_limit: "2g"
environment:
- POSTGRES_PASSWORD=password
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our other db's do not set a password (at least at the docker-compose YAML level), why do we set one here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In our Postgres image we actually bake in this environment variable. We don't do it here because this is just a re-tagged TimescaleDB image.

Copy link
Contributor

@daxmc99 daxmc99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@emidoots emidoots merged commit 32dbb25 into master Feb 19, 2021
@emidoots emidoots deleted the sg/deploy-codeinsights-db branch February 19, 2021 23:14
- "codeinsights-db:/data/"
networks:
- sourcegraph
restart: always
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason we didn't add health checks here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no good reason I can think of, probably I just forgot to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

code insights: deploy TimescaleDB in docker-compose deployments

4 participants