Skip to content

Commit

Permalink
images: add a basic oauth2_proxy image
Browse files Browse the repository at this point in the history
The offical PR is a ghost town, so..

bitly/oauth2_proxy#372
  • Loading branch information
adamdecaf committed Sep 19, 2018
1 parent 7de23e6 commit 1df7393
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions images/oauth2_proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM alpine:latest as builder
RUN apk add -U ca-certificates wget
RUN wget -O oauth2_proxy.tar.gz https://github.com/bitly/oauth2_proxy/releases/download/v2.2/oauth2_proxy-2.2.0.linux-amd64.go1.8.1.tar.gz
RUN tar xf oauth2_proxy.tar.gz

FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /oauth2_proxy-*/oauth2_proxy /bin/oauth2_proxy
ENTRYPOINT ["/bin/oauth2_proxy"]
10 changes: 10 additions & 0 deletions images/oauth2_proxy/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
VERSION := v2.2

.PHONY: docker release

docker:
docker build -t moov/oauth2_proxy:$(VERSION) .
docker tag moov/oauth2_proxy:$(VERSION) moov/oauth2_proxy:latest

release:
docker push moov/oauth2_proxy:$(VERSION)

0 comments on commit 1df7393

Please sign in to comment.