processserver64-basic-s2i.json 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. {
  2. "kind": "Template",
  3. "apiVersion": "v1",
  4. "metadata": {
  5. "annotations": {
  6. "iconClass": "icon-processserver",
  7. "tags": "processserver,jboss",
  8. "version": "1.4.14",
  9. "openshift.io/display-name": "JBoss BPM Suite 6.4 intelligent process server (no https)",
  10. "openshift.io/provider-display-name": "Red Hat, Inc.",
  11. "description": "An example BPM Suite application. For more information about using this template, see https://github.com/jboss-openshift/application-templates.",
  12. "template.openshift.io/long-description": "This template defines resources needed to develop Red Hat Business Process Suite intelligent process server 6.4 based application, including a build configuration, application deployment configuration and insecure communication using http.",
  13. "template.openshift.io/documentation-url": "https://access.redhat.com/documentation/en/red-hat-jboss-bpm-suite/",
  14. "template.openshift.io/support-url": "https://access.redhat.com"
  15. },
  16. "name": "processserver64-basic-s2i"
  17. },
  18. "labels": {
  19. "template": "processserver64-basic-s2i",
  20. "xpaas": "1.4.14"
  21. },
  22. "message": "A new BPMS application has been created in your project. The username/password for accessing the KIE Server REST or JMS interface is ${KIE_SERVER_USER}/${KIE_SERVER_PASSWORD}.",
  23. "parameters": [
  24. {
  25. "displayName": "KIE Container Deployment",
  26. "description": "The KIE Container deployment configuration in format: containerId=groupId:artifactId:version|c2=g2:a2:v2",
  27. "name": "KIE_CONTAINER_DEPLOYMENT",
  28. "value": "processserver-library=org.openshift.quickstarts:processserver-library:1.3.0.Final",
  29. "required": false
  30. },
  31. {
  32. "displayName": "KIE Server Username",
  33. "description": "The user name to access the KIE Server REST or JMS interface.",
  34. "name": "KIE_SERVER_USER",
  35. "value": "kieserver",
  36. "required": false
  37. },
  38. {
  39. "displayName": "KIE Server Password",
  40. "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).",
  41. "name": "KIE_SERVER_PASSWORD",
  42. "from": "[a-zA-Z]{6}[0-9]{1}!",
  43. "generate": "expression",
  44. "required": false
  45. },
  46. {
  47. "displayName": "KIE Server Persistence Dialect",
  48. "description": "Hibernate persistence dialect.",
  49. "name": "KIE_SERVER_PERSISTENCE_DIALECT",
  50. "value": "org.hibernate.dialect.H2Dialect",
  51. "required": false
  52. },
  53. {
  54. "displayName": "Application Name",
  55. "description": "The name for the application.",
  56. "name": "APPLICATION_NAME",
  57. "value": "kie-app",
  58. "required": true
  59. },
  60. {
  61. "displayName": "Custom http Route Hostname",
  62. "description": "Custom hostname for http service route. Leave blank for default hostname, e.g.: <application-name>-<project>.<default-domain-suffix>",
  63. "name": "HOSTNAME_HTTP",
  64. "value": "",
  65. "required": false
  66. },
  67. {
  68. "displayName": "Git Repository URL",
  69. "description": "Git source URI for application",
  70. "name": "SOURCE_REPOSITORY_URL",
  71. "value": "https://github.com/jboss-openshift/openshift-quickstarts.git",
  72. "required": true
  73. },
  74. {
  75. "displayName": "Git Reference",
  76. "description": "Git branch/tag reference",
  77. "name": "SOURCE_REPOSITORY_REF",
  78. "value": "1.3",
  79. "required": false
  80. },
  81. {
  82. "displayName": "Context Directory",
  83. "description": "Path within Git project to build; empty for root project directory.",
  84. "name": "CONTEXT_DIR",
  85. "value": "processserver/library",
  86. "required": false
  87. },
  88. {
  89. "displayName": "Queues",
  90. "description": "Queue names",
  91. "name": "HORNETQ_QUEUES",
  92. "value": "",
  93. "required": false
  94. },
  95. {
  96. "displayName": "Topics",
  97. "description": "Topic names",
  98. "name": "HORNETQ_TOPICS",
  99. "value": "",
  100. "required": false
  101. },
  102. {
  103. "displayName": "HornetQ Password",
  104. "description": "HornetQ cluster admin password",
  105. "name": "HORNETQ_CLUSTER_PASSWORD",
  106. "from": "[a-zA-Z0-9]{8}",
  107. "generate": "expression",
  108. "required": true
  109. },
  110. {
  111. "displayName": "Github Webhook Secret",
  112. "description": "GitHub trigger secret",
  113. "name": "GITHUB_WEBHOOK_SECRET",
  114. "from": "[a-zA-Z0-9]{8}",
  115. "generate": "expression",
  116. "required": true
  117. },
  118. {
  119. "displayName": "Generic Webhook Secret",
  120. "description": "Generic build trigger secret",
  121. "name": "GENERIC_WEBHOOK_SECRET",
  122. "from": "[a-zA-Z0-9]{8}",
  123. "generate": "expression",
  124. "required": true
  125. },
  126. {
  127. "displayName": "ImageStream Namespace",
  128. "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.",
  129. "name": "IMAGE_STREAM_NAMESPACE",
  130. "value": "openshift",
  131. "required": true
  132. },
  133. {
  134. "displayName": "Maven mirror URL",
  135. "description": "Maven mirror to use for S2I builds",
  136. "name": "MAVEN_MIRROR_URL",
  137. "value": "",
  138. "required": false
  139. },
  140. {
  141. "description": "List of directories from which archives will be copied into the deployment folder. If unspecified, all archives in /target will be copied.",
  142. "name": "ARTIFACT_DIR",
  143. "value": "",
  144. "required": false
  145. },
  146. {
  147. "description": "Container memory limit",
  148. "name": "MEMORY_LIMIT",
  149. "value": "1Gi",
  150. "required": false
  151. }
  152. ],
  153. "objects": [
  154. {
  155. "kind": "Service",
  156. "apiVersion": "v1",
  157. "spec": {
  158. "ports": [
  159. {
  160. "port": 8080,
  161. "targetPort": 8080
  162. }
  163. ],
  164. "selector": {
  165. "deploymentConfig": "${APPLICATION_NAME}"
  166. }
  167. },
  168. "metadata": {
  169. "name": "${APPLICATION_NAME}",
  170. "labels": {
  171. "application": "${APPLICATION_NAME}"
  172. },
  173. "annotations": {
  174. "description": "The web server's http port."
  175. }
  176. }
  177. },
  178. {
  179. "kind": "Route",
  180. "apiVersion": "v1",
  181. "id": "${APPLICATION_NAME}-http",
  182. "metadata": {
  183. "name": "${APPLICATION_NAME}",
  184. "labels": {
  185. "application": "${APPLICATION_NAME}"
  186. },
  187. "annotations": {
  188. "description": "Route for application's http service."
  189. }
  190. },
  191. "spec": {
  192. "host": "${HOSTNAME_HTTP}",
  193. "to": {
  194. "name": "${APPLICATION_NAME}"
  195. }
  196. }
  197. },
  198. {
  199. "kind": "ImageStream",
  200. "apiVersion": "v1",
  201. "metadata": {
  202. "name": "${APPLICATION_NAME}",
  203. "labels": {
  204. "application": "${APPLICATION_NAME}"
  205. }
  206. }
  207. },
  208. {
  209. "kind": "BuildConfig",
  210. "apiVersion": "v1",
  211. "metadata": {
  212. "name": "${APPLICATION_NAME}",
  213. "labels": {
  214. "application": "${APPLICATION_NAME}"
  215. }
  216. },
  217. "spec": {
  218. "source": {
  219. "type": "Git",
  220. "git": {
  221. "uri": "${SOURCE_REPOSITORY_URL}",
  222. "ref": "${SOURCE_REPOSITORY_REF}"
  223. },
  224. "contextDir": "${CONTEXT_DIR}"
  225. },
  226. "strategy": {
  227. "type": "Source",
  228. "sourceStrategy": {
  229. "env": [
  230. {
  231. "name": "KIE_CONTAINER_DEPLOYMENT",
  232. "value": "${KIE_CONTAINER_DEPLOYMENT}"
  233. },
  234. {
  235. "name": "MAVEN_MIRROR_URL",
  236. "value": "${MAVEN_MIRROR_URL}"
  237. },
  238. {
  239. "name": "ARTIFACT_DIR",
  240. "value": "${ARTIFACT_DIR}"
  241. }
  242. ],
  243. "forcePull": true,
  244. "from": {
  245. "kind": "ImageStreamTag",
  246. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  247. "name": "jboss-processserver64-openshift:1.3"
  248. }
  249. }
  250. },
  251. "output": {
  252. "to": {
  253. "kind": "ImageStreamTag",
  254. "name": "${APPLICATION_NAME}:latest"
  255. }
  256. },
  257. "triggers": [
  258. {
  259. "type": "GitHub",
  260. "github": {
  261. "secret": "${GITHUB_WEBHOOK_SECRET}"
  262. }
  263. },
  264. {
  265. "type": "Generic",
  266. "generic": {
  267. "secret": "${GENERIC_WEBHOOK_SECRET}"
  268. }
  269. },
  270. {
  271. "type": "ImageChange",
  272. "imageChange": {}
  273. },
  274. {
  275. "type": "ConfigChange"
  276. }
  277. ]
  278. }
  279. },
  280. {
  281. "kind": "DeploymentConfig",
  282. "apiVersion": "v1",
  283. "metadata": {
  284. "name": "${APPLICATION_NAME}",
  285. "labels": {
  286. "application": "${APPLICATION_NAME}"
  287. }
  288. },
  289. "spec": {
  290. "strategy": {
  291. "type": "Recreate"
  292. },
  293. "triggers": [
  294. {
  295. "type": "ImageChange",
  296. "imageChangeParams": {
  297. "automatic": true,
  298. "containerNames": [
  299. "${APPLICATION_NAME}"
  300. ],
  301. "from": {
  302. "kind": "ImageStream",
  303. "name": "${APPLICATION_NAME}"
  304. }
  305. }
  306. },
  307. {
  308. "type": "ConfigChange"
  309. }
  310. ],
  311. "replicas": 1,
  312. "selector": {
  313. "deploymentConfig": "${APPLICATION_NAME}"
  314. },
  315. "template": {
  316. "metadata": {
  317. "name": "${APPLICATION_NAME}",
  318. "labels": {
  319. "deploymentConfig": "${APPLICATION_NAME}",
  320. "application": "${APPLICATION_NAME}"
  321. }
  322. },
  323. "spec": {
  324. "terminationGracePeriodSeconds": 60,
  325. "containers": [
  326. {
  327. "name": "${APPLICATION_NAME}",
  328. "image": "${APPLICATION_NAME}",
  329. "imagePullPolicy": "Always",
  330. "resources": {
  331. "limits": {
  332. "memory": "${MEMORY_LIMIT}"
  333. }
  334. },
  335. "livenessProbe": {
  336. "exec": {
  337. "command": [
  338. "/bin/bash",
  339. "-c",
  340. "/opt/eap/bin/livenessProbe.sh"
  341. ]
  342. },
  343. "initialDelaySeconds": 60
  344. },
  345. "readinessProbe": {
  346. "exec": {
  347. "command": [
  348. "/bin/bash",
  349. "-c",
  350. "/opt/eap/bin/readinessProbe.sh"
  351. ]
  352. }
  353. },
  354. "ports": [
  355. {
  356. "name": "jolokia",
  357. "containerPort": 8778,
  358. "protocol": "TCP"
  359. },
  360. {
  361. "name": "http",
  362. "containerPort": 8080,
  363. "protocol": "TCP"
  364. }
  365. ],
  366. "env": [
  367. {
  368. "name": "KIE_CONTAINER_DEPLOYMENT",
  369. "value": "${KIE_CONTAINER_DEPLOYMENT}"
  370. },
  371. {
  372. "name": "KIE_SERVER_USER",
  373. "value": "${KIE_SERVER_USER}"
  374. },
  375. {
  376. "name": "KIE_SERVER_PASSWORD",
  377. "value": "${KIE_SERVER_PASSWORD}"
  378. },
  379. {
  380. "name": "HORNETQ_CLUSTER_PASSWORD",
  381. "value": "${HORNETQ_CLUSTER_PASSWORD}"
  382. },
  383. {
  384. "name": "HORNETQ_QUEUES",
  385. "value": "${HORNETQ_QUEUES}"
  386. },
  387. {
  388. "name": "HORNETQ_TOPICS",
  389. "value": "${HORNETQ_TOPICS}"
  390. }
  391. ]
  392. }
  393. ]
  394. }
  395. }
  396. }
  397. }
  398. ]
  399. }