Commit 78a37943 authored by Yuri Konotopov's avatar Yuri Konotopov

openshift: implementation

parent 65adb8c1
......@@ -21,6 +21,17 @@
"app": "extensions-web"
},
"objects": [
{
"kind": "ConfigMap",
"apiVersion": "v1",
"metadata": {
"name": "${NAME}"
},
"data": {
"media-root": "/extensions-web/www/uploaded-files",
"static-root": "/extensions-web/www/static-files"
}
},
{
"kind": "Secret",
"apiVersion": "v1",
......@@ -97,11 +108,40 @@
}
},
"postCommit": {
"script": "python manage.py test"
"script": "bash -c 'python manage.py collectstatic --noinput && python manage.py test'"
},
"strategy": {
"type": "Docker",
"dockerStrategy": {
"env": [
{
"name": "EGO_SECRET_KEY",
"valueFrom": {
"secretKeyRef": {
"name": "extensions-web",
"key": "secret-key"
}
}
},
{
"name": "EGO_MEDIA_ROOT",
"valueFrom": {
"configMapKeyRef": {
"name": "extensions-web",
"key": "media-root"
}
}
},
{
"name": "EGO_STATIC_ROOT",
"valueFrom": {
"configMapKeyRef": {
"name": "extensions-web",
"key": "static-root"
}
}
}
],
"dockerfilePath": "openshift/docker/Dockerfile"
}
},
......@@ -232,6 +272,7 @@
{
"name": "${NAME}",
"image": " ",
"command": "bash -c 'python manage.py migrate && uwsgi --enable-threads --ini /extensions-web/wsgi.ini'",
"ports": [
{
"containerPort": 8001
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment