Skip to content
Snippets Groups Projects
Dockerfile 572 B
Newer Older
Pierre Ozoux's avatar
Pierre Ozoux committed
FROM debian:jessie

ENV DEBIAN_FRONTEND noninteractive

RUN \
  apt-get update &&\
  apt-get install -y \
    wget \
    ca-certificates &&\
  rm -rf /var/lib/apt/lists/*

ADD confd /etc/confd

Pierre Ozoux's avatar
Pierre Ozoux committed
RUN \
  wget https://github.com/kelseyhightower/confd/releases/download/v0.7.1/confd-0.7.1-linux-amd64 -O confd && \
Pierre Ozoux's avatar
Pierre Ozoux committed
  chmod +x confd

RUN \
  wget https://get.docker.com/builds/Linux/x86_64/docker-1.2.0 -O docker && \
  chmod +x docker

VOLUME ["/etc/confd/", "/etc/haproxy"]
ENTRYPOINT ["/confd"]
Pierre Ozoux's avatar
Pierre Ozoux committed
CMD ["-interval=60", "-node=172.17.42.1:4001", "-watch=true", "-verbose=true"]