Browse Source

Set build resources

- Required for build to work.  Default allocations are too low now.

Signed-off-by: Wade Barnes <wade.barnes@shaw.ca>
pull/160/head
Wade Barnes 5 years ago
parent
commit
9a22d36625
No known key found for this signature in database GPG Key ID: 8EFD0ACAE2C82CB7
1 changed files with 28 additions and 0 deletions
  1. +28
    -0
      openshift/templates/edivorce-django/edivorce-django-build.yaml

+ 28
- 0
openshift/templates/edivorce-django/edivorce-django-build.yaml View File

@ -44,6 +44,13 @@ objects:
- type: ConfigChange
postCommit:
script: "./manage.py test"
resources:
limits:
cpu: ${CPU_LIMIT}
memory: ${MEMORY_LIMIT}
requests:
cpu: ${CPU_REQUEST}
memory: ${MEMORY_REQUEST}
parameters:
- name: NAME
displayName: Name
@ -85,3 +92,24 @@ parameters:
displayName: Custom PyPi Index URL
description: The custom PyPi index URL
value: ''
# ===============================================================================
- name: CPU_REQUEST
displayName: Resources CPU Request
description: The resources CPU request (in cores) for this build.
required: true
value: 10m
- name: CPU_LIMIT
displayName: Resources CPU Limit
description: The resources CPU limit (in cores) for this build.
required: true
value: 750m
- name: MEMORY_REQUEST
displayName: Resources Memory Request
description: The resources Memory request (in Mi, Gi, etc) for this build.
required: true
value: 10Mi
- name: MEMORY_LIMIT
displayName: Resources Memory Limit
description: The resources Memory limit (in Mi, Gi, etc) for this build.
required: true
value: 1000Mi

Loading…
Cancel
Save