Browse Source

updated the build templates following git repository move and weasyprint fork

pull/160/head
Mike Olund 8 years ago
parent
commit
0f19d407d6
4 changed files with 18 additions and 7 deletions
  1. +10
    -0
      .env.example
  2. +1
    -1
      openshift/templates/edivorce-build-template.yaml
  3. +6
    -5
      openshift/templates/edivorce-environment-template.yaml
  4. +1
    -1
      openshift/templates/nginx-build-template.yaml

+ 10
- 0
.env.example View File

@ -0,0 +1,10 @@
LOCAL_DEV=True
DEBUG=True
TEMPLATE_DEBUG=True
DJANGO_SECRET_KEY=
DATABASE_ENGINE=django.db.backends.sqlite3
DATABASE_NAME=db.sqlite3
DATABASE_USER=
DATABASE_PASSWORD=
DATABASE_HOST=
DATABASE_PORT=

+ 1
- 1
openshift/templates/edivorce-build-template.yaml View File

@ -66,7 +66,7 @@ parameters:
displayName: Git Repository URL
required: true
description: The URL of the repository with your application source code.
value: https://github.com/bcgov/eDivorce.git
value: https://github.com/bcgov/eDivorce
- name: SOURCE_REPOSITORY_REF
displayName: Git Reference
description: Set this to a branch name, tag or other ref of your repository if you are not using the default branch.


+ 6
- 5
openshift/templates/edivorce-environment-template.yaml View File

@ -187,10 +187,10 @@ objects:
tags:
- name: latest
annotations:
openshift.io/imported-from: aquavitae/weasyprint
openshift.io/imported-from: jag-csb-edivorce-tools/weasyprint
from:
kind: DockerImage
name: aquavitae/weasyprint
name: jag-csb-edivorce-tools/weasyprint
- kind: Service
apiVersion: v1
metadata:
@ -216,7 +216,7 @@ objects:
spec:
strategy:
type: Recreate
triggers:
triggers:
- type: ImageChange
imageChangeParams:
automatic: true
@ -224,7 +224,8 @@ objects:
- weasyprint
from:
kind: ImageStreamTag
name: 'aquavitae/weasyprint:latest'
namespace: jag-csb-edivorce-tools
name: 'weasyprint:latest'
replicas: 1
selector:
name: weasyprint
@ -238,7 +239,7 @@ objects:
spec:
containers:
- name: weasyprint
image: 'aquavitae/weasyprint'
image: 'jag-csb-edivorce-tools/weasyprint'
ports:
- containerPort: 5001
protocol: TCP


+ 1
- 1
openshift/templates/nginx-build-template.yaml View File

@ -64,7 +64,7 @@ parameters:
- name: SOURCE_REPOSITORY_URL
displayName: Git Repository URL
description: The URL of the repository with your nginx configuration code.
value: https://github.com/molund/eDivorce
value: https://github.com/bcgov/eDivorce
required: true
- name: SOURCE_REPOSITORY_CONTEXT_DIR
displayName: Git sub-directory


Loading…
Cancel
Save