Commit 39043ce5 authored by Thomas Urban's avatar Thomas Urban
Browse files

dropping use of separate start file

parent 24174c2e
......@@ -4,14 +4,8 @@ MAINTAINER Thomas Urban <>
ADD /tmp/
RUN cd /bin && unzip /tmp/ && chmod +x /bin/consul && rm /tmp/
ADD ./start /bin/start
EXPOSE 8300 8301 8301/udp 8302 8302/udp 8400 8500 53/udp
VOLUME /etc/consul /var/spool/consul
ENV SHELL /bin/bash
ENTRYPOINT ["/bin/start"]
CMD []
ENTRYPOINT ["/bin/consul", "agent", "-config-file", "/etc/consul/config"]
# convert listed server nodes into options for joining their cluster on start
JOINS="$(for IP in $(awk '$NF>0' </etc/consul/servers | xargs -- getent ahostsv4 | awk '{print $1}' | uniq); do echo "-retry-join=$IP"; done)"
consul agent -config-file /etc/consul/config -client="" $JOINS
consul agent -config-file /etc/consul/config
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment