Browse Source

Merge pull request #115 from hhorak/python-3.6

Django Example App Update to Python 3.6
pull/129/head
Honza Horak 7 years ago
committed by GitHub
parent
commit
37f7fc4143
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 5 deletions
  1. +16
    -2
      openshift/templates/django-postgresql-persistent.json
  2. +16
    -2
      openshift/templates/django-postgresql.json
  3. +8
    -1
      openshift/templates/django.json

+ 16
- 2
openshift/templates/django-postgresql-persistent.json View File

@ -105,7 +105,7 @@
"from": {
"kind": "ImageStreamTag",
"namespace": "${NAMESPACE}",
"name": "python:3.5"
"name": "python:${PYTHON_VERSION}"
},
"env": [
{
@ -329,7 +329,7 @@
"from": {
"kind": "ImageStreamTag",
"namespace": "${NAMESPACE}",
"name": "postgresql:9.5"
"name": "postgresql:${POSTGRESQL_VERSION}"
}
}
},
@ -437,6 +437,20 @@
"description": "The OpenShift Namespace where the ImageStream resides.",
"value": "openshift"
},
{
"name": "PYTHON_VERSION",
"displayName": "Version of Python Image",
"description": "Version of Python image to be used (3.4, 3.5, 3.6 or latest).",
"value": "3.6",
"required": true
},
{
"name": "POSTGRESQL_VERSION",
"displayName": "Version of PostgreSQL Image",
"description": "Version of PostgreSQL image to be used (9.4, 9.5, 9.6 or latest).",
"value": "9.6",
"required": true
},
{
"name": "MEMORY_LIMIT",
"displayName": "Memory Limit",


+ 16
- 2
openshift/templates/django-postgresql.json View File

@ -105,7 +105,7 @@
"from": {
"kind": "ImageStreamTag",
"namespace": "${NAMESPACE}",
"name": "python:3.5"
"name": "python:${PYTHON_VERSION}"
},
"env": [
{
@ -312,7 +312,7 @@
"from": {
"kind": "ImageStreamTag",
"namespace": "${NAMESPACE}",
"name": "postgresql:9.5"
"name": "postgresql:${POSTGRESQL_VERSION}"
}
}
},
@ -418,6 +418,20 @@
"description": "The OpenShift Namespace where the ImageStream resides.",
"value": "openshift"
},
{
"name": "PYTHON_VERSION",
"displayName": "Version of Python Image",
"description": "Version of Python image to be used (3.4, 3.5, 3.6 or latest).",
"value": "3.6",
"required": true
},
{
"name": "POSTGRESQL_VERSION",
"displayName": "Version of PostgreSQL Image",
"description": "Version of PostgreSQL image to be used (9.4, 9.5, 9.6 or latest).",
"value": "9.6",
"required": true
},
{
"name": "MEMORY_LIMIT",
"displayName": "Memory Limit",


+ 8
- 1
openshift/templates/django.json View File

@ -102,7 +102,7 @@
"from": {
"kind": "ImageStreamTag",
"namespace": "${NAMESPACE}",
"name": "python:3.5"
"name": "python:${PYTHON_VERSION}"
},
"env": [
{
@ -248,6 +248,13 @@
"description": "The OpenShift Namespace where the ImageStream resides.",
"value": "openshift"
},
{
"name": "PYTHON_VERSION",
"displayName": "Version of Python Image",
"description": "Version of Python image to be used (3.4, 3.5, 3.6 or latest).",
"value": "3.6",
"required": true
},
{
"name": "MEMORY_LIMIT",
"displayName": "Memory Limit",


Loading…
Cancel
Save