From efb209e5f34eaf23746f5b7b9182cae0e4b2a7f3 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Sat, 23 Jun 2018 17:14:05 -0400 Subject: [PATCH] add registry-auth Signed-off-by: Jess Frazelle --- latest-versions.sh | 1 + registry-auth/Dockerfile | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 registry-auth/Dockerfile diff --git a/latest-versions.sh b/latest-versions.sh index f970cc8..9f78476 100755 --- a/latest-versions.sh +++ b/latest-versions.sh @@ -112,6 +112,7 @@ bitly/oauth2_proxy Tautulli/Tautulli perkeep/perkeep powershell/powershell +cesanta/docker_auth ricochet-im/ricochet reverse-shell/routersploit rstudio/rstudio diff --git a/registry-auth/Dockerfile b/registry-auth/Dockerfile new file mode 100644 index 0000000..ca91837 --- /dev/null +++ b/registry-auth/Dockerfile @@ -0,0 +1,35 @@ +FROM python:2-alpine AS buildbase +LABEL maintainer "Jess Frazelle " + +RUN apk add --no-cache \ + bash \ + go \ + git \ + gcc \ + g++ \ + libc-dev \ + libgcc \ + make + +ENV PATH /go/bin:/usr/local/go/bin:$PATH +ENV GOPATH /go + +ENV DOCKER_AUTH_VERSION 1.3.1 + +RUN git clone --depth 1 --branch ${DOCKER_AUTH_VERSION} https://github.com/cesanta/docker_auth /go/src/github.com/cesanta/docker_auth + +WORKDIR /go/src/github.com/cesanta/docker_auth/auth_server + +RUN pip install GitPython +RUN make deps generate +RUN go build -o /usr/bin/auth_server --ldflags=--s + +FROM alpine:latest + +RUN apk --no-cache add \ + ca-certificates + +COPY --from=buildbase /usr/bin/auth_server /usr/bin/auth_server + +ENTRYPOINT [ "auth_server" ] +CMD [ "/config/auth_config.yml" ]