kanidm/kanidm_rlm_python/run_radius_container.sh
James Hodgkinson 805ac2dd16
Python module and rewritten RADIUS integration (#826)
* 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>
2022-06-20 20:16:55 +10:00

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} $@