-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (35 loc) · 1.32 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Instructions for installation taken from the following site URL:
# https://wiki.freeradius.org/guide/Getting-Started
FROM ubuntu:14.04
MAINTAINER Kadima Solutions
MAINTAINER [email protected]
# Useful envinronment variables.
ENV \
RADIUS_HOME=/etc/freeradius
# These files/dirs can be mounted externally for persistence.
ENV \
CLIENT_CONFIG=${RADIUS_HOME}/clients.conf \
USERS_CONFIG=${RADIUS_HOME}/mods-config/files/authorize
RUN set -x \
&& apt-key adv --keyserver keys.gnupg.net --recv-key 0x41382202 \
&& apt-get update \
&& apt-get install -y curl rpm \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN set -x \
&& mkdir -p /etc/pki/rpm-gpg \
&& rpm --import https://ltb-project.org/lib/RPM-GPG-KEY-LTB-project \
&& gpg --keyserver keys.gnupg.net --recv-key 0x41382202 \
&& gpg --armor --export [email protected] > /etc/pki/rpm-gpg/packages.networkradius.com.gpg \
&& echo deb http://packages.networkradius.com/ubuntu trusty main >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y freeradius \
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
&& freeradius -v
COPY docker-entrypoint.sh /docker-entrypoint.sh
COPY rad-cfg.sh /rad-cfg.sh
RUN set -x \
&& chmod 740 /docker-entrypoint.sh \
&& chmod 740 /rad-cfg.sh
EXPOSE 1812-1813/udp
# Run this container as a program
ENTRYPOINT ["/docker-entrypoint.sh"]