Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MetaGer Keymanager
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
open-source
MetaGer Keymanager
Commits
4e159d64
Commit
4e159d64
authored
2 years ago
by
Dominik Hebeler
Browse files
Options
Downloads
Patches
Plain Diff
fixed probes and NODE_ENV
parent
27fb274f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#7232
passed
2 years ago
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
build/pass/Dockerfile
+5
-0
5 additions, 0 deletions
build/pass/Dockerfile
chart/templates/deployment.yaml
+2
-2
2 additions, 2 deletions
chart/templates/deployment.yaml
docker-compose.yml
+0
-3
0 additions, 3 deletions
docker-compose.yml
pass/app.js
+7
-0
7 additions, 0 deletions
pass/app.js
with
14 additions
and
5 deletions
build/pass/Dockerfile
+
5
−
0
View file @
4e159d64
FROM
node:19-bullseye
as
development
ENV
NODE_ENV development
RUN
mkdir
/data
&&
chown
1000:1000 /data
VOLUME
["/data"]
...
...
@@ -10,6 +12,9 @@ CMD [ "bash", "-c", "npm i && npm run dev"]
FROM
development
as
production
ENV
TZ Europe/Berlin
ENV
NODE_ENV production
ADD
pass /app
CMD
["npm", "start"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
chart/templates/deployment.yaml
+
2
−
2
View file @
4e159d64
...
...
@@ -56,11 +56,11 @@ spec:
protocol
:
TCP
livenessProbe
:
httpGet
:
path
:
/
path
:
/
healthz
port
:
http
readinessProbe
:
httpGet
:
path
:
/
path
:
/
healthz
port
:
http
resources
:
{{
- toYaml .Values.resources | nindent 12
}}
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
0
−
3
View file @
4e159d64
...
...
@@ -20,9 +20,6 @@ services:
target
:
development
networks
:
-
metager
environment
:
-
NODE_ENV=development
-
TZ=Europe/Berlin
working_dir
:
/app
volumes
:
-
./pass:/app
...
...
This diff is collapsed.
Click to expand it.
pass/app.js
+
7
−
0
View file @
4e159d64
...
...
@@ -27,6 +27,13 @@ app.use(express.json());
app
.
use
(
express
.
urlencoded
({
extended
:
false
,
limit
:
"
1mb
"
}));
app
.
use
(
cookieParser
());
// Healthcheck URL
app
.
get
(
"
/healthz
"
,
(
req
,
res
)
=>
{
res
.
status
(
200
);
res
.
header
({
"
Content-Type
"
:
"
application/json
"
})
res
.
send
(
JSON
.
stringify
({
"
status
"
:
"
OK
"
}));
})
app
.
use
((
req
,
res
,
next
)
=>
{
res
.
locals
.
baseDir
=
""
;
let
subPath
=
req
.
url
.
match
(
/^
((\/
.*
)?\/
keys
)
/
);
...
...
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