Ricardo Jun
2018-11-27 e447880e03cf716cb3ea47af799e66724cbbc725
commit | author | age
9e7a28 1 apiVersion: v1
RJ 2 kind: Template
3 labels:
4   template: rhdm7-bc
5   xpaas: 1.4.0
6 message: BuildConfig resources for Red Hat GPTE Decision Manager Foundations course
7 metadata:
8   annotations:
9     description: Application template for Red Hat JBoss Decision Management 7.0.
10     iconClass: icon-jboss
11     openshift.io/display-name: Red Hat Decision Manager 7.0 applications (Persistent with https)
12     tags: rhdm,jboss,xpaas
13     version: 1.4.0
14   name: rhdm7-bc
15
16 objects:
17 - apiVersion: v1
18   kind: BuildConfig
19   metadata:
20     labels:
21       application: ${APPLICATION_NAME}
22     name: ${APPLICATION_NAME}-ng-dmf
23   spec:
24     nodeSelector: null
25     postCommit: {}
26
27 # JA Bride / dtorresf: bumping to 2 cpu and 2Gi
28 # The new version of this node app has more javascript components and pre-evaluations.
29 # the new application has a menu for the demos and centralizes the demos for our course.
30     resources:
31       limits:
32         cpu: "2"
33         memory: 2Gi
34       requests:
35         cpu: "1"
36         memory: 1Gi
37     runPolicy: Serial
38     source:
39       git:
40         ref: master
41 # dtorresf: new git repository with templated angular2 application
42         uri: 'https://github.com/gpe-mw-training/gpte-ng-dmf.git'
43       type: Git
44     strategy:
45       sourceStrategy:
46         from:
47 # dtorresf: Using the available ImageStreamTag from the openshift registry
48           kind: ImageStreamTag
49           name: 'nodejs:latest'
50           namespace: openshift
51       type: Source
52     triggers:
53       - type: ImageChange
54     output:
55       to:
56         kind: ImageStreamTag
57         name: ng-dmf:latest
58
59 # JA Bride:  imagestream for custom angular app created from BC resource defined in this template
60 - apiVersion: v1
61   kind: ImageStream
62   metadata:
63     labels:
64       application: ${APPLICATION_NAME}
65     name: ng-dmf
66   spec:
67     lookupPolicy:
68       local: false
69
70
71
72 # JA Bride: Defining a BC to layer custom run script on kieserver image
73 - apiVersion: v1
74   kind: BuildConfig
75   metadata:
76     labels:
77       application: ${APPLICATION_NAME}
78     name: ${APPLICATION_NAME}-custom-kieserver
79   spec:
80     nodeSelector: null
81     postCommit: {}
82     output:
83       to:
84         kind: ImageStreamTag
85         name: custom-kieserver:latest
86
87 # JA Bride:  Bumping up limit and request so tht node app builds in a timely manner without timing out
88     resources:
89       limits:
90         cpu: "1"
91         memory: 1Gi
92       requests:
93         cpu: "1"
94         memory: 1Gi
95
96
97 # JA Bride:  The BPM exec server build config object is comprised of the bpmsuite7 exec server layered with the source code of this project.
98 #            The only thing this project source code does is provide a run script to customize the standalone-openshift.xml config file of JBoss EAP.
99     runPolicy: Serial
100     source:
101       contextDir: exec-server
102       git:
103         ref: master
104         type: Git
105         uri: https://github.com/gpe-mw-training/bxms_decision_mgmt_foundations_lab.git
106     strategy:
107       sourceStrategy:
108         from:
109           kind: ImageStreamTag
110           name: rhdm70-kieserver-openshift:1.0
111           namespace: ${RHT_IMAGE_STREAM_NAMESPACE}
112         type: Source
113     triggers:
114       - type: ImageChange
115
116 # JA Bride:  imagestream for customized kieserver created from BC resource defined in this template
117 - apiVersion: v1
118   kind: ImageStream
119   metadata:
120     labels:
121       application: ${APPLICATION_NAME}
122     name: custom-kieserver
123   spec:
124     lookupPolicy:
125       local: false
126
127 parameters:
128 - displayName: Application Name
129   description: The name for the application.
130   name: APPLICATION_NAME
131   value: myapp
132   required: true
133 - displayName: RHT ImageStream Namespace
134   description: Namespace in which the ImageStreams for Red Hat Middleware images are
135     installed. These ImageStreams are normally installed in the openshift namespace.
136     You should only need to modify this if you've installed the ImageStreams in a
137     different namespace/project.
138   name: RHT_IMAGE_STREAM_NAMESPACE
139   value: openshift
140   required: true