You've already forked dockerfiles
mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-07-17 01:22:25 +02:00
update dnsmasq
This commit is contained in:
@ -31,6 +31,7 @@ A collection of delicious docker recipes.
|
|||||||
- [ ] ipset
|
- [ ] ipset
|
||||||
- [ ] irc
|
- [ ] irc
|
||||||
- [ ] libreswan
|
- [ ] libreswan
|
||||||
|
- [ ] metasploit
|
||||||
- [ ] mitmproxy
|
- [ ] mitmproxy
|
||||||
- [ ] nagios
|
- [ ] nagios
|
||||||
- [ ] nfs
|
- [ ] nfs
|
||||||
|
@ -3,16 +3,17 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
MAINTAINER kev <norelply@easypi.info>
|
MAINTAINER kev <norelply@easypi.info>
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add -U dnsmasq \
|
&& apk add --no-cache dnsmasq \
|
||||||
&& echo "conf-dir=/etc/dnsmasq.d/,*.conf" >> /etc/dnsmasq.conf \
|
&& echo "conf-dir=/etc/dnsmasq.d/,*.conf" >> /etc/dnsmasq.conf
|
||||||
&& mkdir -p /etc/dnsmasq.d \
|
|
||||||
&& rm -rf /var/cache/apk/*
|
|
||||||
|
|
||||||
VOLUME /etc/dnsmasq.d
|
VOLUME /etc/dnsmasq.d
|
||||||
|
|
||||||
EXPOSE 53/tcp 53/udp 67/udp
|
EXPOSE 53/tcp \
|
||||||
|
53/udp \
|
||||||
|
67/udp
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/sbin/dnsmasq", "--no-daemon", "--user=dnsmasq", "--group=dnsmasq"]
|
ENTRYPOINT ["dnsmasq", "--no-daemon", "--user=dnsmasq", "--group=dnsmasq"]
|
||||||
|
@ -1,2 +1,23 @@
|
|||||||
dnsmasq
|
dnsmasq
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
[Dnsmasq][1] is a Domain Name System forwarder and Dynamic Host Configuration
|
||||||
|
Protocol server for small computer networks, created as free software.
|
||||||
|
|
||||||
|
## docker-compose.yml
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
dnsmasq:
|
||||||
|
image: vimagick/dnsmasq
|
||||||
|
ports:
|
||||||
|
- "53:53/tcp"
|
||||||
|
- "53:53/udp"
|
||||||
|
- "67:67/udp"
|
||||||
|
volumes:
|
||||||
|
- ./dnsmasq.d:/etc/dnsmasq.d
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
restart: always
|
||||||
|
```
|
||||||
|
|
||||||
|
[1]: http://www.thekelleys.org.uk/dnsmasq/doc.html
|
||||||
|
19
dnsmasq/arm/Dockerfile
Normal file
19
dnsmasq/arm/Dockerfile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#
|
||||||
|
# Dockerfile for dnsmasq-arm
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM easypi/alpine-arm
|
||||||
|
|
||||||
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
|
RUN set -xe \
|
||||||
|
&& apk add --no-cache dnsmasq \
|
||||||
|
&& echo "conf-dir=/etc/dnsmasq.d/,*.conf" >> /etc/dnsmasq.conf
|
||||||
|
|
||||||
|
VOLUME /etc/dnsmasq.d
|
||||||
|
|
||||||
|
EXPOSE 53/tcp \
|
||||||
|
53/udp \
|
||||||
|
67/udp
|
||||||
|
|
||||||
|
ENTRYPOINT ["dnsmasq", "--no-daemon", "--user=dnsmasq", "--group=dnsmasq"]
|
@ -1,7 +1,7 @@
|
|||||||
dnsmasq:
|
dnsmasq:
|
||||||
image: easypi/dnsmasq-arm
|
image: easypi/dnsmasq-arm
|
||||||
volumes:
|
volumes:
|
||||||
- ./dnsmasq.d:/etc/dnsmasq.d
|
- ./dnsmasq.conf:/etc/dnsmasq.d/dnsmasq.conf
|
||||||
net: container:dnscrypt
|
net: container:dnscrypt
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user