processserver63-amq-mysql-persistent-s2i.json 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156
  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 AMQ and MySQL applications with persistent storage built using S2I.",
  7. "iconClass": "icon-jboss",
  8. "tags": "processserver,jboss,xpaas",
  9. "version": "1.4.0",
  10. "openshift.io/display-name": "Red Hat JBoss BPM Suite 6.3 intelligent process server + A-MQ + MySQL (Persistent with https)"
  11. },
  12. "name": "processserver63-amq-mysql-persistent-s2i"
  13. },
  14. "labels": {
  15. "template": "processserver63-amq-mysql-persistent-s2i",
  16. "xpaas": "1.4.0"
  17. },
  18. "message": "A new persistent BPMS application (using MySQL and A-MQ) 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}. For accessing the MySQL database \"${DB_DATABASE}\" use the credentials ${DB_USERNAME}/${DB_PASSWORD}. And for the A-MQ service use the credentials ${MQ_USERNAME}/${MQ_PASSWORD}. Please be sure to create the \"processserver-service-account\" service account and the secret named \"${HTTPS_SECRET}\" containing the ${HTTPS_KEYSTORE} file used for serving secure content.",
  19. "parameters": [
  20. {
  21. "displayName": "KIE Container Deployment",
  22. "description": "The KIE Container deployment configuration in format: containerId=groupId:artifactId:version|c2=g2:a2:v2",
  23. "name": "KIE_CONTAINER_DEPLOYMENT",
  24. "value": "processserver-library=org.openshift.quickstarts:processserver-library:1.3.0.Final",
  25. "required": false
  26. },
  27. {
  28. "displayName": "KIE Server Protocol",
  29. "description": "The protocol to access the KIE Server REST interface.",
  30. "name": "KIE_SERVER_PROTOCOL",
  31. "value": "https",
  32. "required": false
  33. },
  34. {
  35. "displayName": "KIE Server Port",
  36. "description": "The port to access the KIE Server REST interface.",
  37. "name": "KIE_SERVER_PORT",
  38. "value": "8443",
  39. "required": false
  40. },
  41. {
  42. "displayName": "KIE Server Username",
  43. "description": "The user name to access the KIE Server REST or JMS interface.",
  44. "name": "KIE_SERVER_USER",
  45. "value": "kieserver",
  46. "required": false
  47. },
  48. {
  49. "displayName": "KIE Server Password",
  50. "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).",
  51. "name": "KIE_SERVER_PASSWORD",
  52. "from": "[a-zA-Z]{6}[0-9]{1}!",
  53. "generate": "expression",
  54. "required": false
  55. },
  56. {
  57. "displayName": "KIE Server Domain",
  58. "description": "JAAS LoginContext domain that shall be used to authenticate users when using JMS.",
  59. "name": "KIE_SERVER_DOMAIN",
  60. "value": "other",
  61. "required": false
  62. },
  63. {
  64. "displayName": "KIE Server JMS Queues Request",
  65. "description": "JNDI name of request queue for JMS.",
  66. "name": "KIE_SERVER_JMS_QUEUES_REQUEST",
  67. "value": "queue/KIE.SERVER.REQUEST",
  68. "required": false
  69. },
  70. {
  71. "displayName": "KIE Server JMS Queues Response",
  72. "description": "JNDI name of response queue for JMS.",
  73. "name": "KIE_SERVER_JMS_QUEUES_RESPONSE",
  74. "value": "queue/KIE.SERVER.RESPONSE",
  75. "required": false
  76. },
  77. {
  78. "displayName": "KIE Server Executor JMS Queue",
  79. "description": "JNDI name of executor queue for JMS.",
  80. "name": "KIE_SERVER_EXECUTOR_JMS_QUEUE",
  81. "value": "queue/KIE.SERVER.EXECUTOR",
  82. "required": false
  83. },
  84. {
  85. "displayName": "KIE Server Persistence Dialect",
  86. "description": "Hibernate persistence dialect.",
  87. "name": "KIE_SERVER_PERSISTENCE_DIALECT",
  88. "value": "org.hibernate.dialect.MySQL5Dialect",
  89. "required": false
  90. },
  91. {
  92. "displayName": "Application Name",
  93. "description": "The name for the application.",
  94. "name": "APPLICATION_NAME",
  95. "value": "kie-app",
  96. "required": true
  97. },
  98. {
  99. "displayName": "Custom http Route Hostname",
  100. "description": "Custom hostname for http service route. Leave blank for default hostname, e.g.: <application-name>-<project>.<default-domain-suffix>",
  101. "name": "HOSTNAME_HTTP",
  102. "value": "",
  103. "required": false
  104. },
  105. {
  106. "displayName": "Custom https Route Hostname",
  107. "description": "Custom hostname for https service route. Leave blank for default hostname, e.g.: secure-<application-name>-<project>.<default-domain-suffix>",
  108. "name": "HOSTNAME_HTTPS",
  109. "value": "",
  110. "required": false
  111. },
  112. {
  113. "displayName": "Git Repository URL",
  114. "description": "Git source URI for application",
  115. "name": "SOURCE_REPOSITORY_URL",
  116. "value": "https://github.com/jboss-openshift/openshift-quickstarts",
  117. "required": true
  118. },
  119. {
  120. "displayName": "Git Reference",
  121. "description": "Git branch/tag reference",
  122. "name": "SOURCE_REPOSITORY_REF",
  123. "value": "1.3",
  124. "required": false
  125. },
  126. {
  127. "displayName": "Context Directory",
  128. "description": "Path within Git project to build; empty for root project directory.",
  129. "name": "CONTEXT_DIR",
  130. "value": "processserver/library",
  131. "required": false
  132. },
  133. {
  134. "displayName": "Database JNDI Name",
  135. "description": "Database JNDI name used by application to resolve the datasource, e.g. java:/jboss/datasources/ExampleDS",
  136. "name": "DB_JNDI",
  137. "value": "java:jboss/datasources/ExampleDS",
  138. "required": false
  139. },
  140. {
  141. "displayName": "Database Name",
  142. "description": "Database name",
  143. "name": "DB_DATABASE",
  144. "value": "root",
  145. "required": true
  146. },
  147. {
  148. "displayName": "Database Volume Capacity",
  149. "description": "Size of persistent storage for database volume.",
  150. "name": "VOLUME_CAPACITY",
  151. "value": "512Mi",
  152. "required": true
  153. },
  154. {
  155. "displayName": "JMS Connection Factory JNDI Name",
  156. "description": "JNDI name for connection factory used by applications to connect to the broker, e.g. java:/JmsXA",
  157. "name": "MQ_JNDI",
  158. "value": "java:/JmsXA",
  159. "required": false
  160. },
  161. {
  162. "displayName": "Split Data?",
  163. "description": "Split the data directory for each node in a mesh.",
  164. "name": "AMQ_SPLIT",
  165. "value": "false",
  166. "required": false
  167. },
  168. {
  169. "displayName": "A-MQ Protocols",
  170. "description": "Broker protocols to configure, separated by commas. Allowed values are: `openwire`, `amqp`, `stomp` and `mqtt`. Only `openwire` is supported by EAP.",
  171. "name": "MQ_PROTOCOL",
  172. "value": "openwire",
  173. "required": false
  174. },
  175. {
  176. "displayName": "Queues",
  177. "description": "Queue names, separated by commas. These queues will be automatically created when the broker starts. Also, they will be made accessible as JNDI resources in EAP.",
  178. "name": "MQ_QUEUES",
  179. "value": "KIE.SERVER.REQUEST,KIE.SERVER.RESPONSE,KIE.SERVER.EXECUTOR",
  180. "required": false
  181. },
  182. {
  183. "displayName": "Topics",
  184. "description": "Topic names, separated by commas. These topics will be automatically created when the broker starts. Also, they will be made accessible as JNDI resources in EAP.",
  185. "name": "MQ_TOPICS",
  186. "value": "",
  187. "required": false
  188. },
  189. {
  190. "displayName": "Server Keystore Secret Name",
  191. "description": "The name of the secret containing the keystore file",
  192. "name": "HTTPS_SECRET",
  193. "value": "processserver-app-secret",
  194. "required": false
  195. },
  196. {
  197. "displayName": "Server Keystore Filename",
  198. "description": "The name of the keystore file within the secret",
  199. "name": "HTTPS_KEYSTORE",
  200. "value": "keystore.jks",
  201. "required": false
  202. },
  203. {
  204. "displayName": "Server Certificate Name",
  205. "description": "The name associated with the server certificate",
  206. "name": "HTTPS_NAME",
  207. "value": "jboss",
  208. "required": false
  209. },
  210. {
  211. "displayName": "Server Keystore Password",
  212. "description": "The password for the keystore and certificate",
  213. "name": "HTTPS_PASSWORD",
  214. "value": "mykeystorepass",
  215. "required": false
  216. },
  217. {
  218. "displayName": "Database Username",
  219. "description": "Database user name",
  220. "name": "DB_USERNAME",
  221. "from": "user[a-zA-Z0-9]{3}",
  222. "generate": "expression",
  223. "required": true
  224. },
  225. {
  226. "displayName": "Database Password",
  227. "description": "Database user password",
  228. "name": "DB_PASSWORD",
  229. "from": "[a-zA-Z0-9]{8}",
  230. "generate": "expression",
  231. "required": true
  232. },
  233. {
  234. "displayName": "Datasource Minimum Pool Size",
  235. "description": "Sets xa-pool/min-pool-size for the configured datasource.",
  236. "name": "DB_MIN_POOL_SIZE",
  237. "required": false
  238. },
  239. {
  240. "displayName": "Datasource Maximum Pool Size",
  241. "description": "Sets xa-pool/max-pool-size for the configured datasource.",
  242. "name": "DB_MAX_POOL_SIZE",
  243. "required": false
  244. },
  245. {
  246. "displayName": "Datasource Transaction Isolation",
  247. "description": "Sets transaction-isolation for the configured datasource.",
  248. "name": "DB_TX_ISOLATION",
  249. "required": false
  250. },
  251. {
  252. "displayName": "MySQL Lower Case Table Names",
  253. "description": "Sets how the table names are stored and compared.",
  254. "name": "MYSQL_LOWER_CASE_TABLE_NAMES",
  255. "required": false
  256. },
  257. {
  258. "displayName": "MySQL Maximum number of connections",
  259. "description": "The maximum permitted number of simultaneous client connections.",
  260. "name": "MYSQL_MAX_CONNECTIONS",
  261. "required": false
  262. },
  263. {
  264. "displayName": "MySQL FullText Minimum Word Length",
  265. "description": "The minimum length of the word to be included in a FULLTEXT index.",
  266. "name": "MYSQL_FT_MIN_WORD_LEN",
  267. "required": false
  268. },
  269. {
  270. "displayName": "MySQL FullText Maximum Word Length",
  271. "description": "The maximum length of the word to be included in a FULLTEXT index.",
  272. "name": "MYSQL_FT_MAX_WORD_LEN",
  273. "required": false
  274. },
  275. {
  276. "displayName": "MySQL AIO",
  277. "description": "Controls the innodb_use_native_aio setting value if the native AIO is broken.",
  278. "name": "MYSQL_AIO",
  279. "required": false
  280. },
  281. {
  282. "displayName": "A-MQ Username",
  283. "description": "User name for standard broker user. It is required for connecting to the broker. If left empty, it will be generated.",
  284. "name": "MQ_USERNAME",
  285. "from": "user[a-zA-Z0-9]{3}",
  286. "generate": "expression",
  287. "required": false
  288. },
  289. {
  290. "displayName": "A-MQ Password",
  291. "description": "Password for standard broker user. It is required for connecting to the broker. If left empty, it will be generated.",
  292. "name": "MQ_PASSWORD",
  293. "from": "[a-zA-Z0-9]{8}",
  294. "generate": "expression",
  295. "required": false
  296. },
  297. {
  298. "displayName": "A-MQ Mesh Discovery Type",
  299. "description": "The discovery agent type to use for discovering mesh endpoints. 'dns' will use OpenShift's DNS service to resolve endpoints. 'kube' will use Kubernetes REST API to resolve service endpoints. If using 'kube' the service account for the pod must have the 'view' role, which can be added via 'oc policy add-role-to-user view system:serviceaccount:<namespace>:default' where <namespace> is the project namespace.",
  300. "name": "AMQ_MESH_DISCOVERY_TYPE",
  301. "value": "kube",
  302. "required": false
  303. },
  304. {
  305. "displayName": "A-MQ Storage Limit",
  306. "description": "The A-MQ storage usage limit",
  307. "name": "AMQ_STORAGE_USAGE_LIMIT",
  308. "value": "100 gb",
  309. "required": false
  310. },
  311. {
  312. "displayName": "Github Webhook Secret",
  313. "description": "GitHub trigger secret",
  314. "name": "GITHUB_WEBHOOK_SECRET",
  315. "from": "[a-zA-Z0-9]{8}",
  316. "generate": "expression",
  317. "required": true
  318. },
  319. {
  320. "displayName": "Generic Webhook Secret",
  321. "description": "Generic build trigger secret",
  322. "name": "GENERIC_WEBHOOK_SECRET",
  323. "from": "[a-zA-Z0-9]{8}",
  324. "generate": "expression",
  325. "required": true
  326. },
  327. {
  328. "displayName": "ImageStream Namespace",
  329. "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.",
  330. "name": "IMAGE_STREAM_NAMESPACE",
  331. "value": "openshift",
  332. "required": true
  333. },
  334. {
  335. "displayName": "Maven mirror URL",
  336. "description": "Maven mirror to use for S2I builds",
  337. "name": "MAVEN_MIRROR_URL",
  338. "value": "",
  339. "required": false
  340. },
  341. {
  342. "description": "List of directories from which archives will be copied into the deployment folder. If unspecified, all archives in /target will be copied.",
  343. "name": "ARTIFACT_DIR",
  344. "value": "",
  345. "required": false
  346. },
  347. {
  348. "displayName": "MySQL Image Stream Tag",
  349. "description": "The tag to use for the \"mysql\" image stream. Typically, this aligns with the major.minor version of MySQL.",
  350. "name": "MYSQL_IMAGE_STREAM_TAG",
  351. "value": "5.7",
  352. "required": true
  353. }
  354. ],
  355. "objects": [
  356. {
  357. "kind": "Service",
  358. "apiVersion": "v1",
  359. "spec": {
  360. "ports": [
  361. {
  362. "port": 8080,
  363. "targetPort": 8080
  364. }
  365. ],
  366. "selector": {
  367. "deploymentConfig": "${APPLICATION_NAME}"
  368. }
  369. },
  370. "metadata": {
  371. "name": "${APPLICATION_NAME}",
  372. "labels": {
  373. "application": "${APPLICATION_NAME}"
  374. },
  375. "annotations": {
  376. "description": "The web server's http port.",
  377. "service.alpha.openshift.io/dependencies": "[{\"name\": \"${APPLICATION_NAME}-mysql\", \"kind\": \"Service\"},{\"name\": \"${APPLICATION_NAME}-amq-tcp\", \"kind\": \"Service\"}]"
  378. }
  379. }
  380. },
  381. {
  382. "kind": "Service",
  383. "apiVersion": "v1",
  384. "spec": {
  385. "ports": [
  386. {
  387. "port": 8443,
  388. "targetPort": 8443
  389. }
  390. ],
  391. "selector": {
  392. "deploymentConfig": "${APPLICATION_NAME}"
  393. }
  394. },
  395. "metadata": {
  396. "name": "secure-${APPLICATION_NAME}",
  397. "labels": {
  398. "application": "${APPLICATION_NAME}"
  399. },
  400. "annotations": {
  401. "description": "The web server's https port.",
  402. "service.alpha.openshift.io/dependencies": "[{\"name\": \"${APPLICATION_NAME}-mysql\", \"kind\": \"Service\"},{\"name\": \"${APPLICATION_NAME}-amq-tcp\", \"kind\": \"Service\"}]"
  403. }
  404. }
  405. },
  406. {
  407. "kind": "Service",
  408. "apiVersion": "v1",
  409. "spec": {
  410. "ports": [
  411. {
  412. "port": 3306,
  413. "targetPort": 3306
  414. }
  415. ],
  416. "selector": {
  417. "deploymentConfig": "${APPLICATION_NAME}-mysql"
  418. }
  419. },
  420. "metadata": {
  421. "name": "${APPLICATION_NAME}-mysql",
  422. "labels": {
  423. "application": "${APPLICATION_NAME}"
  424. },
  425. "annotations": {
  426. "description": "The database server's port."
  427. }
  428. }
  429. },
  430. {
  431. "kind": "Service",
  432. "apiVersion": "v1",
  433. "spec": {
  434. "ports": [
  435. {
  436. "port": 61616,
  437. "targetPort": 61616
  438. }
  439. ],
  440. "selector": {
  441. "deploymentConfig": "${APPLICATION_NAME}-amq"
  442. }
  443. },
  444. "metadata": {
  445. "name": "${APPLICATION_NAME}-amq-tcp",
  446. "labels": {
  447. "application": "${APPLICATION_NAME}"
  448. },
  449. "annotations": {
  450. "description": "The broker's OpenWire port."
  451. }
  452. }
  453. },
  454. {
  455. "kind": "Route",
  456. "apiVersion": "v1",
  457. "id": "${APPLICATION_NAME}-http",
  458. "metadata": {
  459. "name": "${APPLICATION_NAME}",
  460. "labels": {
  461. "application": "${APPLICATION_NAME}"
  462. },
  463. "annotations": {
  464. "description": "Route for application's http service."
  465. }
  466. },
  467. "spec": {
  468. "host": "${HOSTNAME_HTTP}",
  469. "to": {
  470. "name": "${APPLICATION_NAME}"
  471. }
  472. }
  473. },
  474. {
  475. "kind": "Route",
  476. "apiVersion": "v1",
  477. "id": "${APPLICATION_NAME}-https",
  478. "metadata": {
  479. "name": "secure-${APPLICATION_NAME}",
  480. "labels": {
  481. "application": "${APPLICATION_NAME}"
  482. },
  483. "annotations": {
  484. "description": "Route for application's https service."
  485. }
  486. },
  487. "spec": {
  488. "host": "${HOSTNAME_HTTPS}",
  489. "to": {
  490. "name": "secure-${APPLICATION_NAME}"
  491. },
  492. "tls": {
  493. "termination": "passthrough"
  494. }
  495. }
  496. },
  497. {
  498. "kind": "ImageStream",
  499. "apiVersion": "v1",
  500. "metadata": {
  501. "name": "${APPLICATION_NAME}",
  502. "labels": {
  503. "application": "${APPLICATION_NAME}"
  504. }
  505. }
  506. },
  507. {
  508. "kind": "BuildConfig",
  509. "apiVersion": "v1",
  510. "metadata": {
  511. "name": "${APPLICATION_NAME}",
  512. "labels": {
  513. "application": "${APPLICATION_NAME}"
  514. }
  515. },
  516. "spec": {
  517. "source": {
  518. "type": "Git",
  519. "git": {
  520. "uri": "${SOURCE_REPOSITORY_URL}",
  521. "ref": "${SOURCE_REPOSITORY_REF}"
  522. },
  523. "contextDir": "${CONTEXT_DIR}"
  524. },
  525. "strategy": {
  526. "type": "Source",
  527. "sourceStrategy": {
  528. "env": [
  529. {
  530. "name": "KIE_CONTAINER_DEPLOYMENT",
  531. "value": "${KIE_CONTAINER_DEPLOYMENT}"
  532. },
  533. {
  534. "name": "MAVEN_MIRROR_URL",
  535. "value": "${MAVEN_MIRROR_URL}"
  536. },
  537. {
  538. "name": "ARTIFACT_DIR",
  539. "value": "${ARTIFACT_DIR}"
  540. }
  541. ],
  542. "forcePull": true,
  543. "from": {
  544. "kind": "ImageStreamTag",
  545. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  546. "name": "jboss-processserver63-openshift:1.4"
  547. }
  548. }
  549. },
  550. "output": {
  551. "to": {
  552. "kind": "ImageStreamTag",
  553. "name": "${APPLICATION_NAME}:latest"
  554. }
  555. },
  556. "triggers": [
  557. {
  558. "type": "GitHub",
  559. "github": {
  560. "secret": "${GITHUB_WEBHOOK_SECRET}"
  561. }
  562. },
  563. {
  564. "type": "Generic",
  565. "generic": {
  566. "secret": "${GENERIC_WEBHOOK_SECRET}"
  567. }
  568. },
  569. {
  570. "type": "ImageChange",
  571. "imageChange": {}
  572. },
  573. {
  574. "type": "ConfigChange"
  575. }
  576. ]
  577. }
  578. },
  579. {
  580. "kind": "DeploymentConfig",
  581. "apiVersion": "v1",
  582. "metadata": {
  583. "name": "${APPLICATION_NAME}",
  584. "labels": {
  585. "application": "${APPLICATION_NAME}"
  586. }
  587. },
  588. "spec": {
  589. "strategy": {
  590. "type": "Recreate"
  591. },
  592. "triggers": [
  593. {
  594. "type": "ImageChange",
  595. "imageChangeParams": {
  596. "automatic": true,
  597. "containerNames": [
  598. "${APPLICATION_NAME}"
  599. ],
  600. "from": {
  601. "kind": "ImageStream",
  602. "name": "${APPLICATION_NAME}"
  603. }
  604. }
  605. },
  606. {
  607. "type": "ConfigChange"
  608. }
  609. ],
  610. "replicas": 1,
  611. "selector": {
  612. "deploymentConfig": "${APPLICATION_NAME}"
  613. },
  614. "template": {
  615. "metadata": {
  616. "name": "${APPLICATION_NAME}",
  617. "labels": {
  618. "deploymentConfig": "${APPLICATION_NAME}",
  619. "application": "${APPLICATION_NAME}"
  620. }
  621. },
  622. "spec": {
  623. "serviceAccountName": "processserver-service-account",
  624. "terminationGracePeriodSeconds": 60,
  625. "containers": [
  626. {
  627. "name": "${APPLICATION_NAME}",
  628. "image": "${APPLICATION_NAME}",
  629. "imagePullPolicy": "Always",
  630. "volumeMounts": [
  631. {
  632. "name": "processserver-keystore-volume",
  633. "mountPath": "/etc/processserver-secret-volume",
  634. "readOnly": true
  635. }
  636. ],
  637. "livenessProbe": {
  638. "exec": {
  639. "command": [
  640. "/bin/bash",
  641. "-c",
  642. "/opt/eap/bin/livenessProbe.sh"
  643. ]
  644. }
  645. },
  646. "readinessProbe": {
  647. "exec": {
  648. "command": [
  649. "/bin/bash",
  650. "-c",
  651. "/opt/eap/bin/readinessProbe.sh"
  652. ]
  653. }
  654. },
  655. "ports": [
  656. {
  657. "name": "jolokia",
  658. "containerPort": 8778,
  659. "protocol": "TCP"
  660. },
  661. {
  662. "name": "http",
  663. "containerPort": 8080,
  664. "protocol": "TCP"
  665. },
  666. {
  667. "name": "https",
  668. "containerPort": 8443,
  669. "protocol": "TCP"
  670. }
  671. ],
  672. "env": [
  673. {
  674. "name": "KIE_CONTAINER_DEPLOYMENT",
  675. "value": "${KIE_CONTAINER_DEPLOYMENT}"
  676. },
  677. {
  678. "name": "KIE_SERVER_PROTOCOL",
  679. "value": "${KIE_SERVER_PROTOCOL}"
  680. },
  681. {
  682. "name": "KIE_SERVER_PORT",
  683. "value": "${KIE_SERVER_PORT}"
  684. },
  685. {
  686. "name": "KIE_SERVER_USER",
  687. "value": "${KIE_SERVER_USER}"
  688. },
  689. {
  690. "name": "KIE_SERVER_PASSWORD",
  691. "value": "${KIE_SERVER_PASSWORD}"
  692. },
  693. {
  694. "name": "KIE_SERVER_DOMAIN",
  695. "value": "${KIE_SERVER_DOMAIN}"
  696. },
  697. {
  698. "name": "KIE_SERVER_JMS_QUEUES_REQUEST",
  699. "value": "${KIE_SERVER_JMS_QUEUES_REQUEST}"
  700. },
  701. {
  702. "name": "KIE_SERVER_JMS_QUEUES_RESPONSE",
  703. "value": "${KIE_SERVER_JMS_QUEUES_RESPONSE}"
  704. },
  705. {
  706. "name": "KIE_SERVER_EXECUTOR_JMS_QUEUE",
  707. "value": "${KIE_SERVER_EXECUTOR_JMS_QUEUE}"
  708. },
  709. {
  710. "name": "MQ_SERVICE_PREFIX_MAPPING",
  711. "value": "${APPLICATION_NAME}-amq=MQ"
  712. },
  713. {
  714. "name": "MQ_JNDI",
  715. "value": "${MQ_JNDI}"
  716. },
  717. {
  718. "name": "MQ_USERNAME",
  719. "value": "${MQ_USERNAME}"
  720. },
  721. {
  722. "name": "MQ_PASSWORD",
  723. "value": "${MQ_PASSWORD}"
  724. },
  725. {
  726. "name": "MQ_PROTOCOL",
  727. "value": "tcp"
  728. },
  729. {
  730. "name": "MQ_QUEUES",
  731. "value": "${MQ_QUEUES}"
  732. },
  733. {
  734. "name": "MQ_TOPICS",
  735. "value": "${MQ_TOPICS}"
  736. },
  737. {
  738. "name": "KIE_SERVER_PERSISTENCE_DIALECT",
  739. "value": "${KIE_SERVER_PERSISTENCE_DIALECT}"
  740. },
  741. {
  742. "name": "DB_SERVICE_PREFIX_MAPPING",
  743. "value": "${APPLICATION_NAME}-mysql=DB,${APPLICATION_NAME}-mysql=QUARTZ"
  744. },
  745. {
  746. "name": "TX_DATABASE_PREFIX_MAPPING",
  747. "value": "${APPLICATION_NAME}-mysql=DB"
  748. },
  749. {
  750. "name": "DB_JNDI",
  751. "value": "${DB_JNDI}"
  752. },
  753. {
  754. "name": "DB_USERNAME",
  755. "value": "${DB_USERNAME}"
  756. },
  757. {
  758. "name": "DB_PASSWORD",
  759. "value": "${DB_PASSWORD}"
  760. },
  761. {
  762. "name": "DB_DATABASE",
  763. "value": "${DB_DATABASE}"
  764. },
  765. {
  766. "name": "DB_MIN_POOL_SIZE",
  767. "value": "${DB_MIN_POOL_SIZE}"
  768. },
  769. {
  770. "name": "DB_MAX_POOL_SIZE",
  771. "value": "${DB_MAX_POOL_SIZE}"
  772. },
  773. {
  774. "name": "DB_TX_ISOLATION",
  775. "value": "${DB_TX_ISOLATION}"
  776. },
  777. {
  778. "name": "QUARTZ_JNDI",
  779. "value": "${DB_JNDI}NotManaged"
  780. },
  781. {
  782. "name": "QUARTZ_USERNAME",
  783. "value": "${DB_USERNAME}"
  784. },
  785. {
  786. "name": "QUARTZ_PASSWORD",
  787. "value": "${DB_PASSWORD}"
  788. },
  789. {
  790. "name": "QUARTZ_DATABASE",
  791. "value": "${DB_DATABASE}"
  792. },
  793. {
  794. "name": "QUARTZ_MIN_POOL_SIZE",
  795. "value": "${DB_MIN_POOL_SIZE}"
  796. },
  797. {
  798. "name": "QUARTZ_MAX_POOL_SIZE",
  799. "value": "${DB_MAX_POOL_SIZE}"
  800. },
  801. {
  802. "name": "QUARTZ_TX_ISOLATION",
  803. "value": "${DB_TX_ISOLATION}"
  804. },
  805. {
  806. "name": "QUARTZ_JTA",
  807. "value": "false"
  808. },
  809. {
  810. "name": "QUARTZ_NONXA",
  811. "value": "true"
  812. },
  813. {
  814. "name": "HTTPS_KEYSTORE_DIR",
  815. "value": "/etc/processserver-secret-volume"
  816. },
  817. {
  818. "name": "HTTPS_KEYSTORE",
  819. "value": "${HTTPS_KEYSTORE}"
  820. },
  821. {
  822. "name": "HTTPS_NAME",
  823. "value": "${HTTPS_NAME}"
  824. },
  825. {
  826. "name": "HTTPS_PASSWORD",
  827. "value": "${HTTPS_PASSWORD}"
  828. }
  829. ]
  830. }
  831. ],
  832. "volumes": [
  833. {
  834. "name": "processserver-keystore-volume",
  835. "secret": {
  836. "secretName": "${HTTPS_SECRET}"
  837. }
  838. }
  839. ]
  840. }
  841. }
  842. }
  843. },
  844. {
  845. "kind": "DeploymentConfig",
  846. "apiVersion": "v1",
  847. "metadata": {
  848. "name": "${APPLICATION_NAME}-mysql",
  849. "labels": {
  850. "application": "${APPLICATION_NAME}"
  851. }
  852. },
  853. "spec": {
  854. "strategy": {
  855. "type": "Recreate"
  856. },
  857. "triggers": [
  858. {
  859. "type": "ImageChange",
  860. "imageChangeParams": {
  861. "automatic": true,
  862. "containerNames": [
  863. "${APPLICATION_NAME}-mysql"
  864. ],
  865. "from": {
  866. "kind": "ImageStreamTag",
  867. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  868. "name": "mysql:${MYSQL_IMAGE_STREAM_TAG}"
  869. }
  870. }
  871. },
  872. {
  873. "type": "ConfigChange"
  874. }
  875. ],
  876. "replicas": 1,
  877. "selector": {
  878. "deploymentConfig": "${APPLICATION_NAME}-mysql"
  879. },
  880. "template": {
  881. "metadata": {
  882. "name": "${APPLICATION_NAME}-mysql",
  883. "labels": {
  884. "deploymentConfig": "${APPLICATION_NAME}-mysql",
  885. "application": "${APPLICATION_NAME}"
  886. }
  887. },
  888. "spec": {
  889. "terminationGracePeriodSeconds": 60,
  890. "containers": [
  891. {
  892. "name": "${APPLICATION_NAME}-mysql",
  893. "image": "mysql",
  894. "imagePullPolicy": "Always",
  895. "ports": [
  896. {
  897. "containerPort": 3306,
  898. "protocol": "TCP"
  899. }
  900. ],
  901. "volumeMounts": [
  902. {
  903. "mountPath": "/var/lib/mysql/data",
  904. "name": "${APPLICATION_NAME}-mysql-pvol"
  905. }
  906. ],
  907. "env": [
  908. {
  909. "name": "MYSQL_USER",
  910. "value": "${DB_USERNAME}"
  911. },
  912. {
  913. "name": "MYSQL_PASSWORD",
  914. "value": "${DB_PASSWORD}"
  915. },
  916. {
  917. "name": "MYSQL_DATABASE",
  918. "value": "${DB_DATABASE}"
  919. },
  920. {
  921. "name": "MYSQL_LOWER_CASE_TABLE_NAMES",
  922. "value": "${MYSQL_LOWER_CASE_TABLE_NAMES}"
  923. },
  924. {
  925. "name": "MYSQL_MAX_CONNECTIONS",
  926. "value": "${MYSQL_MAX_CONNECTIONS}"
  927. },
  928. {
  929. "name": "MYSQL_FT_MIN_WORD_LEN",
  930. "value": "${MYSQL_FT_MIN_WORD_LEN}"
  931. },
  932. {
  933. "name": "MYSQL_FT_MAX_WORD_LEN",
  934. "value": "${MYSQL_FT_MAX_WORD_LEN}"
  935. },
  936. {
  937. "name": "MYSQL_AIO",
  938. "value": "${MYSQL_AIO}"
  939. }
  940. ]
  941. }
  942. ],
  943. "volumes": [
  944. {
  945. "name": "${APPLICATION_NAME}-mysql-pvol",
  946. "persistentVolumeClaim": {
  947. "claimName": "${APPLICATION_NAME}-mysql-claim"
  948. }
  949. }
  950. ]
  951. }
  952. }
  953. }
  954. },
  955. {
  956. "apiVersion": "v1",
  957. "kind": "PersistentVolumeClaim",
  958. "metadata": {
  959. "name": "${APPLICATION_NAME}-mysql-claim",
  960. "labels": {
  961. "application": "${APPLICATION_NAME}"
  962. }
  963. },
  964. "spec": {
  965. "accessModes": [
  966. "ReadWriteOnce"
  967. ],
  968. "resources": {
  969. "requests": {
  970. "storage": "${VOLUME_CAPACITY}"
  971. }
  972. }
  973. }
  974. },
  975. {
  976. "kind": "DeploymentConfig",
  977. "apiVersion": "v1",
  978. "metadata": {
  979. "name": "${APPLICATION_NAME}-amq",
  980. "labels": {
  981. "application": "${APPLICATION_NAME}"
  982. }
  983. },
  984. "spec": {
  985. "strategy": {
  986. "type": "Recreate"
  987. },
  988. "triggers": [
  989. {
  990. "type": "ImageChange",
  991. "imageChangeParams": {
  992. "automatic": true,
  993. "containerNames": [
  994. "${APPLICATION_NAME}-amq"
  995. ],
  996. "from": {
  997. "kind": "ImageStreamTag",
  998. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  999. "name": "jboss-amq-62:1.4"
  1000. }
  1001. }
  1002. },
  1003. {
  1004. "type": "ConfigChange"
  1005. }
  1006. ],
  1007. "replicas": 1,
  1008. "selector": {
  1009. "deploymentConfig": "${APPLICATION_NAME}-amq"
  1010. },
  1011. "template": {
  1012. "metadata": {
  1013. "name": "${APPLICATION_NAME}-amq",
  1014. "labels": {
  1015. "deploymentConfig": "${APPLICATION_NAME}-amq",
  1016. "application": "${APPLICATION_NAME}"
  1017. }
  1018. },
  1019. "spec": {
  1020. "terminationGracePeriodSeconds": 60,
  1021. "containers": [
  1022. {
  1023. "name": "${APPLICATION_NAME}-amq",
  1024. "image": "jboss-amq-62",
  1025. "imagePullPolicy": "Always",
  1026. "volumeMounts": [
  1027. {
  1028. "mountPath": "/opt/amq/data",
  1029. "name": "${APPLICATION_NAME}-amq-pvol"
  1030. }
  1031. ],
  1032. "readinessProbe": {
  1033. "exec": {
  1034. "command": [
  1035. "/bin/bash",
  1036. "-c",
  1037. "/opt/amq/bin/readinessProbe.sh"
  1038. ]
  1039. }
  1040. },
  1041. "ports": [
  1042. {
  1043. "name": "jolokia",
  1044. "containerPort": 8778,
  1045. "protocol": "TCP"
  1046. },
  1047. {
  1048. "name": "amqp",
  1049. "containerPort": 5672,
  1050. "protocol": "TCP"
  1051. },
  1052. {
  1053. "name": "amqp-ssl",
  1054. "containerPort": 5671,
  1055. "protocol": "TCP"
  1056. },
  1057. {
  1058. "name": "mqtt",
  1059. "containerPort": 1883,
  1060. "protocol": "TCP"
  1061. },
  1062. {
  1063. "name": "stomp",
  1064. "containerPort": 61613,
  1065. "protocol": "TCP"
  1066. },
  1067. {
  1068. "name": "stomp-ssl",
  1069. "containerPort": 61612,
  1070. "protocol": "TCP"
  1071. },
  1072. {
  1073. "name": "tcp",
  1074. "containerPort": 61616,
  1075. "protocol": "TCP"
  1076. },
  1077. {
  1078. "name": "tcp-ssl",
  1079. "containerPort": 61617,
  1080. "protocol": "TCP"
  1081. }
  1082. ],
  1083. "env": [
  1084. {
  1085. "name": "AMQ_USER",
  1086. "value": "${MQ_USERNAME}"
  1087. },
  1088. {
  1089. "name": "AMQ_PASSWORD",
  1090. "value": "${MQ_PASSWORD}"
  1091. },
  1092. {
  1093. "name": "AMQ_TRANSPORTS",
  1094. "value": "${MQ_PROTOCOL}"
  1095. },
  1096. {
  1097. "name": "AMQ_SPLIT",
  1098. "value": "${AMQ_SPLIT}"
  1099. },
  1100. {
  1101. "name": "AMQ_MESH_DISCOVERY_TYPE",
  1102. "value": "${AMQ_MESH_DISCOVERY_TYPE}"
  1103. },
  1104. {
  1105. "name": "AMQ_MESH_SERVICE_NAME",
  1106. "value": "${APPLICATION_NAME}-amq-tcp"
  1107. },
  1108. {
  1109. "name": "AMQ_MESH_SERVICE_NAMESPACE",
  1110. "valueFrom": {
  1111. "fieldRef": {
  1112. "fieldPath": "metadata.namespace"
  1113. }
  1114. }
  1115. },
  1116. {
  1117. "name": "AMQ_STORAGE_USAGE_LIMIT",
  1118. "value": "${AMQ_STORAGE_USAGE_LIMIT}"
  1119. }
  1120. ]
  1121. }
  1122. ],
  1123. "volumes": [
  1124. {
  1125. "name": "${APPLICATION_NAME}-amq-pvol",
  1126. "persistentVolumeClaim": {
  1127. "claimName": "${APPLICATION_NAME}-amq-claim"
  1128. }
  1129. }
  1130. ]
  1131. }
  1132. }
  1133. }
  1134. },
  1135. {
  1136. "apiVersion": "v1",
  1137. "kind": "PersistentVolumeClaim",
  1138. "metadata": {
  1139. "name": "${APPLICATION_NAME}-amq-claim",
  1140. "labels": {
  1141. "application": "${APPLICATION_NAME}"
  1142. }
  1143. },
  1144. "spec": {
  1145. "accessModes": [
  1146. "ReadWriteMany"
  1147. ],
  1148. "resources": {
  1149. "requests": {
  1150. "storage": "${VOLUME_CAPACITY}"
  1151. }
  1152. }
  1153. }
  1154. }
  1155. ]
  1156. }