Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ MAINTAINER hello@neilellis.me

COPY rootfs /
ADD https://github.com/just-containers/s6-overlay/releases/download/v1.13.0.0/s6-overlay-amd64.tar.gz /tmp/s6-overlay.tar.gz

# about nsswitch.conf - see https://registry.hub.docker.com/u/frolvlad/alpine-oraclejdk8/dockerfile/
ADD https://github.com/janeczku/go-dnsmasq/releases/download/0.9.2/go-dnsmasq-min_linux-amd64 /usr/sbin/go-dnsmasq

RUN tar xvfz /tmp/s6-overlay.tar.gz -C / && \
apk -U add dnsmasq jq curl && \
chmod 755 /bin/*.sh /etc/services.d/dns/run /etc/services.d/dns-hack/run /etc/services.d/syslog/run && \
chmod 755 /usr/sbin/go-dnsmasq /etc/services.d/dns/run /etc/services.d/syslog/run && \
mkdir /app && \
echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \
addgroup -g 999 app && \
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
main:
build: .
command: ash -c "ping -c 1 test1 && ping -c 1 test2 && touch /docker-test/test.txt ; sleep 60"
command: ash -c "sleep 10 && ping -c 1 test1 && ping -c 1 test2 && cat /etc/resolv.conf > /docker-test/test.txt; sleep 10"
volumes:
- ./docker-test:/docker-test:rw
links:
- test1
- test2
environment:
- DNSMASQ_ARGS=--verbose

test1:
image: nginx
Expand Down
26 changes: 0 additions & 26 deletions rootfs/bin/additional_hosts.sh

This file was deleted.

26 changes: 0 additions & 26 deletions rootfs/bin/dns_hack.sh

This file was deleted.

17 changes: 0 additions & 17 deletions rootfs/bin/get_hosts_from_tutum.sh

This file was deleted.

14 changes: 0 additions & 14 deletions rootfs/bin/non_tutum_dns_hack.sh

This file was deleted.

13 changes: 0 additions & 13 deletions rootfs/bin/tutum_dns_hack.sh

This file was deleted.

61 changes: 0 additions & 61 deletions rootfs/etc/cont-init.d/dns_init.sh

This file was deleted.

Loading