File tree Expand file tree Collapse file tree 10 files changed +121
-1
lines changed Expand file tree Collapse file tree 10 files changed +121
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ ARG idnversion=1.41
4
4
ARG readlineversion=8.1
5
5
ARG termcapversion=1.3.1
6
6
ARG nettleversion=3.8.1
7
+ ARG mbedtlsversion=3.4.0
7
8
8
9
RUN dpkg --add-architecture arm64 \
9
10
&& apt-get update \
@@ -30,6 +31,8 @@ RUN dpkg --add-architecture arm64 \
30
31
jq \
31
32
git \
32
33
dnsutils \
34
+ perl \
35
+ python3 \
33
36
&& rm -rf /var/lib/apt/lists/*
34
37
35
38
ENV CC aarch64-linux-gnu-gcc -isystem /usr/local/include
@@ -66,6 +69,15 @@ RUN curl -sSL https://ftl.pi-hole.net/libraries/nettle-${nettleversion}.tar.gz |
66
69
&& cd .. \
67
70
&& rm -r nettle-${nettleversion}
68
71
72
+ # Build static mbedTLS with pthread support
73
+ RUN curl -sSL https://ftl.pi-hole.net/libraries/mbedtls-${mbedtlsversion}.tar.gz | tar -xz \
74
+ && cd mbedtls-${mbedtlsversion} \
75
+ && sed -i '/#define MBEDTLS_THREADING_C/s*^//**g' include/mbedtls/mbedtls_config.h \
76
+ && sed -i '/#define MBEDTLS_THREADING_PTHREAD/s*^//**g' include/mbedtls/mbedtls_config.h \
77
+ && make -j $(nproc) install \
78
+ && cd .. \
79
+ && rm -r mbedtls-${mbedtlsversion}
80
+
69
81
FROM builder AS tester
70
82
71
83
# For FTL test compilation
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ ARG idnversion=1.41
5
5
ARG readlineversion=8.1
6
6
ARG termcapversion=1.3.1
7
7
ARG nettleversion=3.8.1
8
+ ARG mbedtlsversion=3.4.0
8
9
9
10
RUN dpkg --add-architecture armel \
10
11
&& apt-get update \
@@ -30,6 +31,8 @@ RUN dpkg --add-architecture armel \
30
31
libc6:armel \
31
32
xxd \
32
33
jq \
34
+ perl \
35
+ python3 \
33
36
&& rm -rf /var/lib/apt/lists/*
34
37
35
38
# Github actions/Checkout@v2 requires git >=2.18 else it will fall back to github API to download tarball
@@ -76,6 +79,15 @@ RUN curl -sSL https://ftl.pi-hole.net/libraries/nettle-${nettleversion}.tar.gz |
76
79
&& cd .. \
77
80
&& rm -r nettle-${nettleversion}
78
81
82
+ # Build static mbedTLS with pthread support
83
+ RUN curl -sSL https://ftl.pi-hole.net/libraries/mbedtls-${mbedtlsversion}.tar.gz | tar -xz \
84
+ && cd mbedtls-${mbedtlsversion} \
85
+ && sed -i '/#define MBEDTLS_THREADING_C/s*^//**g' include/mbedtls/mbedtls_config.h \
86
+ && sed -i '/#define MBEDTLS_THREADING_PTHREAD/s*^//**g' include/mbedtls/mbedtls_config.h \
87
+ && make -j $(nproc) install \
88
+ && cd .. \
89
+ && rm -r mbedtls-${mbedtlsversion}
90
+
79
91
FROM builder AS tester
80
92
81
93
# For FTL test compilation
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ FROM debian:buster@sha256:0685c900f6e691bdda6980c0ed0779d20183bc58770059b64adb56
4
4
ARG idnversion=1.41
5
5
ARG readlineversion=8.1
6
6
ARG termcapversion=1.3.1
7
+ ARG mbedtlsversion=3.4.0
7
8
8
9
RUN dpkg --add-architecture armel \
9
10
&& apt-get update \
@@ -28,6 +29,8 @@ RUN dpkg --add-architecture armel \
28
29
jq \
29
30
git \
30
31
dnsutils \
32
+ perl \
33
+ python3 \
31
34
&& rm -rf /var/lib/apt/lists/*
32
35
33
36
ENV CC "arm-linux-gnueabi-gcc -isystem /usr/local/include"
@@ -58,6 +61,15 @@ RUN curl -sSL https://ftl.pi-hole.net/libraries/readline-${readlineversion}.tar.
58
61
&& cd .. \
59
62
&& rm -r readline-${readlineversion}
60
63
64
+ # Build static mbedTLS with pthread support
65
+ RUN curl -sSL https://ftl.pi-hole.net/libraries/mbedtls-${mbedtlsversion}.tar.gz | tar -xz \
66
+ && cd mbedtls-${mbedtlsversion} \
67
+ && sed -i '/#define MBEDTLS_THREADING_C/s*^//**g' include/mbedtls/mbedtls_config.h \
68
+ && sed -i '/#define MBEDTLS_THREADING_PTHREAD/s*^//**g' include/mbedtls/mbedtls_config.h \
69
+ && make -j $(nproc) install \
70
+ && cd .. \
71
+ && rm -r mbedtls-${mbedtlsversion}
72
+
61
73
FROM builder AS tester
62
74
63
75
# For FTL test compilation
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ FROM debian:buster@sha256:0685c900f6e691bdda6980c0ed0779d20183bc58770059b64adb56
4
4
ARG idnversion=1.41
5
5
ARG readlineversion=8.1
6
6
ARG termcapversion=1.3.1
7
+ ARG mbedtlsversion=3.4.0
7
8
8
9
# Packages required to install compiler and libraries
9
10
RUN dpkg --add-architecture armel \
@@ -29,6 +30,8 @@ RUN dpkg --add-architecture armel \
29
30
xxd \
30
31
jq \
31
32
git \
33
+ perl \
34
+ python3 \
32
35
&& rm -rf /var/lib/apt/lists/*
33
36
34
37
# Use cross-compiler from https://github.com/abhiTronix/raspberry-pi-cross-compilers
@@ -73,6 +76,15 @@ RUN curl -sSL https://ftl.pi-hole.net/libraries/readline-${readlineversion}.tar.
73
76
&& cd .. \
74
77
&& rm -r readline-${readlineversion}
75
78
79
+ # Build static mbedTLS with pthread support
80
+ RUN curl -sSL https://ftl.pi-hole.net/libraries/mbedtls-${mbedtlsversion}.tar.gz | tar -xz \
81
+ && cd mbedtls-${mbedtlsversion} \
82
+ && sed -i '/#define MBEDTLS_THREADING_C/s*^//**g' include/mbedtls/mbedtls_config.h \
83
+ && sed -i '/#define MBEDTLS_THREADING_PTHREAD/s*^//**g' include/mbedtls/mbedtls_config.h \
84
+ && make -j $(nproc) install \
85
+ && cd .. \
86
+ && rm -r mbedtls-${mbedtlsversion}
87
+
76
88
FROM builder AS tester
77
89
78
90
# For FTL test compilation
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ ARG idnversion=1.41
4
4
ARG readlineversion=8.1
5
5
ARG termcapversion=1.3.1
6
6
ARG nettleversion=3.8.1
7
+ ARG mbedtlsversion=3.4.0
7
8
8
9
RUN dpkg --add-architecture armhf \
9
10
&& apt-get update \
@@ -30,6 +31,8 @@ RUN dpkg --add-architecture armhf \
30
31
jq \
31
32
git \
32
33
dnsutils \
34
+ perl \
35
+ python3 \
33
36
&& rm -rf /var/lib/apt/lists/*
34
37
35
38
ENV CC "arm-linux-gnueabihf-gcc -isystem /usr/local/include"
@@ -67,6 +70,15 @@ RUN curl -sSL https://ftl.pi-hole.net/libraries/nettle-${nettleversion}.tar.gz |
67
70
&& cd .. \
68
71
&& rm -r nettle-${nettleversion}
69
72
73
+ # Build static mbedTLS with pthread support
74
+ RUN curl -sSL https://ftl.pi-hole.net/libraries/mbedtls-${mbedtlsversion}.tar.gz | tar -xz \
75
+ && cd mbedtls-${mbedtlsversion} \
76
+ && sed -i '/#define MBEDTLS_THREADING_C/s*^//**g' include/mbedtls/mbedtls_config.h \
77
+ && sed -i '/#define MBEDTLS_THREADING_PTHREAD/s*^//**g' include/mbedtls/mbedtls_config.h \
78
+ && make -j $(nproc) install \
79
+ && cd .. \
80
+ && rm -r mbedtls-${mbedtlsversion}
81
+
70
82
FROM builder AS tester
71
83
72
84
# For FTL test compilation
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ ARG idnversion=1.41
4
4
ARG readlineversion=8.1
5
5
ARG termcapversion=1.3.1
6
6
ARG nettleversion=3.8.1
7
+ ARG mbedtlsversion=3.4.0
7
8
8
9
RUN dpkg --add-architecture armhf \
9
10
&& apt-get update \
@@ -30,6 +31,8 @@ RUN dpkg --add-architecture armhf \
30
31
jq \
31
32
git \
32
33
dnsutils \
34
+ perl \
35
+ python3 \
33
36
&& rm -rf /var/lib/apt/lists/*
34
37
35
38
ENV CC "arm-linux-gnueabihf-gcc -march=armv8-a -isystem /usr/local/include"
@@ -68,6 +71,15 @@ RUN curl -sSL https://ftl.pi-hole.net/libraries/nettle-${nettleversion}.tar.gz |
68
71
&& cd .. \
69
72
&& rm -r nettle-${nettleversion}
70
73
74
+ # Build static mbedTLS with pthread support
75
+ RUN curl -sSL https://ftl.pi-hole.net/libraries/mbedtls-${mbedtlsversion}.tar.gz | tar -xz \
76
+ && cd mbedtls-${mbedtlsversion} \
77
+ && sed -i '/#define MBEDTLS_THREADING_C/s*^//**g' include/mbedtls/mbedtls_config.h \
78
+ && sed -i '/#define MBEDTLS_THREADING_PTHREAD/s*^//**g' include/mbedtls/mbedtls_config.h \
79
+ && make -j $(nproc) install \
80
+ && cd .. \
81
+ && rm -r mbedtls-${mbedtlsversion}
82
+
71
83
FROM builder AS tester
72
84
73
85
# For FTL test compilation
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ ARG idnversion=1.41
4
4
ARG readlineversion=8.1
5
5
ARG termcapversion=1.3.1
6
6
ARG nettleversion=3.8.1
7
+ ARG mbedtlsversion=3.4.0
7
8
8
9
RUN apt-get update \
9
10
&& apt-get install --no-install-recommends -y ca-certificates debian-ports-archive-keyring \
@@ -32,6 +33,8 @@ RUN apt-get update \
32
33
jq \
33
34
git \
34
35
dnsutils \
36
+ perl \
37
+ python3 \
35
38
&& rm -rf /var/lib/apt/lists/*
36
39
37
40
ENV CC riscv64-linux-gnu-gcc -isystem /usr/local/include
@@ -68,6 +71,15 @@ RUN curl -sSL https://ftl.pi-hole.net/libraries/nettle-${nettleversion}.tar.gz |
68
71
&& cd .. \
69
72
&& rm -r nettle-${nettleversion}
70
73
74
+ # Build static mbedTLS with pthread support
75
+ RUN curl -sSL https://ftl.pi-hole.net/libraries/mbedtls-${mbedtlsversion}.tar.gz | tar -xz \
76
+ && cd mbedtls-${mbedtlsversion} \
77
+ && sed -i '/#define MBEDTLS_THREADING_C/s*^//**g' include/mbedtls/mbedtls_config.h \
78
+ && sed -i '/#define MBEDTLS_THREADING_PTHREAD/s*^//**g' include/mbedtls/mbedtls_config.h \
79
+ && make -j $(nproc) install \
80
+ && cd .. \
81
+ && rm -r mbedtls-${mbedtlsversion}
82
+
71
83
FROM builder AS tester
72
84
73
85
# For FTL test compilation
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ ARG idnversion=1.41
4
4
ARG readlineversion=8.1
5
5
ARG termcapversion=1.3.1
6
6
ARG nettleversion=3.8.1
7
+ ARG mbedtlsversion=3.4.0
7
8
8
9
# We need a more recent dnsutils version for native HTTPS and SVCB support in dig
9
10
RUN dpkg --add-architecture i386 \
@@ -35,6 +36,8 @@ RUN dpkg --add-architecture i386 \
35
36
python3 \
36
37
python3-yaml \
37
38
python3-requests \
39
+ zip \
40
+ perl \
38
41
&& apt-get -t buster-backports install --no-install-recommends -y \
39
42
dnsutils \
40
43
&& rm -rf /var/lib/apt/lists/*
@@ -88,6 +91,15 @@ RUN curl -sSL https://ftl.pi-hole.net/libraries/nettle-${nettleversion}.tar.gz |
88
91
&& cd .. \
89
92
&& rm -r nettle-${nettleversion}
90
93
94
+ # Build static mbedTLS with pthread support
95
+ RUN curl -sSL https://ftl.pi-hole.net/libraries/mbedtls-${mbedtlsversion}.tar.gz | tar -xz \
96
+ && cd mbedtls-${mbedtlsversion} \
97
+ && sed -i '/#define MBEDTLS_THREADING_C/s*^//**g' include/mbedtls/mbedtls_config.h \
98
+ && sed -i '/#define MBEDTLS_THREADING_PTHREAD/s*^//**g' include/mbedtls/mbedtls_config.h \
99
+ && make -j $(nproc) install \
100
+ && cd .. \
101
+ && rm -r mbedtls-${mbedtlsversion}
102
+
91
103
# Install bats-core directly into the build image
92
104
RUN git clone https://github.com/bats-core/bats-core.git \
93
105
&& cd bats-core
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ ARG idnversion=1.41
5
5
ARG readlineversion=8.1
6
6
ARG termcapversion=1.3.1
7
7
ARG nettleversion=3.8.1
8
+ ARG mbedtlsversion=3.4.0
8
9
9
10
RUN apk add --no-cache \
10
11
alpine-sdk \
@@ -24,7 +25,9 @@ RUN apk add --no-cache \
24
25
m4 \
25
26
python3 \
26
27
py3-yaml \
27
- py3-requests
28
+ zip \
29
+ py3-requests \
30
+ perl
28
31
29
32
# Install pdns from community repo
30
33
RUN echo "@community http://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VER}/community" >> /etc/apk/repositories; \
@@ -70,6 +73,15 @@ RUN curl -sSL https://ftl.pi-hole.net/libraries/nettle-${nettleversion}.tar.gz |
70
73
&& cd .. \
71
74
&& rm -r nettle-${nettleversion}
72
75
76
+ # Build static mbedTLS with pthread support
77
+ RUN curl -sSL https://ftl.pi-hole.net/libraries/mbedtls-${mbedtlsversion}.tar.gz | tar -xz \
78
+ && cd mbedtls-${mbedtlsversion} \
79
+ && sed -i '/#define MBEDTLS_THREADING_C/s*^//**g' include/mbedtls/mbedtls_config.h \
80
+ && sed -i '/#define MBEDTLS_THREADING_PTHREAD/s*^//**g' include/mbedtls/mbedtls_config.h \
81
+ && make -j $(nproc) install \
82
+ && cd .. \
83
+ && rm -r mbedtls-${mbedtlsversion}
84
+
73
85
# Install bats-core directly into the build image
74
86
RUN git clone https://github.com/bats-core/bats-core.git \
75
87
&& cd bats-core
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ ARG libnftnlversion=1.2.3
9
9
ARG nftablesversion=1.0.5
10
10
ARG libnfnetlinkversion=1.0.2
11
11
ARG libnetfilter_conntrackversion=1.0.9
12
+ ARG mbedtlsversion=3.4.0
12
13
13
14
# We need a more recent dnsutils version for native HTTPS and SVCB support in dig
14
15
RUN echo "deb http://deb.debian.org/debian buster-backports main contrib non-free" >> /etc/apt/sources.list \
@@ -42,6 +43,8 @@ RUN echo "deb http://deb.debian.org/debian buster-backports main contrib non-fre
42
43
python3 \
43
44
python3-yaml \
44
45
python3-requests \
46
+ zip \
47
+ perl \
45
48
&& apt-get -t buster-backports install --no-install-recommends -y \
46
49
dnsutils \
47
50
&& rm -rf /var/lib/apt/lists/*
@@ -130,6 +133,15 @@ RUN curl -sSL https://ftl.pi-hole.net/libraries/libnetfilter_conntrack-${libnetf
130
133
&& cd .. \
131
134
&& rm -r libnetfilter_conntrack-${libnetfilter_conntrackversion}
132
135
136
+ # Build static mbedTLS with pthread support
137
+ RUN curl -sSL https://ftl.pi-hole.net/libraries/mbedtls-${mbedtlsversion}.tar.gz | tar -xz \
138
+ && cd mbedtls-${mbedtlsversion} \
139
+ && sed -i '/#define MBEDTLS_THREADING_C/s*^//**g' include/mbedtls/mbedtls_config.h \
140
+ && sed -i '/#define MBEDTLS_THREADING_PTHREAD/s*^//**g' include/mbedtls/mbedtls_config.h \
141
+ && make -j $(nproc) install \
142
+ && cd .. \
143
+ && rm -r mbedtls-${mbedtlsversion}
144
+
133
145
# Install bats-core directly into the build image
134
146
RUN git clone https://github.com/bats-core/bats-core.git \
135
147
&& cd bats-core
You can’t perform that action at this time.
0 commit comments