Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
oauth2_proxy_docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Janne Mareike Koschinski
oauth2_proxy_docker
Commits
8ccd7155
Commit
8ccd7155
authored
7 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Initial commit
parents
No related branches found
Tags
v3-alpha-1
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+12
-0
12 additions, 0 deletions
Dockerfile
build.sh
+10
-0
10 additions, 0 deletions
build.sh
git-describe-remote.sh
+21
-0
21 additions, 0 deletions
git-describe-remote.sh
with
43 additions
and
0 deletions
Dockerfile
0 → 100644
+
12
−
0
View file @
8ccd7155
FROM
golang:1.9.2
as
builder
RUN
CGO_ENABLED
=
0 go get
-d
-v
github.com/bitly/oauth2_proxy
RUN
CGO_ENABLED
=
0 go
install
-v
github.com/bitly/oauth2_proxy
FROM
alpine
RUN
apk
--no-cache
add ca-certificates
COPY
--from=builder /go/bin/oauth2_proxy /
EXPOSE
8080 4180
ENTRYPOINT
[ "/oauth2_proxy" ]
CMD
[ "-upstream=http://0.0.0.0:8080/", "-http-address=0.0.0.0:4180" ]
This diff is collapsed.
Click to expand it.
build.sh
0 → 100755
+
10
−
0
View file @
8ccd7155
#!/bin/sh
IMAGE
=
k8r.eu/justjanne/oauth2_proxy_docker
REPO
=
https://github.com/bitly/oauth2_proxy
TAGS
=
$(
./git-describe-remote.sh
$REPO
)
docker build
-t
$IMAGE
:
$TAGS
.
docker tag
$IMAGE
:
$TAGS
$IMAGE
:latest
echo
Successfully tagged
$IMAGE
:latest
docker push
$IMAGE
:
$TAGS
docker push
$IMAGE
:latest
This diff is collapsed.
Click to expand it.
git-describe-remote.sh
0 → 100755
+
21
−
0
View file @
8ccd7155
#/bin/sh
FOLDER
=
/tmp/
$(
uuidgen
)
REPO
=
$1
# Cleanup
rm
-rf
$FOLDER
mkdir
$FOLDER
cd
$FOLDER
# Init repo
git init
>
/dev/null 2>&1
git remote add origin
$REPO
>
/dev/null 2>&1
git fetch
--dry-run
>
/dev/null 2>&1
git fetch
--tags
>
/dev/null 2>&1
# Actually describe the tags
git describe
--tags
origin/master
# Cleanup
rm
-rf
$FOLDER
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment