mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-08 04:04:42 +02:00
add passivedns
This commit is contained in:
parent
0649bf67ec
commit
e3468097e0
@ -301,6 +301,7 @@ A collection of delicious docker recipes.
|
||||
- [x] dnscrypt-server
|
||||
- [x] dnsmasq
|
||||
- [x] dnsmasq-arm
|
||||
- [x] passivedns
|
||||
- [x] pdnsd
|
||||
|
||||
## 3rd-party (sorted by basename)
|
||||
|
43
passivedns/Dockerfile
Normal file
43
passivedns/Dockerfile
Normal file
@ -0,0 +1,43 @@
|
||||
#
|
||||
# Dockerfile for passivedns
|
||||
#
|
||||
|
||||
FROM debian:12
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
RUN set -xe \
|
||||
&& apt update -y \
|
||||
&& apt install -y autoconf \
|
||||
automake \
|
||||
build-essential \
|
||||
curl \
|
||||
libjansson-dev \
|
||||
libjansson4 \
|
||||
libldns-dev \
|
||||
libldns3 \
|
||||
libpcap-dev \
|
||||
libpcap0.8 \
|
||||
libssl-dev \
|
||||
libssl3 \
|
||||
&& mkdir -p /opt/passivedns \
|
||||
&& cd /opt/passivedns \
|
||||
&& curl -sSL https://github.com/gamelinux/passivedns/archive/refs/heads/master.tar.gz | tar xz --strip 1 \
|
||||
&& autoreconf --install && ./configure --prefix=/usr && make install \
|
||||
&& cp etc/default/passivedns-debian /etc/default/passivedns \
|
||||
&& cp etc/init.d/passivedns-debian /etc/init.d/passivedns \
|
||||
&& cp etc/logrotate.d/passivedns /etc/logrotate.d/passivedns \
|
||||
&& cd .. \
|
||||
&& rm -rf /opt/passivedns \
|
||||
&& apt remove -y autoconf \
|
||||
automake \
|
||||
build-essential \
|
||||
curl \
|
||||
libldns-dev \
|
||||
libjansson-dev \
|
||||
libpcap-dev \
|
||||
libssl-dev \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& passivedns -V
|
||||
|
||||
ENTRYPOINT ["passivedns"]
|
||||
CMD ["-h"]
|
2
passivedns/README.md
Normal file
2
passivedns/README.md
Normal file
@ -0,0 +1,2 @@
|
||||
passivedns
|
||||
==========
|
17
passivedns/docker-compose.yml
Normal file
17
passivedns/docker-compose.yml
Normal file
@ -0,0 +1,17 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
passivedns:
|
||||
image: vimagick/passivedns
|
||||
command: >
|
||||
-i eth0
|
||||
-l /var/log/passivedns/passivedns.log
|
||||
-L /var/log/passivedns/passivedns-nx.log
|
||||
-p /var/run/passivedns.pid
|
||||
-P 86400
|
||||
-S 256
|
||||
-X 46CDNOPRSTMnx
|
||||
volumes:
|
||||
- ./data:/var/log/passivedns
|
||||
network_mode: host
|
||||
privileged: true
|
||||
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user