2018-10-16 23:58:43 +01:00
|
|
|
FROM golang:1.11-alpine
|
2016-11-03 21:13:18 +00:00
|
|
|
|
|
|
|
RUN apk add --update \
|
|
|
|
git \
|
2017-01-18 18:59:59 +00:00
|
|
|
make \
|
|
|
|
bash \
|
2017-12-20 11:16:34 +00:00
|
|
|
patch \
|
2018-03-01 14:51:40 +00:00
|
|
|
rsync \
|
2016-11-03 21:13:18 +00:00
|
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
|
2017-01-18 18:59:59 +00:00
|
|
|
ENV CGO_ENABLED=0
|
2016-11-03 21:13:18 +00:00
|
|
|
|
2018-06-25 18:22:15 +01:00
|
|
|
RUN git clone https://github.com/henrydcase/crypto-tls-bogo-shim \
|
|
|
|
/go/src/github.com/henrydcase/crypto-tls-bogo-shim
|
2017-11-27 16:51:15 +00:00
|
|
|
|
|
|
|
# Draft 18 with client-tests branch
|
2017-11-14 15:43:14 +00:00
|
|
|
#ARG REVISION=3f5e87d6a1931b6f6930e4eadb7b2d0b2aa7c588
|
|
|
|
|
|
|
|
# Draft 22 with draft22 branch
|
|
|
|
#ARG REVISION=81cc32b846c9fe2ea32613287e57a6a0db7bbb9a
|
|
|
|
|
|
|
|
# Draft 22 with draft22-client branch (client-tests + draft22)
|
2018-06-25 18:22:15 +01:00
|
|
|
# ARG REVISION=f9729b5e4eafb1f1d313949388c3c2b167e84734
|
2017-11-27 16:51:15 +00:00
|
|
|
|
2018-06-25 18:22:15 +01:00
|
|
|
# Draft 23
|
2018-06-26 18:14:37 +01:00
|
|
|
#ARG REVISION=d07b9e80a87c871c2569ce4aabd06695336c5dc5
|
|
|
|
|
|
|
|
# Draft 23 (+ client authentication)
|
2018-08-09 20:47:50 +01:00
|
|
|
# ARG REVISION=cd33ad248ae9490854f0077ca046b47cac3735bf
|
|
|
|
|
|
|
|
# Draft 28
|
|
|
|
ARG REVISION=33204d1eaa497819c6325998d7ba6b66316790f3
|
2018-06-25 18:22:15 +01:00
|
|
|
|
|
|
|
RUN cd /go/src/github.com/henrydcase/crypto-tls-bogo-shim && \
|
2017-11-27 16:51:15 +00:00
|
|
|
git checkout $REVISION
|
|
|
|
|
2018-06-25 18:22:15 +01:00
|
|
|
WORKDIR /go/src/github.com/henrydcase/crypto-tls-bogo-shim
|
2017-01-18 18:59:59 +00:00
|
|
|
CMD ["make", "run"]
|