forked from sroegner/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
21 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
dnsmasq.hosts | ||
watchmen/watchmen-config/hosts.js | ||
saltfiles | ||
*.container.id | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
FROM ubuntu | ||
FROM sroegner/centos-base-ssh:6 | ||
MAINTAINER Steffen Roegner 'steffen.roegner@gmail.com' | ||
|
||
VOLUME [ "/dnsmasq.hosts" ] | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes dnsmasq-base dnsutils | ||
ADD dnsmasq.conf /etc/dnsmasq.conf | ||
ADD resolv.dnsmasq.conf /etc/resolv.dnsmasq.conf | ||
RUN yum -y install dnsmasq | ||
|
||
EXPOSE 5353/udp | ||
COPY dnsmasq.conf /etc/ | ||
COPY resolv.dnsmasq.conf /etc/ | ||
|
||
VOLUME /dnsmasq.hosts | ||
|
||
EXPOSE 5353 | ||
|
||
ENTRYPOINT ["/usr/sbin/dnsmasq", "-d"] | ||
|
||
CMD ["/usr/sbin/dnsmasq", "-d"] | ||
#ENTRYPOINT ["/usr/sbin/dnsmasq"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,8 @@ | ||
all: | ||
echo "Can do 'clean', 'image' or 'container'" | ||
clean: | ||
sudo docker stop dnsmasq | ||
sudo docker rm dnsmasq | ||
|
||
image: | ||
sudo docker build -rm -t='sroegner/dnsmasq' . | ||
hostname := dnsmasq | ||
thirdoctet := 24 | ||
include ../shared/Makefile.vars | ||
include ../shared/Makefile | ||
|
||
container: | ||
sudo docker run \ | ||
-v="$$(pwd)/dnsmasq.hosts:/dnsmasq.hosts" \ | ||
-name=dnsmasq \ | ||
-p='127.0.0.10:53:5353/udp' \ | ||
-d sroegner/dnsmasq | ||
sudo docker ps | ||
sudo docker logs $$(sudo docker ps -l -q) | ||
$(DOCKER_CMD) run -d -v=$(CURDIR)/dnsmasq.hosts:/dnsmasq.hosts --name=$(container_name) --publish=$(IP):5353:5353 $(tag) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
port=5353 | ||
bind-interfaces | ||
#listen-address=172.17.0.2 | ||
resolv-file=/etc/resolv.dnsmasq.conf | ||
#conf-dir=/etc/dnsmasq.d | ||
#domain-needed | ||
#local=/sqrrl-docker.net/ | ||
#no-hosts | ||
addn-hosts=/dnsmasq.hosts/ | ||
addn-hosts=/dnsmasq.hosts | ||
expand-hosts | ||
domain=sqrrl-lab.net | ||
domain=testdomain.local | ||
log-queries | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# place hosts files in this directory and dnsmasq will pick them up at startup (no automatic re-load) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters