1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-10 04:19:24 +02:00
dockerfiles/freeradius/Dockerfile

24 lines
655 B
Docker
Raw Normal View History

2016-07-27 08:55:05 +02:00
#
# Dockerfile for freeradius
#
FROM alpine
MAINTAINER kev <noreply@easypi.info>
RUN set -xe \
&& apk add --no-cache freeradius \
2016-07-28 07:35:00 +02:00
freeradius-mysql \
2016-07-27 08:55:05 +02:00
freeradius-radclient \
2016-07-28 07:35:00 +02:00
&& rm -f /etc/raddb/mods-enabled/eap \
2016-07-27 08:55:05 +02:00
&& ln -s /etc/raddb/mods-available/sql /etc/raddb/mods-enabled/sql \
2016-07-28 07:35:00 +02:00
&& sed -i -e 's@driver =.*@driver = "rlm_sql_mysql"@' \
-e 's@dialect =.*@dialect = "mysql"@' \
-e '/Connection info:/,/^$/{s@^#@@;s@localhost@mysql@}' \
2016-07-27 08:55:05 +02:00
/etc/raddb/mods-available/sql
VOLUME /etc/raddb
2016-07-28 07:35:00 +02:00
EXPOSE 1812/udp 1813/udp
2016-07-27 08:55:05 +02:00
2016-07-28 07:35:00 +02:00
CMD ["radiusd", "-fl", "stdout"]