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