Skip to content

Files

Latest commit

c3bff3e · Apr 14, 2020

History

History
26 lines (17 loc) · 1.41 KB

README.md

File metadata and controls

26 lines (17 loc) · 1.41 KB

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:

Exception: docker-images/alpine is manually built and pushed as needed.

git checkout master
cd docker-images/alpine
IMAGE=sourcegraph/alpine:$MY_VERSION ./build.sh
VERSION=$MY_VERSION ./release.sh

Note: $MY_VERSION above should reflect the underlying Alpine version. If changes are made without altering the underlying Alpine version, then bump the suffix. For example, use 3.10-1, 3.10-2, and so on. To find the current version, consult https://hub.docker.com/r/sourcegraph/alpine