2018-06-14 21:30:04 +02:00
|
|
|
FROM jess/gcloud
|
2016-09-21 18:17:38 +02:00
|
|
|
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
ca-certificates \
|
2016-09-22 03:25:50 +02:00
|
|
|
bash \
|
2018-06-14 21:30:04 +02:00
|
|
|
parallel
|
2016-09-21 18:17:38 +02:00
|
|
|
|
|
|
|
# Install google cloud sdk
|
|
|
|
# Download clean-registry script
|
|
|
|
RUN set -x \
|
|
|
|
&& apk add --no-cache --virtual .build-deps \
|
|
|
|
curl \
|
2016-09-30 19:47:34 +02:00
|
|
|
&& curl -sSL -o /usr/bin/clean-registry https://raw.githubusercontent.com/jessfraz/dotfiles/master/bin/clean-registry \
|
2016-09-21 18:17:38 +02:00
|
|
|
&& chmod +x /usr/bin/clean-registry \
|
|
|
|
&& apk del .build-deps
|
|
|
|
|
|
|
|
WORKDIR /root
|
|
|
|
ENV GOPATH /go
|
|
|
|
|
|
|
|
# Install reg
|
|
|
|
RUN set -x \
|
|
|
|
&& apk add --no-cache --virtual .build-deps \
|
|
|
|
go \
|
|
|
|
git \
|
|
|
|
gcc \
|
|
|
|
libc-dev \
|
|
|
|
libgcc \
|
2018-03-12 01:14:22 +01:00
|
|
|
&& go get github.com/genuinetools/reg \
|
2016-09-21 18:17:38 +02:00
|
|
|
&& mv ${GOPATH}/bin/reg /usr/bin/reg \
|
|
|
|
&& apk del .build-deps \
|
|
|
|
&& rm -rf /go \
|
|
|
|
&& echo "Build complete."
|
|
|
|
|
|
|
|
ENTRYPOINT ["clean-registry"]
|