Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
088e0405
Unverified
Commit
088e0405
authored
2 years ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Added healthcheck
parent
e54ac904
No related branches found
No related tags found
2 merge requests
!163
Relase 1.3.0
,
!155
Added readme to authentication service and added eureka service
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
fda-authentication-service/Dockerfile
+8
-2
8 additions, 2 deletions
fda-authentication-service/Dockerfile
fda-authentication-service/healthcheck.sh
+5
-0
5 additions, 0 deletions
fda-authentication-service/healthcheck.sh
fda-ui/layouts/default.vue
+2
-3
2 additions, 3 deletions
fda-ui/layouts/default.vue
with
15 additions
and
5 deletions
fda-authentication-service/Dockerfile
+
8
−
2
View file @
088e0405
...
...
@@ -29,8 +29,12 @@ COPY --from=binary /usr/bin/curl /usr/bin/curl
USER
root
COPY
./dbrepo-realm.json /opt/keycloak/data/import/dbrepo-realm.json
COPY
./service-register.sh /app/service-register.sh
COPY
./docker-entrypoint.sh /app/docker-entrypoint.sh
WORKDIR
/app
COPY
./service-register.sh ./service-register.sh
COPY
./docker-entrypoint.sh ./docker-entrypoint.sh
COPY
./healthcheck.sh ./healthcheck.sh
ENV
METADATA_USERNAME=root
ENV
METADATA_PASSWORD=dbrepo
...
...
@@ -45,4 +49,6 @@ ENV KEYCLOAK_IMPORT=/opt/keycloak/data/import/dbrepo-realm.json
ENV
KEYCLOAK_ADMIN=keycloak
ENV
KEYCLOAK_ADMIN_PASSWORD=keycloak
HEALTHCHECK
--interval=10s --timeout=5s --retries=12 CMD ["bash", "/app/healthcheck.sh"]
ENTRYPOINT
["bash", "/app/docker-entrypoint.sh"]
This diff is collapsed.
Click to expand it.
fda-authentication-service/healthcheck.sh
0 → 100755
+
5
−
0
View file @
088e0405
#!/bin/bash
HTTP_CODE
=
$(
curl
--silent
--output
/dev/stderr
--write-out
"%{http_code}"
'http://0.0.0.0:8080/realms/dbrepo'
)
if
test
$HTTP_CODE
-ne
200
;
then
exit
1
fi
\ No newline at end of file
This diff is collapsed.
Click to expand it.
fda-ui/layouts/default.vue
+
2
−
3
View file @
088e0405
...
...
@@ -123,7 +123,6 @@
<
script
>
import
{
isDeveloper
}
from
'
@/utils
'
export
default
{
name
:
'
DefaultLayout
'
,
data
()
{
...
...
@@ -250,7 +249,7 @@ export default {
}
try
{
this
.
loadingUser
=
true
const
res
=
await
this
.
$axios
.
pu
t
(
'
/api/auth
'
,
{},
this
.
c
onfig
)
const
res
=
await
this
.
$axios
.
ge
t
(
'
/api/auth
/realms/dbrepo/protocol/openid-connect/userinfo
'
,
this
.
keycloakC
onfig
)
this
.
$store
.
commit
(
'
SET_USER
'
,
res
.
data
)
console
.
debug
(
'
user information
'
,
this
.
user
)
this
.
$vuetify
.
theme
.
dark
=
this
.
user
.
theme_dark
...
...
@@ -315,7 +314,7 @@ export default {
}
try
{
this
.
loading
=
true
const
res
=
await
this
.
$axios
.
get
(
`/api/container/
${
this
.
$route
.
params
.
container_id
}
/database/
${
this
.
$route
.
params
.
database_id
}
/access`
,
this
.
silentC
onfig
)
const
res
=
await
this
.
$axios
.
get
(
`/api/container/
${
this
.
$route
.
params
.
container_id
}
/database/
${
this
.
$route
.
params
.
database_id
}
/access`
,
this
.
c
onfig
)
this
.
access
=
res
.
data
this
.
$store
.
commit
(
'
SET_ACCESS
'
,
res
.
data
)
console
.
debug
(
'
access
'
,
this
.
access
)
...
...
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