-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (44 loc) · 1.23 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
ARG NFT_BUILD
FROM ${NFT_BUILD} AS NFT_BUILD
FROM lnattrass/alpine-base:latest
# Manual build of nft with --json suport
COPY --from=NFT_BUILD /root/packages/src/x86_64/*.apk /tmp/packages/
COPY --from=NFT_BUILD /root/.abuild/*.pub /etc/apk/keys/
RUN apk add --no-cache --update \
/tmp/packages/* \
bash \
jq \
python3 \
py3-yaml \
py3-jinja2 \
py3-requests \
ca-certificates \
conntrack-tools \
iproute2 \
iproute2-doc \
man \
keepalived \
curl \
dhcp \
dhcpcd \
dhcrelay \
tcpdump \
vim \
whois \
wget \
mtr \
socat \
arping \
darkhttpd \
less
RUN \
# nftables_exporter
wget -O /usr/bin/nftables_collector https://github.com/lnattrass/prometheus-nftables-collector/master/collector.py \
&& chmod +x /usr/bin/nftables_collector \
# zerotier
&& wget -O /usr/bin/zerotier-one.gz https://download.zerotier.com/dist/static-binaries/zerotier-one.x86_64.gz \
&& gzip -d /usr/bin/zerotier-one.gz && chmod +x /usr/bin/zerotier-one \
&& ln -sf /usr/bin/zerotier-one /usr/bin/zerotier-cli
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS 2
# Install components:
ADD tree/ /