Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
portal-backend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HBP Medical Informatics Platform
portal-backend
Commits
e59e6388
Commit
e59e6388
authored
8 years ago
by
Ludovic Claude
Browse files
Options
Downloads
Patches
Plain Diff
Docker container: Optional authentication
parent
3c1b2a26
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/application.tmpl
+2
-0
2 additions, 0 deletions
config/application.tmpl
src/docker/run/Dockerfile
+2
-2
2 additions, 2 deletions
src/docker/run/Dockerfile
with
4 additions
and
2 deletions
config/application.tmpl
+
2
−
0
View file @
e59e6388
...
...
@@ -16,6 +16,7 @@ spring:
security:
enabled: false
{{ if (not .Env.AUTHENTICATION) or (eq .Env.AUTHENTICATION "1") }}
hbp:
client:
clientId: {{ default .Env.CLIENT_ID "996f97c5-a3ca-460e-b18b-00df3e2be89a" }}
...
...
@@ -27,6 +28,7 @@ hbp:
clientAuthenticationScheme: form
resource:
userInfoUri: {{ default .Env.USER_INFO_URI "https://services.humanbrainproject.eu/oidc/userinfo" }}
{{ end }}
logging:
level:
...
...
This diff is collapsed.
Click to expand it.
src/docker/run/Dockerfile
+
2
−
2
View file @
e59e6388
...
...
@@ -2,12 +2,12 @@ FROM java:openjdk-8u92-jdk-alpine
MAINTAINER
mirco.nasuti@chuv.ch
COPY
./target/portal-backend-DOCKER_BUILD.jar backend.jar
RUN
apk add
--update
ca-certificates wget
&&
rm
-rf
/var/cache/apk/
*
/tmp/
*
&&
update-ca-certificates
RUN
wget https://github.com/jwilder/dockerize/releases/download/v0.2.0/dockerize-linux-amd64-v0.2.0.tar.gz
RUN
tar
-C
/usr/local/bin
-xvzf
dockerize-linux-amd64-v0.2.0.tar.gz
COPY
./target/portal-backend-DOCKER_BUILD.jar backend.jar
CMD
mkdir /config
ADD
./config/application.tmpl /config/application.tmpl
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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