kanidm-radius (sha256:9ba1dae448f26d056107ee0d1324dd668efa3657fd2e4ba65b70211930017e1c)

Published 2023-07-16 23:36:30 +00:00 by ash

Installation

docker pull git.ashhhleyyy.dev/ash/kanidm-radius@sha256:9ba1dae448f26d056107ee0d1324dd668efa3657fd2e4ba65b70211930017e1c
sha256:9ba1dae448f26d056107ee0d1324dd668efa3657fd2e4ba65b70211930017e1c

Image Layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.ref.name=ubuntu
LABEL org.opencontainers.image.version=22.04
ADD file:262490f82459c14632f5c9a6d6a5cf6c07b4f307e8fd380fa764662cda46e88f in /
CMD ["/bin/bash"]
COPY /usr/local/src/repositories/*.deb /tmp/ # buildkit
ARG freerad_uid=101
ARG freerad_gid=101
ARG DEBIAN_FRONTEND=noninteractive
RUN |3 freerad_uid=101 freerad_gid=101 DEBIAN_FRONTEND=noninteractive /bin/sh -c groupadd -g ${freerad_gid} -r freerad && useradd -u ${freerad_uid} -g freerad -r -M -d /etc/freeradius -s /usr/sbin/nologin freerad && apt-get update && apt-get install -y /tmp/*.deb && apt-get clean && rm -r /var/lib/apt/lists/* /tmp/*.deb && ln -s /etc/freeradius /etc/raddb # buildkit
COPY docker-entrypoint.sh / # buildkit
RUN |3 freerad_uid=101 freerad_gid=101 DEBIAN_FRONTEND=noninteractive /bin/sh -c chmod +x /docker-entrypoint.sh # buildkit
EXPOSE map[1812/udp:{} 1813/udp:{}]
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["freeradius"]
EXPOSE map[1812/tcp:{} 1813/tcp:{}]
ARG RADIUS_USER=freerad
ARG TZ=Etc/UTC
ENV TZ=Etc/UTC
RUN |2 RADIUS_USER=freerad TZ=Etc/UTC /bin/sh -c ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # buildkit
RUN |2 RADIUS_USER=freerad TZ=Etc/UTC /bin/sh -c apt-get update && apt-get install -y freeradius-utils hostname python3 python3-pip python-is-python3 tzdata iproute2 iputils-ping iputils-tracepath openssl curl && apt-get clean # buildkit
ADD rlm_python/mods-available/ /etc/raddb/mods-available/ # buildkit
COPY rlm_python/sites-available/ /etc/raddb/sites-available/ # buildkit
WORKDIR /etc/raddb
RUN |2 RADIUS_USER=freerad TZ=Etc/UTC /bin/sh -c ln -s /etc/raddb/mods-available/python3 /etc/raddb/mods-enabled/python3 && ln -s /etc/raddb/sites-available/check-eap-tls /etc/raddb/sites-enabled/check-eap-tls # buildkit
RUN |2 RADIUS_USER=freerad TZ=Etc/UTC /bin/sh -c chown -R $RADIUS_USER. /etc/raddb/ && chmod 775 /etc/raddb/certs && chmod 640 /etc/raddb/clients.conf # buildkit
RUN |2 RADIUS_USER=freerad TZ=Etc/UTC /bin/sh -c mkdir -p /pkg/pykanidm/ # buildkit
COPY pykanidm/ /pkg/pykanidm/ # buildkit
RUN |2 RADIUS_USER=freerad TZ=Etc/UTC /bin/sh -c python3 -m pip install --no-cache-dir --no-warn-script-location /pkg/pykanidm && rm -rf /pkg/* # buildkit
COPY rlm_python/radius_entrypoint.py /radius_entrypoint.py # buildkit
ENV LD_PRELOAD=/usr/lib64/libpython3.so
ENV KANIDM_CONFIG_FILE=/data/kanidm
RUN |2 RADIUS_USER=freerad TZ=Etc/UTC /bin/sh -c chmod a+r /etc/raddb/certs/ -R # buildkit
USER freerad
CMD ["/usr/bin/python3" "/radius_entrypoint.py"]

Labels

Key Value
org.opencontainers.image.ref.name ubuntu
org.opencontainers.image.version 22.04
Details
Container
2023-07-16 23:36:30 +00:00
1
OCI / Docker
linux/arm64
216 MiB
Versions (1) View all
1.1.0-alpha.12 2023-07-16