fix these

This commit is contained in:
Cadey Ratio 2016-04-18 10:20:56 -07:00
parent 10b8b8bd9b
commit 1552e7e9cf
3 changed files with 6 additions and 15 deletions

View File

@ -2,19 +2,16 @@ FROM alpine:edge
ENV CONSUL_VERSION v0.6.4 ENV CONSUL_VERSION v0.6.4
ADD https://github.com/lalyos/docker-upx/releases/download/v3.91/upx /bin/upx
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \ RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk update; apk upgrade && \ apk update; apk upgrade && \
apk add curl make git go gcc musl-dev openssl-dev && \ apk add curl make git go gcc musl-dev openssl-dev && \
mkdir /go && \ mkdir /go && \
export GOPATH=/go && \ export GOPATH=/go && \
go get -u -tags ${CONSUL_VERSION} -ldflags -s github.com/hashicorp/consul && \ go get -u -tags ${CONSUL_VERSION} github.com/hashicorp/consul && \
echo "consul built" && \ echo "consul built" && \
chmod +x /bin/upx && for file in /go/bin/* ; do upx -6 $file ; done && \
mv /go/bin/* /usr/local/bin && \ mv /go/bin/* /usr/local/bin && \
rm -rf /go && \ rm -rf /go && \
apk del curl make git go gcc musl-dev openssl-dev && \ apk del make git go gcc musl-dev openssl-dev && \
rm -rf /var/cache/apk/* rm -rf /var/cache/apk/*
CMD /usr/local/bin/consul CMD /usr/local/bin/consul

View File

@ -2,19 +2,16 @@ FROM alpine:edge
ENV NOMAD_VERSION v0.3.1 ENV NOMAD_VERSION v0.3.1
ADD https://github.com/lalyos/docker-upx/releases/download/v3.91/upx /bin/upx
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \ RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk update; apk upgrade && \ apk update; apk upgrade && \
apk add curl make git go gcc musl-dev openssl-dev && \ apk add curl make git go gcc musl-dev openssl-dev && \
mkdir /go && \ mkdir /go && \
export GOPATH=/go && \ export GOPATH=/go && \
go get -u -tags ${NOMAD_VERSION} -ldflags -s github.com/hashicorp/nomad && \ go get -u -tags ${NOMAD_VERSION} github.com/hashicorp/nomad && \
echo "nomad built" && \ echo "nomad built" && \
chmod +x /bin/upx && for file in /go/bin/* ; do upx -6 $file ; done && \
mv /go/bin/* /usr/local/bin && \ mv /go/bin/* /usr/local/bin && \
rm -rf /go && \ rm -rf /go && \
apk del curl make git go gcc musl-dev openssl-dev && \ apk del make git go gcc musl-dev openssl-dev && \
rm -rf /var/cache/apk/* rm -rf /var/cache/apk/*
CMD /usr/local/bin/nomad CMD /usr/local/bin/nomad

View File

@ -2,19 +2,16 @@ FROM alpine:edge
ENV SERF_VERSION v0.7.0 ENV SERF_VERSION v0.7.0
ADD https://github.com/lalyos/docker-upx/releases/download/v3.91/upx /bin/upx
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \ RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk update; apk upgrade && \ apk update; apk upgrade && \
apk add curl make git go gcc musl-dev openssl-dev && \ apk add curl make git go gcc musl-dev openssl-dev && \
mkdir /go && \ mkdir /go && \
export GOPATH=/go && \ export GOPATH=/go && \
go get -u -tags ${SERF_VERSION} -ldflags -s github.com/hashicorp/serf && \ go get -u -tags ${SERF_VERSION} github.com/hashicorp/serf && \
echo "serf built" && \ echo "serf built" && \
chmod +x /bin/upx && for file in /go/bin/* ; do upx -6 $file ; done && \
mv /go/bin/* /usr/local/bin && \ mv /go/bin/* /usr/local/bin && \
rm -rf /go && \ rm -rf /go && \
apk del curl make git go gcc musl-dev openssl-dev && \ apk del make git go gcc musl-dev openssl-dev && \
rm -rf /var/cache/apk/* rm -rf /var/cache/apk/*
CMD /usr/local/bin/serf CMD /usr/local/bin/serf