mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
add cfssl
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
abdb32aee6
commit
00a12f0382
37
cfssl/Dockerfile
Normal file
37
cfssl/Dockerfile
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
FROM golang:alpine AS builder
|
||||||
|
|
||||||
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||||
|
ENV GOPATH /go
|
||||||
|
|
||||||
|
RUN apk --no-cache add \
|
||||||
|
gcc \
|
||||||
|
git \
|
||||||
|
libc-dev
|
||||||
|
|
||||||
|
|
||||||
|
ENV CFSSL_VERSION 1.3.2
|
||||||
|
|
||||||
|
RUN git clone --depth 1 --branch "$CFSSL_VERSION" https://github.com/cloudflare/cfssl.git /go/src/github.com/cloudflare/cfssl
|
||||||
|
|
||||||
|
RUN set -x && \
|
||||||
|
go get github.com/cloudflare/cfssl_trust/... && \
|
||||||
|
go get github.com/GeertJohan/go.rice/rice && \
|
||||||
|
cd /go/src/github.com/cloudflare/cfssl && rice embed-go -i=./cli/serve && \
|
||||||
|
mkdir bin && cd bin && \
|
||||||
|
go build ../cmd/cfssl && \
|
||||||
|
go build ../cmd/cfssljson && \
|
||||||
|
go build ../cmd/mkbundle && \
|
||||||
|
go build ../cmd/multirootca && \
|
||||||
|
echo "Build complete."
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
COPY --from=builder /go/src/github.com/cloudflare/cfssl_trust /etc/cfssl
|
||||||
|
COPY --from=builder /go/src/github.com/cloudflare/cfssl/bin/ /usr/bin
|
||||||
|
|
||||||
|
WORKDIR /etc/cfssl
|
||||||
|
|
||||||
|
EXPOSE 8888
|
||||||
|
|
||||||
|
ENTRYPOINT ["cfssl"]
|
||||||
|
CMD ["--help"]
|
|
@ -103,6 +103,7 @@ noelbundick/azure-cli-extension-noelbundick
|
||||||
iovisor/bcc
|
iovisor/bcc
|
||||||
browsh-org/browsh
|
browsh-org/browsh
|
||||||
certbot/certbot
|
certbot/certbot
|
||||||
|
cloudflare/cfssl
|
||||||
hashicorp/consul
|
hashicorp/consul
|
||||||
coredns/coredns
|
coredns/coredns
|
||||||
CouchPotato/CouchPotatoServer
|
CouchPotato/CouchPotatoServer
|
||||||
|
|
Loading…
Reference in New Issue
Block a user