Fulcrum/contrib/docker/docker-entrypoint.sh
Axel Gembe 6387e2f250
Build: Add Dockerfile based on Ubuntu Bionic + Qt 5.13.2 PPA
Docker Hub runs an older version of docker, so we can't use any
newer glibc (>= 2.28) that support the statx syscall. Because of
this we use Ubuntu Bionic as a base, which ships with version 2.27.

When Docker Hub upgrades to Docker >= 18.04 we can use a newer base.
2020-01-10 18:57:08 +07:00

11 lines
313 B
Bash
Executable file

#!/bin/sh
if [ ! -e "$SSL_CERTFILE" ] || [ ! -e "$SSL_KEYFILE" ] ; then
openssl req -newkey rsa:2048 -sha256 -nodes -x509 -days 365 -subj "/O=Fulcrum" -keyout "$SSL_KEYFILE" -out "$SSL_CERTFILE"
fi
if [ "$1" = "Fulcrum" ] ; then
set -- "$@" -D "$DATA_DIR" -c "$SSL_CERTFILE" -k "$SSL_KEYFILE"
fi
exec "$@"