File tree Expand file tree Collapse file tree 3 files changed +74
-2
lines changed Expand file tree Collapse file tree 3 files changed +74
-2
lines changed Original file line number Diff line number Diff line change
1
+ FROM alpine:3.4
2
+
3
+ ENV BUILD_PKGS="ca-certificates wget"
4
+
5
+ ENV OAUTH2_PROXY_VERSION="2.1"
6
+ ENV OAUTH2_PROXY_PKG="oauth2_proxy-${OAUTH2_PROXY_VERSION}.linux-amd64.go1.6"
7
+ RUN apk update && \
8
+ apk upgrade && \
9
+ apk add $BUILD_PKGS && \
10
+ mkdir -p /var/tmp/oauth2_proxy && \
11
+ cd /var/tmp/oauth2_proxy && \
12
+ wget --progress=dot:mega https://github.com/bitly/oauth2_proxy/releases/download/v${OAUTH2_PROXY_VERSION}/${OAUTH2_PROXY_PKG}.tar.gz && \
13
+ tar xvf ${OAUTH2_PROXY_PKG}.tar.gz && \
14
+ cp /var/tmp/oauth2_proxy/${OAUTH2_PROXY_PKG}/oauth2_proxy /bin/ && \
15
+ apk del $BUILD_PKGS && \
16
+ rm -rf /var/cache/apk/*
17
+
18
+ EXPOSE 4180
19
+
20
+ ENTRYPOINT ["oauth2_proxy" ]
Original file line number Diff line number Diff line change 1
- # docker-oauth2-proxy
2
- Docker image for oauth2_proxy, a reverse proxy that provides authentication with Google, Github or other providers
1
+ # Docker OAuth2 Proxy
2
+
3
+ [ ![ CircleCI] ( https://circleci.com/gh/Intellection/docker-oauth2-proxy/tree/master.svg?style=shield )] ( https://circleci.com/gh/Intellection/docker-oauth2-proxy/tree/master )
4
+
5
+ This is a small docker image for ` oauth2_proxy ` which is a reverse proxy
6
+ that provides authentication with Google, GitHub or other providers.
7
+
8
+ ## Configuration
9
+
10
+ Configure OAuth2 Proxy using config file, command line options, or
11
+ environment variables. See [ ` bitly/oauth2_proxy ` documentation] [ 1 ] for
12
+ more details.
13
+
14
+ ## Usage
15
+
16
+ Run without parameters or any configuration:
17
+
18
+ # Will error out because of no configuration
19
+ $ docker run zappi/oauth2_proxy
20
+ 2016/09/16 10:19:26 main.go:99: Invalid configuration:
21
+ missing setting: upstream
22
+ missing setting: cookie-secret
23
+ missing setting: client-id
24
+ missing setting: client-secret
25
+ missing setting for email validation: email-domain or authenticated-emails-file required.
26
+ use email-domain=* to authorize all email addresses
27
+
28
+ Check version:
29
+
30
+ $ docker run zappi/oauth2_proxy --version
31
+
32
+ [ 1 ] : https://github.com/bitly/oauth2_proxy
Original file line number Diff line number Diff line change
1
+ ---
2
+ machine :
3
+ pre :
4
+ - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
5
+ environment :
6
+ IMAGE_NAME : ' zappi/oauth2_proxy'
7
+ services :
8
+ - docker
9
+
10
+ test :
11
+ pre :
12
+ - docker build --tag=$IMAGE_NAME .
13
+ override :
14
+ - docker run $IMAGE_NAME --version
15
+
16
+ deployment :
17
+ tagged :
18
+ tag : /.*/
19
+ commands :
20
+ - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
21
+ - docker tag $IMAGE_NAME $IMAGE_NAME:$CIRCLE_TAG
22
+ - docker push $IMAGE_NAME:$CIRCLE_TAG
You can’t perform that action at this time.
0 commit comments