2022-12-23 14:28:15 +01:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
# This script is intended to be used inside a docker container for Complement
|
|
|
|
|
2023-03-22 14:12:06 +01:00
|
|
|
export GOCOVERDIR=/tmp/covdatafiles
|
|
|
|
mkdir -p "${GOCOVERDIR}"
|
2022-12-23 14:28:15 +01:00
|
|
|
if [[ "${COVER}" -eq 1 ]]; then
|
|
|
|
echo "Running with coverage"
|
2023-02-14 12:47:47 +01:00
|
|
|
exec /dendrite/dendrite-cover \
|
2022-12-23 14:28:15 +01:00
|
|
|
--really-enable-open-registration \
|
|
|
|
--tls-cert server.crt \
|
|
|
|
--tls-key server.key \
|
2023-03-22 14:12:06 +01:00
|
|
|
--config dendrite.yaml
|
2022-12-23 14:28:15 +01:00
|
|
|
else
|
|
|
|
echo "Not running with coverage"
|
2023-02-14 12:47:47 +01:00
|
|
|
exec /dendrite/dendrite \
|
2022-12-23 14:28:15 +01:00
|
|
|
--really-enable-open-registration \
|
|
|
|
--tls-cert server.crt \
|
|
|
|
--tls-key server.key \
|
2023-02-14 12:47:47 +01:00
|
|
|
--config dendrite.yaml
|
2022-12-23 14:28:15 +01:00
|
|
|
fi
|