Skip to content

Commit

Permalink
Use the latest spruce 1.1.2 from release
Browse files Browse the repository at this point in the history
We have been using the version 0.13.0 of spruce, but compiling it
in the Dockerfile because the release binary version did link to
the debian/ubuntu libc. We were not pinning the git commit of the
spruce code.

But the upstream project has some changes that makes fail the build,
probably new dependencies added which require the use of godep.

As since geofffranks/spruce#83 the binary
in the releases is OK and can work in a plain alpine, we can create
a container pulling the binary release. This will simplify our
container, make it smaller and pin the version number.
  • Loading branch information
keymon committed Mar 8, 2016
1 parent 43a8783 commit fee5a43
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spruce/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang:1.5.1-alpine
FROM alpine:3.3

ENV SPRUCE_VERSION 0.13.0
ENV SPRUCE_VERSION 1.1.2

RUN apk add --update git \
&& go get -d github.com/geofffranks/spruce \
&& cd ${GOPATH}/src/github.com/geofffranks/spruce \
&& git checkout v${SPRUCE_VERSION} \
&& go install \
&& apk del git \
ENV PACKAGES "curl openssl ca-certificates"

RUN apk add --update $PACKAGES \
&& curl -f -L https://github.com/geofffranks/spruce/releases/download/v$SPRUCE_VERSION/spruce-linux-amd64 > /usr/local/bin/spruce \
&& chmod +x /usr/local/bin/spruce \
&& apk del $PACKAGES \
&& rm -rf /var/cache/apk/*

0 comments on commit fee5a43

Please sign in to comment.