-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
58 lines (54 loc) · 1.56 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
FROM debian:buster-slim
LABEL maintainer="Jasper Orschulko <[email protected]>"
ARG JOOL_VER=4.1.4
RUN set -ex \
&& apt-get update \
&& apt-get install -y \
wget \
ca-certificates \
gcc \
build-essential \
pkg-config \
libnl-3-dev \
# needed for autogen.sh
autoconf \
automake \
bash \
libtool \
libxtables-dev \
libnl-genl-3-dev \
# needed to stop the build from failing on the kernel module (even though never used in container)
linux-headers-amd64 \
&& wget https://github.com/NICMx/Jool/archive/v${JOOL_VER}.tar.gz -O /jool.tar.gz \
&& mkdir /jool \
&& tar -xvf /jool.tar.gz -C /jool --strip-components=1 \
&& cd /jool \
&& ./autogen.sh \
&& ./configure \
&& make -j$(nproc) \
&& make install \
&& apt-get remove --purge -y \
wget \
gcc \
build-essential \
pkg-config \
libnl-3-dev \
autoconf \
automake \
libtool \
libxtables-dev \
libnl-genl-3-dev \
linux-headers-amd64 \
&& apt-get autoremove -y \
&& apt-get install -y \
libnl-3-200 \
libnl-genl-3-200 \
libxtables12 \
&& rm -rf /var/lib/apt/lists \
&& mv /usr/local/bin/jool_siit /usr/bin/ \
&& mv /usr/local/bin/joold /usr/bin/ \
&& mkdir -p /usr/share/man/man8/ \
&& mv /usr/local/share/man/man8/jool_siit.8 /usr/share/man/man8/
COPY run.sh /root/run.sh
COPY configfile /root/jool.conf
COPY netsocket.json /root/netsocket.json