Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
7acb52cf
Commit
7acb52cf
authored
Feb 08, 2021
by
Markus Scheidgen
Browse files
Merge branch 'new-dev-cluster' into 'v0.10.0'
Adapted ci for new dev cluster. See merge request
!257
parents
e16e1a25
2554b2e3
Pipeline
#93052
passed with stages
in 43 minutes and 20 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
7acb52cf
...
...
@@ -162,9 +162,9 @@ deploy dev:
script
:
-
RELEASE_NAME=`echo ${CI_COMMIT_REF_NAME} | sed -e 's/[^A-Za-z0-9\-]/-/g'`
-
helm dependency update ops/helm/nomad
-
helm upgrade --namespace nomad --install $RELEASE_NAME ops/helm/nomad -f ops/helm/nomad/deployments/dev-values.yaml --set proxy.external.path=/dev/
nomad
/$RELEASE_NAME,image.tag=$CI_COMMIT_REF_NAME,roll=true --wait
-
helm upgrade --namespace nomad --install $RELEASE_NAME ops/helm/nomad -f ops/helm/nomad/deployments/dev-values.yaml --set proxy.external.path=/dev/
rae
/$RELEASE_NAME,image.tag=$CI_COMMIT_REF_NAME,roll=true --wait
-
docker pull $TEST_IMAGE
-
docker run -t -e NOMAD_KEYCLOAK_REALM_NAME=fairdi_nomad_prod $TEST_IMAGE python -m nomad.cli client -n https://nomad-lab.eu/dev/
nomad
/$RELEASE_NAME/api -u test -w $CI_NOMAD_TEST_PASSWORD integrationtests --skip-publish --skip-doi
-
docker run -t -e NOMAD_KEYCLOAK_REALM_NAME=fairdi_nomad_prod $TEST_IMAGE python -m nomad.cli client -n https://nomad-lab.eu/dev/
rae
/$RELEASE_NAME/api -u test -w $CI_NOMAD_TEST_PASSWORD integrationtests --skip-publish --skip-doi
except
:
-
/^dev-.*$/
when
:
manual
...
...
nomad/utils/structlogging.py
View file @
7acb52cf
...
...
@@ -176,10 +176,13 @@ class LogstashFormatter(logstash.formatter.LogstashFormatterBase):
args
=
getattr
(
record
,
'args'
,
None
)
if
args
is
not
None
and
len
(
args
)
==
5
:
_
,
method
,
path_w_query
,
_
,
status_code
=
args
path
,
query_string
=
path_w_query
.
split
(
'?'
,
1
)
path_w_query_components
=
path_w_query
.
split
(
'?'
,
1
)
path
=
path_w_query_components
[
0
]
if
len
(
path_w_query_components
)
==
2
:
query_string
=
path_w_query_components
[
1
]
message
[
'uvicorn.query_string'
]
=
query_string
message
[
'uvicorn.method'
]
=
method
message
[
'uvicorn.path'
]
=
path
message
[
'uvicorn.query_string'
]
=
query_string
message
[
'uvicorn.status_code'
]
=
status_code
else
:
# Add extra fields
...
...
ops/helm/nomad/deployments/dev-values.yaml
View file @
7acb52cf
...
...
@@ -16,13 +16,13 @@ worker:
routing
:
"
queue"
elastic
:
host
:
elastic
host
:
elastic
search.elasticsearch.svc.cluster.local
mongo
:
host
:
mongo
host
:
rs0/
mongo
db-0.mongo.mongodb.svc.cluster.local,mongodb-1.mongo.mongodb.svc.cluster.local,mongodb-2.mongo.mongodb.svc.cluster.local
logstash
:
host
:
logstash
host
:
logstash
.elk.svc.cluster.local
dbname
:
nomad_dev_v0_8
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment