A Dockerfile for running Bitly's OAuth2 Proxy.
docker run -p <your port>:4180 -v <local conf path>:/conf --name oauth2-proxy govuk/govuk-oauth2-proxy-docker
<your port>can be any free port of your choice.<local conf path>should be the path to a directory that contains a file namedoauth2_proxy.cfgwith configuration directives
The upstream repository has more details on configuring the OAuth2 Proxy.
This process builds a new Docker image from the Dockerfile and pushes it to the Docker Registry for public use.
All commands are run inside the directory containing the Dockerfile.
docker login, providing the username and password of thegovukciDocker Hub user (credentials in the 2nd line password store)docker build .to build a Docker image from the Dockerfiledocker tag <image id> govuk/govuk-oauth2-proxy-docker, where<image id>is the ID of the Docker image built in step 2 (looks like932dc390031e)docker push govuk/govuk-oauth2-proxy-dockerto push the tagged Docker image to the Docker Registry