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
3a5e1217
Commit
3a5e1217
authored
Jan 28, 2019
by
Markus Scheidgen
Browse files
Added release data based label to all deployments to force update on image with same tag.
parent
5cdb6d0f
Pipeline
#42858
passed with stages
in 20 minutes
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
3a5e1217
...
...
@@ -56,8 +56,8 @@ buildrawapi:
-
docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN gitlab-registry.mpcdf.mpg.de
-
docker build -t $RAWAPI_TEST_IMAGE -f rawapi.Dockerfile .
-
docker push $RAWAPI_TEST_IMAGE
except
:
-
/^dev-.*$/
only
:
-
rawapi
linting
:
...
...
@@ -163,8 +163,8 @@ release_rawapi:
-
docker pull $RAWAPI_TEST_IMAGE
-
docker tag $RAWAPI_TEST_IMAGE $RAWAPI_RELEASE_IMAGE
-
docker push $RAWAPI_RELEASE_IMAGE
except
:
-
/^dev-.*$/
only
:
-
rawapi
when
:
manual
deploy_rawapi
:
...
...
@@ -176,8 +176,8 @@ deploy_rawapi:
# runner container at /nomad/config/.env
-
cp /nomad/config/.rawapi_env .env
-
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
except
:
-
/^dev-.*$/
only
:
-
rawapi
when
:
manual
deploy
:
...
...
ops/helm/nomad/templates/api-deployment.yaml
View file @
3a5e1217
...
...
@@ -7,6 +7,7 @@ metadata:
helm.sh/chart
:
{{
include "nomad.chart" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
date
:
{{
.Release.Time.Seconds
}}
spec
:
replicas
:
{{
.Values.api.replicas
}}
selector
:
...
...
@@ -73,6 +74,7 @@ spec:
command
:
[
"
python"
,
"
-m"
,
"
gunicorn.app.wsgiapp"
,
"
-b
0.0.0.0:8000"
,
"
nomad.api:app"
]
imagePullSecrets
:
-
name
:
{{
.Values.images.secret
}}
imagePullPolicy
:
always
volumes
:
-
name
:
files-volume
hostPath
:
...
...
ops/helm/nomad/templates/gui-deployment.yml
View file @
3a5e1217
...
...
@@ -7,6 +7,7 @@ metadata:
helm.sh/chart
:
{{
include "nomad.chart" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
date
:
{{
.Release.Time.Seconds
}}
data
:
nginx.conf
:
|
server {
...
...
@@ -65,6 +66,7 @@ spec:
name
:
log
imagePullSecrets
:
-
name
:
{{
.Values.images.secret
}}
imagePullPolicy
:
always
volumes
:
-
name
:
nginx-conf
configMap
:
...
...
ops/helm/nomad/templates/worker-deployment.yaml
View file @
3a5e1217
...
...
@@ -7,6 +7,7 @@ metadata:
helm.sh/chart
:
{{
include "nomad.chart" .
}}
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
date
:
{{
.Release.Time.Seconds
}}
spec
:
replicas
:
{{
.Values.worker.replicas
}}
selector
:
...
...
@@ -61,6 +62,7 @@ spec:
command
:
[
"
python"
,
"
-m"
,
"
celery"
,
"
worker"
,
"
-l"
,
"
info"
,
"
-A"
,
"
nomad.processing"
]
imagePullSecrets
:
-
name
:
{{
.Values.images.secret
}}
imagePullPolicy
:
always
volumes
:
-
name
:
files-volume
hostPath
:
...
...
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