processserver63-basic-s2i.json 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. {
  2. "kind": "Template",
  3. "apiVersion": "v1",
  4. "metadata": {
  5. "annotations": {
  6. "description": "Application template for Red Hat JBoss BPM Suite 6.3 intelligent process server applications built using S2I.",
  7. "iconClass": "icon-jboss",
  8. "tags": "processserver,javaee,java,jboss,xpaas",
  9. "version": "1.3.3"
  10. },
  11. "name": "processserver63-basic-s2i"
  12. },
  13. "labels": {
  14. "template": "processserver63-basic-s2i",
  15. "xpaas": "1.3.3"
  16. },
  17. "parameters": [
  18. {
  19. "description": "The KIE Container deployment configuration in format: containerId=groupId:artifactId:version|c2=g2:a2:v2",
  20. "name": "KIE_CONTAINER_DEPLOYMENT",
  21. "value": "processserver-library=org.openshift.quickstarts:processserver-library:1.3.0.Final",
  22. "required": false
  23. },
  24. {
  25. "description": "The user name to access the KIE Server REST or JMS interface.",
  26. "name": "KIE_SERVER_USER",
  27. "value": "kieserver",
  28. "required": false
  29. },
  30. {
  31. "description": "The password to access the KIE Server REST or JMS interface. Must be different than username; must not be root, admin, or administrator; must contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), and 1 non-alphanumeric symbol(s).",
  32. "name": "KIE_SERVER_PASSWORD",
  33. "from": "[a-zA-Z]{6}[0-9]{1}!",
  34. "generate": "expression",
  35. "required": false
  36. },
  37. {
  38. "description": "Hibernate persistence dialect.",
  39. "name": "KIE_SERVER_PERSISTENCE_DIALECT",
  40. "value": "org.hibernate.dialect.H2Dialect",
  41. "required": false
  42. },
  43. {
  44. "description": "The name for the application.",
  45. "name": "APPLICATION_NAME",
  46. "value": "kie-app",
  47. "required": true
  48. },
  49. {
  50. "description": "Custom hostname for http service route. Leave blank for default hostname, e.g.: <application-name>-<project>.<default-domain-suffix>",
  51. "name": "HOSTNAME_HTTP",
  52. "value": "",
  53. "required": false
  54. },
  55. {
  56. "description": "Git source URI for application",
  57. "name": "SOURCE_REPOSITORY_URL",
  58. "value": "https://github.com/jboss-openshift/openshift-quickstarts.git",
  59. "required": true
  60. },
  61. {
  62. "description": "Git branch/tag reference",
  63. "name": "SOURCE_REPOSITORY_REF",
  64. "value": "1.3",
  65. "required": false
  66. },
  67. {
  68. "description": "Path within Git project to build; empty for root project directory.",
  69. "name": "CONTEXT_DIR",
  70. "value": "processserver/library",
  71. "required": false
  72. },
  73. {
  74. "description": "Queue names",
  75. "name": "HORNETQ_QUEUES",
  76. "value": "",
  77. "required": false
  78. },
  79. {
  80. "description": "Topic names",
  81. "name": "HORNETQ_TOPICS",
  82. "value": "",
  83. "required": false
  84. },
  85. {
  86. "description": "HornetQ cluster admin password",
  87. "name": "HORNETQ_CLUSTER_PASSWORD",
  88. "from": "[a-zA-Z0-9]{8}",
  89. "generate": "expression",
  90. "required": true
  91. },
  92. {
  93. "description": "GitHub trigger secret",
  94. "name": "GITHUB_WEBHOOK_SECRET",
  95. "from": "[a-zA-Z0-9]{8}",
  96. "generate": "expression",
  97. "required": true
  98. },
  99. {
  100. "description": "Generic build trigger secret",
  101. "name": "GENERIC_WEBHOOK_SECRET",
  102. "from": "[a-zA-Z0-9]{8}",
  103. "generate": "expression",
  104. "required": true
  105. },
  106. {
  107. "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.",
  108. "name": "IMAGE_STREAM_NAMESPACE",
  109. "value": "openshift",
  110. "required": true
  111. }
  112. ],
  113. "objects": [
  114. {
  115. "kind": "Service",
  116. "apiVersion": "v1",
  117. "spec": {
  118. "ports": [
  119. {
  120. "port": 8080,
  121. "targetPort": 8080
  122. }
  123. ],
  124. "selector": {
  125. "deploymentConfig": "${APPLICATION_NAME}"
  126. }
  127. },
  128. "metadata": {
  129. "name": "${APPLICATION_NAME}",
  130. "labels": {
  131. "application": "${APPLICATION_NAME}"
  132. },
  133. "annotations": {
  134. "description": "The web server's http port."
  135. }
  136. }
  137. },
  138. {
  139. "kind": "Route",
  140. "apiVersion": "v1",
  141. "id": "${APPLICATION_NAME}-http",
  142. "metadata": {
  143. "name": "${APPLICATION_NAME}",
  144. "labels": {
  145. "application": "${APPLICATION_NAME}"
  146. },
  147. "annotations": {
  148. "description": "Route for application's http service."
  149. }
  150. },
  151. "spec": {
  152. "host": "${HOSTNAME_HTTP}",
  153. "to": {
  154. "name": "${APPLICATION_NAME}"
  155. }
  156. }
  157. },
  158. {
  159. "kind": "ImageStream",
  160. "apiVersion": "v1",
  161. "metadata": {
  162. "name": "${APPLICATION_NAME}",
  163. "labels": {
  164. "application": "${APPLICATION_NAME}"
  165. }
  166. }
  167. },
  168. {
  169. "kind": "BuildConfig",
  170. "apiVersion": "v1",
  171. "metadata": {
  172. "name": "${APPLICATION_NAME}",
  173. "labels": {
  174. "application": "${APPLICATION_NAME}"
  175. }
  176. },
  177. "spec": {
  178. "source": {
  179. "type": "Git",
  180. "git": {
  181. "uri": "${SOURCE_REPOSITORY_URL}",
  182. "ref": "${SOURCE_REPOSITORY_REF}"
  183. },
  184. "contextDir": "${CONTEXT_DIR}"
  185. },
  186. "strategy": {
  187. "type": "Source",
  188. "sourceStrategy": {
  189. "env": [
  190. {
  191. "name": "KIE_CONTAINER_DEPLOYMENT",
  192. "value": "${KIE_CONTAINER_DEPLOYMENT}"
  193. }
  194. ],
  195. "forcePull": true,
  196. "from": {
  197. "kind": "ImageStreamTag",
  198. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  199. "name": "jboss-processserver63-openshift:1.3"
  200. }
  201. }
  202. },
  203. "output": {
  204. "to": {
  205. "kind": "ImageStreamTag",
  206. "name": "${APPLICATION_NAME}:latest"
  207. }
  208. },
  209. "triggers": [
  210. {
  211. "type": "GitHub",
  212. "github": {
  213. "secret": "${GITHUB_WEBHOOK_SECRET}"
  214. }
  215. },
  216. {
  217. "type": "Generic",
  218. "generic": {
  219. "secret": "${GENERIC_WEBHOOK_SECRET}"
  220. }
  221. },
  222. {
  223. "type": "ImageChange",
  224. "imageChange": {}
  225. },
  226. {
  227. "type": "ConfigChange"
  228. }
  229. ]
  230. }
  231. },
  232. {
  233. "kind": "DeploymentConfig",
  234. "apiVersion": "v1",
  235. "metadata": {
  236. "name": "${APPLICATION_NAME}",
  237. "labels": {
  238. "application": "${APPLICATION_NAME}"
  239. }
  240. },
  241. "spec": {
  242. "strategy": {
  243. "type": "Recreate"
  244. },
  245. "triggers": [
  246. {
  247. "type": "ImageChange",
  248. "imageChangeParams": {
  249. "automatic": true,
  250. "containerNames": [
  251. "${APPLICATION_NAME}"
  252. ],
  253. "from": {
  254. "kind": "ImageStream",
  255. "name": "${APPLICATION_NAME}"
  256. }
  257. }
  258. },
  259. {
  260. "type": "ConfigChange"
  261. }
  262. ],
  263. "replicas": 1,
  264. "selector": {
  265. "deploymentConfig": "${APPLICATION_NAME}"
  266. },
  267. "template": {
  268. "metadata": {
  269. "name": "${APPLICATION_NAME}",
  270. "labels": {
  271. "deploymentConfig": "${APPLICATION_NAME}",
  272. "application": "${APPLICATION_NAME}"
  273. }
  274. },
  275. "spec": {
  276. "terminationGracePeriodSeconds": 60,
  277. "containers": [
  278. {
  279. "name": "${APPLICATION_NAME}",
  280. "image": "${APPLICATION_NAME}",
  281. "imagePullPolicy": "Always",
  282. "livenessProbe": {
  283. "exec": {
  284. "command": [
  285. "/bin/bash",
  286. "-c",
  287. "/opt/eap/bin/livenessProbe.sh"
  288. ]
  289. }
  290. },
  291. "readinessProbe": {
  292. "exec": {
  293. "command": [
  294. "/bin/bash",
  295. "-c",
  296. "/opt/eap/bin/readinessProbe.sh"
  297. ]
  298. }
  299. },
  300. "ports": [
  301. {
  302. "name": "jolokia",
  303. "containerPort": 8778,
  304. "protocol": "TCP"
  305. },
  306. {
  307. "name": "http",
  308. "containerPort": 8080,
  309. "protocol": "TCP"
  310. }
  311. ],
  312. "env": [
  313. {
  314. "name": "KIE_CONTAINER_DEPLOYMENT",
  315. "value": "${KIE_CONTAINER_DEPLOYMENT}"
  316. },
  317. {
  318. "name": "KIE_SERVER_USER",
  319. "value": "${KIE_SERVER_USER}"
  320. },
  321. {
  322. "name": "KIE_SERVER_PASSWORD",
  323. "value": "${KIE_SERVER_PASSWORD}"
  324. },
  325. {
  326. "name": "HORNETQ_CLUSTER_PASSWORD",
  327. "value": "${HORNETQ_CLUSTER_PASSWORD}"
  328. },
  329. {
  330. "name": "HORNETQ_QUEUES",
  331. "value": "${HORNETQ_QUEUES}"
  332. },
  333. {
  334. "name": "HORNETQ_TOPICS",
  335. "value": "${HORNETQ_TOPICS}"
  336. }
  337. ]
  338. }
  339. ]
  340. }
  341. }
  342. }
  343. }
  344. ]
  345. }