Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
keycloak-proxy
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
Show more breadcrumbs
Janne Mareike Koschinski
keycloak-proxy
Commits
7d72ad98
Commit
7d72ad98
authored
9 years ago
by
Rohith
Committed by
GitHub
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
- adding a user in the docker file to ensure we dont run as root (#104)
- shifting the version to v1.2.1
parent
d7eb102c
Branches
Branches containing commit
Tags
v1.2.1
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+5
-1
5 additions, 1 deletion
Dockerfile
Makefile
+7
-1
7 additions, 1 deletion
Makefile
doc.go
+1
-1
1 addition, 1 deletion
doc.go
with
13 additions
and
3 deletions
Dockerfile
+
5
−
1
View file @
7d72ad98
...
@@ -2,7 +2,9 @@ FROM alpine:3.3
...
@@ -2,7 +2,9 @@ FROM alpine:3.3
MAINTAINER
Rohith <gambol99@gmail.com>
MAINTAINER
Rohith <gambol99@gmail.com>
RUN
apk update
&&
\
RUN
apk update
&&
\
apk add ca-certificates
apk add ca-certificates
&&
\
adduser
-S
proxy
&&
\
addgroup
-S
proxy
ADD
templates/ opt/templates
ADD
templates/ opt/templates
ADD
bin/keycloak-proxy /opt/keycloak-proxy
ADD
bin/keycloak-proxy /opt/keycloak-proxy
...
@@ -10,4 +12,6 @@ RUN chmod +x /opt/keycloak-proxy
...
@@ -10,4 +12,6 @@ RUN chmod +x /opt/keycloak-proxy
WORKDIR
"/opt"
WORKDIR
"/opt"
USER
proxy
ENTRYPOINT
[ "/opt/keycloak-proxy" ]
ENTRYPOINT
[ "/opt/keycloak-proxy" ]
This diff is collapsed.
Click to expand it.
Makefile
+
7
−
1
View file @
7d72ad98
NAME
=
keycloak-proxy
NAME
=
keycloak-proxy
AUTHOR
=
gambol99
AUTHOR
=
gambol99
AUTHOR_EMAIL
=
gambol99@gmail.com
AUTHOR_EMAIL
=
gambol99@gmail.com
...
@@ -41,6 +40,13 @@ docker-build:
...
@@ -41,6 +40,13 @@ docker-build:
${
SUDO
}
docker run
--rm
-v
${
ROOT_DIR
}
:/go/src/github.com/gambol99/keycloak-proxy
\
${
SUDO
}
docker run
--rm
-v
${
ROOT_DIR
}
:/go/src/github.com/gambol99/keycloak-proxy
\
-w
/go/src/github.com/gambol99/keycloak-proxy
-e
GOOS
=
linux golang:
${
GOVERSION
}
make static
-w
/go/src/github.com/gambol99/keycloak-proxy
-e
GOOS
=
linux golang:
${
GOVERSION
}
make static
docker-test
:
@
echo
"--> Running the docker test"
${
SUDO
}
docker run
--rm
-ti
-p
3000:3000
\
-v
${
ROOT_DIR
}
/config.yml:/etc/keycloak/config.yml:ro
\
-v
${
ROOT_DIR
}
/tests:/opt/tests:ro
\
${
REGISTRY
}
/
${
AUTHOR
}
/
${
NAME
}
:
${
VERSION
}
--config
/etc/keycloak/config.yml
docker
:
docker
:
@
echo
"--> Building the docker image"
@
echo
"--> Building the docker image"
${
SUDO
}
docker build
-t
${
REGISTRY
}
/
${
AUTHOR
}
/
${
NAME
}
:
${
VERSION
}
.
${
SUDO
}
docker build
-t
${
REGISTRY
}
/
${
AUTHOR
}
/
${
NAME
}
:
${
VERSION
}
.
...
...
This diff is collapsed.
Click to expand it.
doc.go
+
1
−
1
View file @
7d72ad98
...
@@ -21,7 +21,7 @@ import (
...
@@ -21,7 +21,7 @@ import (
)
)
var
(
var
(
release
=
"v1.2.
0
"
release
=
"v1.2.
1
"
gitsha
=
"no gitsha provided"
gitsha
=
"no gitsha provided"
version
=
release
+
" (git+sha: "
+
gitsha
+
")"
version
=
release
+
" (git+sha: "
+
gitsha
+
")"
)
)
...
...
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