OpenSlides/server/build.sh
FinnStutzenstein 2bcab5d098
Repository restructure
- moved all server related things into the folder `server`, so this
configuration is parallel to the client.
- All main "services" are now folders in the root directory
- Added Dockerfiles to each service (currently server and client)
- Added a docker compose configuration to start everything together.
Currently there are heavy dependencies into https://github.com/OpenSlides/openslides-docker-compose
- Resturctured the .gitignore. If someone needs something excluded,
please add it to the right section.
- Added initial build setup with Docker and docker-compose.
- removed setup.py. We won't deliver OpenSlides via pip anymore.
2020-08-21 08:11:13 +02:00

19 lines
568 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
# @Gernot: TODO
# SECRET_KEY=$(head /dev/urandom | tr -dc 'A-Za-z0-9!"#$%&()*+,-./:;<=>?@[]^_`{|}~' | head -c 64)
# sed: \/& must be escaped...
# ESCAPED_SECRET_KEY=$(printf "%s\n" "$SECRET_KEY" | sed -e 's/[\/&]/\\&/g')
# sed -i \
# -e "/SECRET_KEY/s/%%secret-key%%/$ESCAPED_SECRET_KEY/" \
# docker/settings.py
docker build -f docker/Dockerfile . $@