processserver64-amq-mysql-s2i.json 44 KB

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