add kit service for workflows

This commit is contained in:
Victor Vrantchan
2016-05-03 15:54:27 -04:00
parent 821f702f05
commit 4dfd04fd8d
11 changed files with 421 additions and 29 deletions

View File

@@ -1,9 +1,10 @@
FROM golang:alpine
ENV GO15VENDOREXPERIMENT=1
ENV GLIDE='https://github.com/Masterminds/glide/releases/download/0.10.2/glide-0.10.2-linux-amd64.tar.gz'
RUN apk --no-cache add curl git && \
curl -L https://github.com/Masterminds/glide/releases/download/0.9.1/glide-0.9.1-linux-amd64.tar.gz -o glide.tar.gz && \
curl -L "${GLIDE}" -o glide.tar.gz && \
tar xzf glide.tar.gz -C /tmp && \
mv /tmp/linux-amd64/glide /usr/bin/ && \
rm -f glide.tar.gz && \
@@ -14,7 +15,7 @@ RUN mkdir -p /go/src/github.com/micromdm/micromdm/
WORKDIR /go/src/github.com/micromdm/micromdm/
COPY . /go/src/github.com/micromdm/micromdm/
RUN glide install
RUN go build && mv micromdm /
#RUN glide install
RUN GOGC=500 go build && mv micromdm /
CMD ["/micromdm"]