-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
61 lines (49 loc) · 1.57 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM ubuntu:16.04
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y git vim
RUN apt-get install -y libtool automake libssl-dev gengetopt libjson-c-dev
RUN apt-get install -y checkinstall
RUN apt-get install -y unzip zip wget
WORKDIR /tmp
# wget tagged version from git
RUN wget -O coova-chilli-1.4.zip https://github.com/coova/coova-chilli/archive/1.4.zip
#RUN git clone https://github.com/coova/coova-chilli.git
RUN unzip coova-chilli-1.4.zip -d /tmp/
#RUN tar -xvf coova-chilli-src-1.4.tar -C /tmp/coova-chilli
WORKDIR /tmp/coova-chilli-1.4
RUN sh bootstrap
# https://github.com/coova/coova-chilli/blob/master/debian/rules
RUN ./configure --prefix=/usr \
--libdir=/usr/lib64 \
--sysconfdir=/etc \
--mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
--localstatedir=/var \
--with-openssl \
--enable-json \
--enable-libjson \
--enable-sessionstate \
--enable-sessionid \
--enable-largelimits \
--enable-debug2 \
--enable-multilan \
--enable-layer3 \
--enable-proxyvsa \
--enable-chilliredir \
--enable-chilliproxy \
--enable-chilliscript \
--enable-chilliradsec \
--enable-eapol \
--enable-uamdomainfile \
--enable-redirdnsreq \
--enable-multiroute \
--enable-extadmvsa \
--with-poll \
--enable-binstatusfile \
--enable-modules \
--enable-ipwhitelist
#--enable-miniportal
RUN make
RUN checkinstall -y --install=no --pkgversion=1.4
RUN make clean
VOLUME [ "/target" ]
ENTRYPOINT [ "cp","/tmp/coova-chilli-1.4/coova-chilli_1.4-1_amd64.deb","/target" ]