mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
* added python kanidm module * rewrote RADIUS integration * updated the documentation * updating github actions to run more often * BLEEP BLOOP ASYNCIO IS GR8 * adding config to makefile to run pykanidm tests Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Firstyear <william@blackhats.net.au>
25 lines
582 B
Bash
Executable file
25 lines
582 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_certs.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} $@
|