spring-boot-camel-teiid-template.json 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. {
  2. "apiVersion": "v1",
  3. "kind": "Template",
  4. "metadata": {
  5. "annotations": {
  6. "description": "Spring-Boot, Camel and JBoss Data Virtualization QuickStart. This example demonstrates how to connect Apache Camel to a remote JBoss Data Virtualization (or Teiid) Server using the JDBC protocol. This quickstart assumes that the JDV server is already running and configured on OpenShift, more information about to setup a JDV server can be found at https://github.com/fabric8-quickstarts/spring-boot-camel-teiid/blob/fis-2.0.x.redhat/README.redhat.md",
  7. "tags": "quickstart,java,springboot,fis",
  8. "iconClass": "icon-jboss",
  9. "version": "2.0"
  10. },
  11. "name": "s2i-spring-boot-camel-teiid"
  12. },
  13. "labels": {
  14. "template": "s2i-spring-boot-camel-teiid"
  15. },
  16. "parameters": [
  17. {
  18. "name": "APP_NAME",
  19. "displayName": "Application Name",
  20. "required": true,
  21. "value": "s2i-spring-boot-camel-teiid",
  22. "description": "The name assigned to the application."
  23. },
  24. {
  25. "name": "GIT_REPO",
  26. "displayName": "Git Repository URL",
  27. "required": true,
  28. "value": "https://github.com/fabric8-quickstarts/spring-boot-camel-teiid.git",
  29. "description": "The URL of the repository with your application source code."
  30. },
  31. {
  32. "name": "GIT_REF",
  33. "displayName": "Git Reference",
  34. "value": "spring-boot-camel-teiid-1.0.0.redhat-000065",
  35. "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch."
  36. },
  37. {
  38. "name": "TEIID_SERVICE_NAME",
  39. "displayName": "JDV Server Name",
  40. "required": true,
  41. "value": "datavirt-app",
  42. "description": "Set this to the name of the JDV Server. You may need to create an instance before."
  43. },
  44. {
  45. "name": "TEIID_PORT_NAME",
  46. "displayName": "JDV Port Name",
  47. "value": "jdbc",
  48. "description": "Set this to the name of the JDV port to use. Set this value if the JDV service contains multiple named ports."
  49. },
  50. {
  51. "name": "TEIID_USERNAME",
  52. "displayName": "JDV Server Username",
  53. "required": true,
  54. "description": "The username used to authenticate with the JDV Server."
  55. },
  56. {
  57. "name": "TEIID_PASSWORD",
  58. "displayName": "JDV Server Password",
  59. "required": true,
  60. "description": "The password used to authenticate with the JDV Server."
  61. },
  62. {
  63. "name": "BUILDER_VERSION",
  64. "displayName": "Builder version",
  65. "value": "2.0",
  66. "description": "The version of the FIS S2I builder image to use."
  67. },
  68. {
  69. "name": "APP_VERSION",
  70. "displayName": "Application Version",
  71. "value": "1.0.0.redhat-000065",
  72. "description": "The application version."
  73. },
  74. {
  75. "name": "MAVEN_ARGS",
  76. "displayName": "Maven Arguments",
  77. "value": "package -DskipTests -Dfabric8.skip -e -B",
  78. "description": "Arguments passed to mvn in the build."
  79. },
  80. {
  81. "name": "MAVEN_ARGS_APPEND",
  82. "displayName": "Extra Maven Arguments",
  83. "description": "Extra arguments passed to mvn, e.g. for multi-module builds."
  84. },
  85. {
  86. "name": "ARTIFACT_DIR",
  87. "displayName": "Maven build directory",
  88. "description": "Directory of the artifact to be built, e.g. for multi-module builds."
  89. },
  90. {
  91. "name": "IMAGE_STREAM_NAMESPACE",
  92. "displayName": "Image Stream Namespace",
  93. "value": "openshift",
  94. "required": true,
  95. "description": "Namespace in which the Fuse ImageStreams 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."
  96. },
  97. {
  98. "name": "BUILD_SECRET",
  99. "displayName": "Git Build Secret",
  100. "generate": "expression",
  101. "description": "The secret needed to trigger a build.",
  102. "from": "[a-zA-Z0-9]{40}"
  103. },
  104. {
  105. "name": "CPU_REQUEST",
  106. "displayName": "CPU request",
  107. "value": "0.2",
  108. "required": true,
  109. "description": "The amount of CPU to requests."
  110. },
  111. {
  112. "name": "CPU_LIMIT",
  113. "displayName": "CPU limit",
  114. "value": "1.0",
  115. "required": true,
  116. "description": "The amount of CPU the container is limited to use."
  117. }
  118. ],
  119. "objects": [
  120. {
  121. "kind": "ImageStream",
  122. "apiVersion": "v1",
  123. "metadata": {
  124. "name": "${APP_NAME}",
  125. "creationTimestamp": null,
  126. "labels": {
  127. "component": "${APP_NAME}",
  128. "group": "quickstarts",
  129. "project": "${APP_NAME}",
  130. "provider": "s2i",
  131. "version": "${APP_VERSION}"
  132. }
  133. },
  134. "spec": {},
  135. "status": {
  136. "dockerImageRepository": ""
  137. }
  138. },
  139. {
  140. "kind": "BuildConfig",
  141. "apiVersion": "v1",
  142. "metadata": {
  143. "name": "${APP_NAME}",
  144. "creationTimestamp": null,
  145. "labels": {
  146. "component": "${APP_NAME}",
  147. "group": "quickstarts",
  148. "project": "${APP_NAME}",
  149. "provider": "s2i",
  150. "version": "${APP_VERSION}"
  151. }
  152. },
  153. "spec": {
  154. "triggers": [
  155. {
  156. "type": "GitHub",
  157. "github": {
  158. "secret": "${BUILD_SECRET}"
  159. }
  160. },
  161. {
  162. "type": "Generic",
  163. "generic": {
  164. "secret": "${BUILD_SECRET}"
  165. }
  166. },
  167. {
  168. "type": "ConfigChange"
  169. },
  170. {
  171. "type": "ImageChange",
  172. "imageChange": {}
  173. }
  174. ],
  175. "source": {
  176. "type": "Git",
  177. "git": {
  178. "uri": "${GIT_REPO}",
  179. "ref": "${GIT_REF}"
  180. }
  181. },
  182. "strategy": {
  183. "type": "Source",
  184. "sourceStrategy": {
  185. "from": {
  186. "kind": "ImageStreamTag",
  187. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  188. "name": "fis-java-openshift:${BUILDER_VERSION}"
  189. },
  190. "forcePull": true,
  191. "incremental": true,
  192. "env": [
  193. {
  194. "name": "BUILD_LOGLEVEL",
  195. "value": "5"
  196. },
  197. {
  198. "name": "ARTIFACT_DIR",
  199. "value": "${ARTIFACT_DIR}"
  200. },
  201. {
  202. "name": "MAVEN_ARGS",
  203. "value": "${MAVEN_ARGS}"
  204. },
  205. {
  206. "name": "MAVEN_ARGS_APPEND",
  207. "value": "${MAVEN_ARGS_APPEND}"
  208. }
  209. ]
  210. }
  211. },
  212. "output": {
  213. "to": {
  214. "kind": "ImageStreamTag",
  215. "name": "${APP_NAME}:latest"
  216. }
  217. },
  218. "resources": {}
  219. },
  220. "status": {
  221. "lastVersion": 0
  222. }
  223. },
  224. {
  225. "kind": "DeploymentConfig",
  226. "apiVersion": "v1",
  227. "metadata": {
  228. "name": "${APP_NAME}",
  229. "creationTimestamp": null,
  230. "labels": {
  231. "component": "${APP_NAME}",
  232. "group": "quickstarts",
  233. "project": "${APP_NAME}",
  234. "provider": "s2i",
  235. "version": "${APP_VERSION}"
  236. }
  237. },
  238. "spec": {
  239. "strategy": {
  240. "resources": {}
  241. },
  242. "triggers": [
  243. {
  244. "type": "ConfigChange"
  245. },
  246. {
  247. "type": "ImageChange",
  248. "imageChangeParams": {
  249. "automatic": true,
  250. "containerNames": [
  251. "${APP_NAME}"
  252. ],
  253. "from": {
  254. "kind": "ImageStreamTag",
  255. "name": "${APP_NAME}:latest"
  256. }
  257. }
  258. }
  259. ],
  260. "replicas": 1,
  261. "selector": {
  262. "component": "${APP_NAME}",
  263. "deploymentconfig": "${APP_NAME}",
  264. "group": "quickstarts",
  265. "project": "${APP_NAME}",
  266. "provider": "s2i",
  267. "version": "${APP_VERSION}"
  268. },
  269. "template": {
  270. "metadata": {
  271. "creationTimestamp": null,
  272. "labels": {
  273. "component": "${APP_NAME}",
  274. "deploymentconfig": "${APP_NAME}",
  275. "group": "quickstarts",
  276. "project": "${APP_NAME}",
  277. "provider": "s2i",
  278. "version": "${APP_VERSION}"
  279. }
  280. },
  281. "spec": {
  282. "containers": [
  283. {
  284. "name": "${APP_NAME}",
  285. "image": "library/${APP_NAME}:latest",
  286. "readinessProbe" : {
  287. "httpGet" : {
  288. "path" : "/health",
  289. "port" : 8081
  290. },
  291. "initialDelaySeconds" : 10
  292. },
  293. "livenessProbe" : {
  294. "httpGet" : {
  295. "path" : "/health",
  296. "port" : 8081
  297. },
  298. "initialDelaySeconds" : 180
  299. },
  300. "ports": [
  301. {
  302. "containerPort": 8778,
  303. "name": "jolokia"
  304. }
  305. ],
  306. "env" : [
  307. {
  308. "name" : "KUBERNETES_NAMESPACE",
  309. "valueFrom" : {
  310. "fieldRef" : {
  311. "fieldPath" : "metadata.namespace"
  312. }
  313. }
  314. }, {
  315. "name": "TEIID_SERVICE_NAME",
  316. "value": "${TEIID_SERVICE_NAME}"
  317. }, {
  318. "name": "TEIID_PORT_NAME",
  319. "value": "${TEIID_PORT_NAME}"
  320. }, {
  321. "name": "TEIID_USERNAME",
  322. "value": "${TEIID_USERNAME}"
  323. }, {
  324. "name": "TEIID_PASSWORD",
  325. "value": "${TEIID_PASSWORD}"
  326. }],
  327. "resources": {
  328. "requests": {
  329. "cpu": "${CPU_REQUEST}"
  330. },
  331. "limits": {
  332. "cpu": "${CPU_LIMIT}"
  333. }
  334. }
  335. }
  336. ]
  337. }
  338. }
  339. },
  340. "status": {}
  341. }
  342. ]
  343. }