mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
`kanidmd` builds and runs in Windows now. Currently skipping file permissions checks on startup, but it's tested OK on a Windows 10 box.
25 lines
580 B
Bash
Executable file
25 lines
580 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ -z "${IMAGE}" ]; then
|
|
IMAGE="kanidm/radius:devel"
|
|
fi
|
|
echo "Running docker container: ${IMAGE}"
|
|
|
|
if [ -z "${CONFIG_FILE}" ]; then
|
|
CONFIG_FILE="$(pwd)/../examples/kanidm"
|
|
fi
|
|
echo "Using config file: ${CONFIG_FILE}"
|
|
|
|
if [ ! -d "/tmp/kanidm/" ]; then
|
|
echo "Can't find /tmp/kanidm - you might need to run insecure_generate_tls.sh"
|
|
fi
|
|
|
|
echo "Starting the dev container..."
|
|
#shellcheck disable=SC2068
|
|
docker run --rm -it \
|
|
--network host \
|
|
--name radiusd \
|
|
-v /tmp/kanidm/:/etc/raddb/certs/ \
|
|
-v "${CONFIG_FILE}:/data/kanidm" \
|
|
${IMAGE} $@
|