This commit is contained in:
Cadey Ratio 2016-04-17 16:48:06 -07:00
parent 6d6283c014
commit dc14c10168
1 changed files with 18 additions and 0 deletions

18
devops/nomad/Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM alpine:edge
ENV CONSUL_VERSION v0.6.0
ENV NOMAD_VERSION v0.3.1
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk update; apk upgrade && \
apk add curl make git go gcc musl-dev openssl-dev && \
mkdir /go && \
export GOPATH=/go && \
go get -u -tags ${CONSUL_VERSION} github.com/hashicorp/consul && \
go get -u -tags ${NOMAD_VERSION} github.com/hashicorp/nomad && \
mv /go/bin/* /usr/local/bin && \
rm -rf /go && \
apk del make git go gcc musl-dev openssl-dev && \
rm -rf /var/cache/apk/*
CMD /usr/local/bin/nomad agent -dev