OpenSlides/docker
Gernot Schulz 1ad0a61524 Docker: Simplify image name/registry handling
For a subset of the images required by a Compose or Swarm Setup,
non-default names can be configured in .env.  Originally, the names were
treated as the images' complete names, i.e., including an optional
registry domain.  Using this setup, it was possible to pull the
irregularly updated auxiliary images from a default registry while, at
the same time, obtaining certain images from different registries.

Commit e225a57f97 changed this behavior.  Since then, the names in .env
can only be used to change part of the image name, excluding the
registry.  If a default registry is configured it is always prepended to
the given image name, breaking the original use case.

This patch removes the ability to override image names in .env.
Instead, the registry of each image can be customized.

The reasoning here is that the only common reason to change an image
name is to change its Docker registry.  For example, while the default
registry may be set to default.example.com, it may be necessary to
obtain the backend image private.example.com/openslides-server.  With
this patch, that would be achieved by the following configuration in
.env:

    DOCKER_OPENSLIDES_BACKEND_REGISTRY="private.example.com"

For special cases, for which the images' basename must indeed be changed
as well, the template would need to be customized.

The templates are not backwards-compatible.
2021-03-31 15:08:32 +02:00
..
secrets admin.env is not loaded. docker-*.m4 defines ADMIN_SECRET_AVAILABLE if adminsecret.env is present 2020-10-01 13:30:25 +02:00
.env Docker: Simplify image name/registry handling 2021-03-31 15:08:32 +02:00
build.sh Docker: Remove proxy as a default build target 2021-03-01 10:48:47 +01:00
docker-compose.dev.yml Change chat access groups 2021-02-19 15:08:02 +01:00
docker-compose.yml.m4 Docker: Simplify image name/registry handling 2021-03-31 15:08:32 +02:00
docker-stack.yml.m4 Docker: Simplify image name/registry handling 2021-03-31 15:08:32 +02:00
postgresql.dev.conf Performance improvements for OS3+ 2021-01-21 12:53:51 +01:00