Created
January 5, 2017 00:36
-
-
Save simonmorley/96170e2ab93f0777dfdea2feff007742 to your computer and use it in GitHub Desktop.
dkron dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
MAINTAINER Simon Morley | |
ENV DKRON_VERSION 0.9.2 | |
RUN set -x \ | |
&& apk update \ | |
&& buildDeps='bash ca-certificates openssl wget curl' \ | |
&& apk add --update $buildDeps \ | |
&& rm -rf /var/cache/apk/* \ | |
&& mkdir -p /opt/local/dkron \ | |
&& wget --no-check-certificate -O dkron.tar.gz https://github.com/victorcoder/dkron/releases/download/v${DKRON_VERSION}/dkron_${DKRON_VERSION}_linux_amd64.tar.gz \ | |
&& tar -xzf dkron.tar.gz \ | |
&& mv dkron_${DKRON_VERSION}_linux_amd64/* /opt/local/dkron \ | |
&& rm dkron.tar.gz \ | |
&& rm -rf dkron_${DKRON_VERSION}_linux_amd64 | |
ADD dkron.json /opt/local/dkron/config/dkron.json | |
ENV SHELL /bin/bash | |
WORKDIR /opt/local/dkron | |
ENTRYPOINT \ | |
/opt/local/dkron/dkron agent \ | |
-server \ | |
-backend-machine=$ETCD_HOST:$ETCD_PORT \ | |
-ui-dir=/opt/local/dkron | |
CMD ["--help"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment