OpenSlides/server/build.sh
Gernot Schulz 4f194a8794
Docker: Add a Docker secret for the Django key
We have decided against including an insecure default key with a mere
warning.  Therefore, unlike the admin and user secrets, the availability
of this secret is a hard requirement.  The instance will not be able to
start before a secret has been generated manually or by a management
tool.
2020-08-21 08:11:14 +02:00

11 lines
247 B
Bash
Executable File

#!/bin/bash
cd "$(dirname "$0")"
printf "Server built on %s:\n\nBranch: %s\n\n%s\n" \
"$(date)" \
"$(git rev-parse --abbrev-ref HEAD)" \
"$(git show -s --format=raw)" > docker/server-version.txt
docker build -f docker/Dockerfile . $@