Commit 24174c2e authored by Thomas Urban's avatar Thomas Urban
Browse files

removing dependency on bash

parent 24ef88f0
......@@ -2,7 +2,7 @@ FROM busybox
MAINTAINER Thomas Urban <thomas.urban@cepharum.de>
ADD https://releases.hashicorp.com/consul/0.6.3/consul_0.6.3_linux_amd64.zip /tmp/consul.zip
RUN cd /bin && unzip /tmp/consul.zip && chmod +x /bin/consul && rm /tmp/consul.zip && opkg-install bash
RUN cd /bin && unzip /tmp/consul.zip && chmod +x /bin/consul && rm /tmp/consul.zip
ADD ./start /bin/start
......
#!/bin/bash
#!/bin/sh
# 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)"
......
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