forked from moov-io/infra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
images: add a basic oauth2_proxy image
The offical PR is a ghost town, so.. bitly/oauth2_proxy#372
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |