sourcegraph/docker-images
Jean-Hadrien Chabran c2946537b9
containers: fix prometheus permissions (#51359)
Perms for some config files are incorrect with the new Dockerfile. This
fixes it.

Context:
https://sourcegraph.slack.com/archives/C04MYFW01NV/p1682714634182829

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

- inspecting the files permissions in the newly built container.

---------

Co-authored-by: Dave Try <davetry@gmail.com>
2023-05-02 19:36:06 +02:00
..
alpine-3.14 Update to use curl from Alpine 3.17 (#50584) 2023-04-13 09:27:51 +00:00
blobstore ci: enable bazel builds for docker images (#51241) 2023-04-28 10:41:13 +02:00
cadvisor ci: enable bazel builds for docker images (#51241) 2023-04-28 10:41:13 +02:00
codeinsights-db Build Wolfi images (#47182) 2023-04-24 17:32:36 +00:00
codeintel-db Build Wolfi images (#47182) 2023-04-24 17:32:36 +00:00
dind dep: fix openssl vuln dind (#50232) 2023-03-31 19:29:02 +02:00
executor-vm executor-vm: Bump source image to resolve vulnerabilities (#49262) 2023-03-20 12:24:34 +01:00
grafana ci: enable bazel builds for docker images (#51241) 2023-04-28 10:41:13 +02:00
indexed-searcher Build Wolfi images (#47182) 2023-04-24 17:32:36 +00:00
jaeger-agent ci: enable bazel builds for docker images (#51241) 2023-04-28 10:41:13 +02:00
jaeger-all-in-one ci: enable bazel builds for docker images (#51241) 2023-04-28 10:41:13 +02:00
node-exporter Build Wolfi images (#47182) 2023-04-24 17:32:36 +00:00
opentelemetry-collector ci: enable bazel builds for docker images (#51241) 2023-04-28 10:41:13 +02:00
postgres_exporter ci: enable bazel builds for docker images (#51241) 2023-04-28 10:41:13 +02:00
postgres-12-alpine Build Wolfi images (#47182) 2023-04-24 17:32:36 +00:00
prometheus containers: fix prometheus permissions (#51359) 2023-05-02 19:36:06 +02:00
prometheus-gcp ci: enable bazel builds for docker images (#51241) 2023-04-28 10:41:13 +02:00
redis_exporter Build Wolfi images (#47182) 2023-04-24 17:32:36 +00:00
redis-cache Build Wolfi images (#47182) 2023-04-24 17:32:36 +00:00
redis-store Build Wolfi images (#47182) 2023-04-24 17:32:36 +00:00
search-indexer Build Wolfi images (#47182) 2023-04-24 17:32:36 +00:00
sg ci: enable bazel builds for docker images (#51241) 2023-04-28 10:41:13 +02:00
syntax-highlighter ci: enable bazel builds for docker images (#51241) 2023-04-28 10:41:13 +02:00
README.md docker: bump alpine base image from 3.12 to 3.14 (#28126) 2021-11-25 10:33:17 +01:00

Sourcegraph derivative Docker images

This directory contains Sourcegraph docker images which are derivatives of an existing Docker image, but with better defaults for our use cases. For example:

  • sourcegraph/alpine handles setting up a sourcegraph user account, installing common packages.
  • sourcegraph/postgres-11.4 is postgres-11.4 but with some Sourcegraph defaults.

If you are looking for our non-derivative Docker images, see e.g. /cmd/.../Dockerfile and /enterprise/cmd/.../Dockerfile instead.

Building

All images in this directory are built and published automatically on CI:

Adding a new image

  1. Create a build.sh and add your publishing script to it - the script should end with docker tag ... "$IMAGE". See the scripts in this directory for examples.
  2. Ensure your new script is executable with chmod +x build.sh (you can try it via e.g. IMAGE=fake-repo/cadvisor:latest docker-images/$SERVICE/build.sh, or by building a test image)
  3. Add an image to the automated builds pipeline by adding it to SourcegraphDockerImages.