add registry-auth

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-06-23 17:14:05 -04:00
parent fc256f21c9
commit efb209e5f3
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
2 changed files with 36 additions and 0 deletions

View File

@ -112,6 +112,7 @@ bitly/oauth2_proxy
Tautulli/Tautulli Tautulli/Tautulli
perkeep/perkeep perkeep/perkeep
powershell/powershell powershell/powershell
cesanta/docker_auth
ricochet-im/ricochet ricochet-im/ricochet
reverse-shell/routersploit reverse-shell/routersploit
rstudio/rstudio rstudio/rstudio

35
registry-auth/Dockerfile Normal file
View File

@ -0,0 +1,35 @@
FROM python:2-alpine AS buildbase
LABEL maintainer "Jess Frazelle <jess@linux.com>"
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" ]