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
fd235f63
Commit
fd235f63
authored
5 years ago
by
jerrypan
Committed by
Manuel Spuhler
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
merging with cleanup
parent
d8e83c01
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build.sh
+2
-2
2 additions, 2 deletions
build.sh
docker/config/application.tmpl
+1
-0
1 addition, 0 deletions
docker/config/application.tmpl
src/main/java/eu/hbp/mip/controllers/RequestsApi.java
+8
-4
8 additions, 4 deletions
src/main/java/eu/hbp/mip/controllers/RequestsApi.java
with
11 additions
and
6 deletions
build.sh
+
2
−
2
View file @
fd235f63
...
...
@@ -35,10 +35,10 @@ docker build --build-arg BUILD_DATE=$(date -Iseconds) \
--build-arg
VERSION
=
$VERSION
\
--tag
"
$IMAGE
:latest"
\
--tag
"
$IMAGE
:
$VERSION
"
\
--tag
kkech
/portal_backend:latest
\
--tag
jerrypan44
/portal_backend:latest
\
.
docker push
kkech
/portal_backend:latest
docker push
jerrypan44
/portal_backend:latest
BUGSNAG_KEY
=
""
eval
$(
grep
-e
"^
\\
s*BUGSNAG_KEY"
Dockerfile |
tr
'\\'
' '
)
...
...
This diff is collapsed.
Click to expand it.
docker/config/application.tmpl
+
1
−
0
View file @
fd235f63
...
...
@@ -92,6 +92,7 @@ services:
algorithmsUrl: {{ default .Env.EXAREME_URL "http://localhost:9090" }}/mining/algorithms.json
workflows:
workflowUrl: {{ default .Env.WORKFLOW_URL "http://localhost:9090" }}
jwtSecret: {{ default .Env.JWT_SECRET "secret" }}
workflowAuthorization: {{ default .Env.WORKFLOW_AUTHORIZATION "undefined" }}
galaxy:
galaxyUsername: {{ default .Env.GALAXY_USERNAME admin }}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/eu/hbp/mip/controllers/RequestsApi.java
+
8
−
4
View file @
fd235f63
...
...
@@ -17,6 +17,7 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -121,6 +122,12 @@ public class RequestsApi {
return
prefix
+
memId
;
}
@Value
(
"#{'${services.galaxy.galaxyUsername:admin}'}"
)
private
boolean
galaxyUsername
;
@Value
(
"#{'${services.galaxy.galaxyPassword:admin}'}"
)
private
boolean
galaxyPassword
;
/**
* Get Galaxy Reverse Proxy basic access token.
*
...
...
@@ -129,10 +136,7 @@ public class RequestsApi {
@RequestMapping
(
method
=
RequestMethod
.
GET
,
produces
=
"application/json"
)
@ResponseStatus
(
value
=
HttpStatus
.
OK
)
public
ResponseEntity
getGalaxyBasicAccessToken
(){
String
username
=
"admin"
;
String
password
=
"admin"
;
String
stringEncoded
=
Base64
.
getEncoder
().
encodeToString
((
username
+
":"
+
password
).
getBytes
());
String
stringEncoded
=
Base64
.
getEncoder
().
encodeToString
((
galaxyUsername
+
":"
+
galaxyPassword
).
getBytes
());
return
ResponseEntity
.
ok
(
new
StringDtoResponse
(
stringEncoded
));
}
...
...
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