2017-09-08 20:07:54 +03:00
|
|
|
FROM ramitos/docker-compose-api:1.0.0
|
2017-06-21 21:51:28 +03:00
|
|
|
|
|
|
|
RUN apk add --update bash
|
|
|
|
|
2017-06-22 23:52:09 +03:00
|
|
|
RUN export CONSUL_VERSION=0.7.0 \
|
|
|
|
&& export CONSUL_CHECKSUM=b350591af10d7d23514ebaa0565638539900cdb3aaa048f077217c4c46653dd8 \
|
2017-06-21 21:51:28 +03:00
|
|
|
&& curl --retry 7 --fail -vo /tmp/consul.zip "https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip" \
|
|
|
|
&& echo "${CONSUL_CHECKSUM} /tmp/consul.zip" | sha256sum -c \
|
|
|
|
&& unzip /tmp/consul -d /usr/local/bin \
|
|
|
|
&& rm /tmp/consul.zip \
|
|
|
|
&& mkdir /config
|
|
|
|
|
2017-08-21 20:03:17 +03:00
|
|
|
# Install Containerpilot
|
|
|
|
ENV CONTAINERPILOT_VERSION 3.4.1
|
|
|
|
RUN export CONTAINERPILOT_CHECKSUM=4d13cfb345de86135ab2271b77516c6b6a7bed3a \
|
2017-06-21 21:51:28 +03:00
|
|
|
&& export archive=containerpilot-${CONTAINERPILOT_VERSION}.tar.gz \
|
|
|
|
&& curl -Lso /tmp/${archive} \
|
|
|
|
"https://github.com/joyent/containerpilot/releases/download/${CONTAINERPILOT_VERSION}/${archive}" \
|
|
|
|
&& echo "${CONTAINERPILOT_CHECKSUM} /tmp/${archive}" | sha1sum -c \
|
2017-08-21 20:03:17 +03:00
|
|
|
&& tar zxf /tmp/${archive} -C /bin \
|
2017-06-21 21:51:28 +03:00
|
|
|
&& rm /tmp/${archive}
|
|
|
|
|
|
|
|
# Add Containerpilot configuration
|
|
|
|
COPY etc/containerpilot.json /etc
|
|
|
|
ENV CONTAINERPILOT /etc/containerpilot.json
|
|
|
|
COPY bin /bin
|
|
|
|
|
|
|
|
ENTRYPOINT []
|
2017-08-21 20:03:17 +03:00
|
|
|
CMD ["containerpilot"]
|