mirror of
https://github.com/yldio/copilot.git
synced 2024-12-01 07:30:07 +02:00
32 lines
1.2 KiB
Docker
32 lines
1.2 KiB
Docker
FROM quay.io/yldio/docker-compose-api
|
|
|
|
RUN apk add --update bash
|
|
|
|
RUN export CONSUL_VERSION=0.7.0 \
|
|
&& export CONSUL_CHECKSUM=b350591af10d7d23514ebaa0565638539900cdb3aaa048f077217c4c46653dd8 \
|
|
&& 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
|
|
|
|
# Add Containerpilot and set its configuration
|
|
ENV CONTAINERPILOT_VERSION 3.1.0
|
|
ENV CONTAINERPILOT /etc/containerpilot.json
|
|
|
|
RUN export CONTAINERPILOT_CHECKSUM=d06e289e6e0ca82156d77cea36ff0f0246fcca60 \
|
|
&& 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 \
|
|
&& tar zxf /tmp/${archive} -C /usr/local/bin \
|
|
&& rm /tmp/${archive}
|
|
|
|
# Add Containerpilot configuration
|
|
COPY etc/containerpilot.json /etc
|
|
ENV CONTAINERPILOT /etc/containerpilot.json
|
|
COPY bin /bin
|
|
|
|
ENTRYPOINT []
|
|
CMD ["/usr/local/bin/containerpilot"]
|