kanidm/kanidm_rlm_python/run_radius_container.sh
James Hodgkinson 60f9541cdd
RADIUS fixes (#942)
* actually writing cert files properly now
* Updated readme with config file, fixed check for config file.
* minor tweaks to actions, removing job limits and skipping login to registry if not going to push
* removing old config.ini file
* temporarily adding Williams fixed package
2022-07-22 13:04:36 +10:00

25 lines
570 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/:/certs/ \
-v "${CONFIG_FILE}:/data/kanidm" \
${IMAGE} $@