spring-boot-cxf-jaxws-template.json 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. {
  2. "apiVersion": "v1",
  3. "kind": "Template",
  4. "metadata": {
  5. "annotations": {
  6. "description": "Spring-Boot and CXF JAXWS QuickStart. This example demonstrates how you can use Apache CXF JAXWS with Spring Boot on Openshift. The quickstart uses Spring Boot to configure a little application that includes a CXF JAXWS endpoint.",
  7. "tags": "quickstart,java,springboot,fis",
  8. "iconClass": "icon-jboss",
  9. "version": "2.0"
  10. },
  11. "name": "s2i-spring-boot-cxf-jaxws"
  12. },
  13. "labels": {
  14. "template": "s2i-spring-boot-cxf-jaxws"
  15. },
  16. "parameters": [
  17. {
  18. "name": "APP_NAME",
  19. "displayName": "Application Name",
  20. "required": true,
  21. "value": "s2i-spring-boot-cxf-jaxws",
  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-cxf-jaxws.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-cxf-jaxws-1.0.0.redhat-000017",
  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": "SERVICE_NAME",
  39. "displayName": "Service Name",
  40. "value": "cxf-jaxws",
  41. "description": "Exposed service name."
  42. },
  43. {
  44. "name": "BUILDER_VERSION",
  45. "displayName": "Builder version",
  46. "value": "2.0",
  47. "description": "The version of the FIS S2I builder image to use."
  48. },
  49. {
  50. "name": "APP_VERSION",
  51. "displayName": "Application Version",
  52. "value": "1.0.0.redhat-000017",
  53. "description": "The application version."
  54. },
  55. {
  56. "name": "MAVEN_ARGS",
  57. "displayName": "Maven Arguments",
  58. "value": "package -DskipTests -Dfabric8.skip -e -B",
  59. "description": "Arguments passed to mvn in the build."
  60. },
  61. {
  62. "name": "MAVEN_ARGS_APPEND",
  63. "displayName": "Extra Maven Arguments",
  64. "description": "Extra arguments passed to mvn, e.g. for multi-module builds."
  65. },
  66. {
  67. "name": "ARTIFACT_DIR",
  68. "displayName": "Maven build directory",
  69. "description": "Directory of the artifact to be built, e.g. for multi-module builds."
  70. },
  71. {
  72. "name": "IMAGE_STREAM_NAMESPACE",
  73. "displayName": "Image Stream Namespace",
  74. "value": "openshift",
  75. "required": true,
  76. "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."
  77. },
  78. {
  79. "name": "BUILD_SECRET",
  80. "displayName": "Git Build Secret",
  81. "generate": "expression",
  82. "description": "The secret needed to trigger a build.",
  83. "from": "[a-zA-Z0-9]{40}"
  84. },
  85. {
  86. "name": "CPU_REQUEST",
  87. "displayName": "CPU request",
  88. "value": "0.2",
  89. "required": true,
  90. "description": "The amount of CPU to requests."
  91. },
  92. {
  93. "name": "CPU_LIMIT",
  94. "displayName": "CPU limit",
  95. "value": "1.0",
  96. "required": true,
  97. "description": "The amount of CPU the container is limited to use."
  98. }
  99. ],
  100. "objects": [
  101. {
  102. "apiVersion": "v1",
  103. "kind": "Route",
  104. "metadata": {
  105. "labels": {
  106. "component": "${APP_NAME}",
  107. "provider": "s2i",
  108. "project": "${APP_NAME}",
  109. "version": "${APP_VERSION}",
  110. "group": "quickstarts"
  111. },
  112. "name": "${SERVICE_NAME}-route"
  113. },
  114. "spec": {
  115. "to": {
  116. "kind": "Service",
  117. "name": "${SERVICE_NAME}"
  118. }
  119. }
  120. },
  121. {
  122. "apiVersion": "v1",
  123. "kind": "Service",
  124. "metadata": {
  125. "annotations": {
  126. },
  127. "labels": {
  128. "component": "${APP_NAME}",
  129. "provider": "s2i",
  130. "project": "${APP_NAME}",
  131. "version": "${APP_VERSION}",
  132. "group": "quickstarts"
  133. },
  134. "name": "${SERVICE_NAME}"
  135. },
  136. "spec": {
  137. "clusterIP": "None",
  138. "deprecatedPublicIPs": [],
  139. "ports": [
  140. {
  141. "port": 9414,
  142. "protocol": "TCP",
  143. "targetPort": 8080
  144. }
  145. ],
  146. "selector": {
  147. "project": "${APP_NAME}",
  148. "component": "${APP_NAME}",
  149. "provider": "s2i",
  150. "group": "quickstarts"
  151. }
  152. }
  153. },
  154. {
  155. "kind": "ImageStream",
  156. "apiVersion": "v1",
  157. "metadata": {
  158. "name": "${APP_NAME}",
  159. "creationTimestamp": null,
  160. "labels": {
  161. "component": "${APP_NAME}",
  162. "group": "quickstarts",
  163. "project": "${APP_NAME}",
  164. "provider": "s2i",
  165. "version": "${APP_VERSION}"
  166. }
  167. },
  168. "spec": {},
  169. "status": {
  170. "dockerImageRepository": ""
  171. }
  172. },
  173. {
  174. "kind": "BuildConfig",
  175. "apiVersion": "v1",
  176. "metadata": {
  177. "name": "${APP_NAME}",
  178. "creationTimestamp": null,
  179. "labels": {
  180. "component": "${APP_NAME}",
  181. "group": "quickstarts",
  182. "project": "${APP_NAME}",
  183. "provider": "s2i",
  184. "version": "${APP_VERSION}"
  185. }
  186. },
  187. "spec": {
  188. "triggers": [
  189. {
  190. "type": "GitHub",
  191. "github": {
  192. "secret": "${BUILD_SECRET}"
  193. }
  194. },
  195. {
  196. "type": "Generic",
  197. "generic": {
  198. "secret": "${BUILD_SECRET}"
  199. }
  200. },
  201. {
  202. "type": "ConfigChange"
  203. },
  204. {
  205. "type": "ImageChange",
  206. "imageChange": {}
  207. }
  208. ],
  209. "source": {
  210. "type": "Git",
  211. "git": {
  212. "uri": "${GIT_REPO}",
  213. "ref": "${GIT_REF}"
  214. }
  215. },
  216. "strategy": {
  217. "type": "Source",
  218. "sourceStrategy": {
  219. "from": {
  220. "kind": "ImageStreamTag",
  221. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  222. "name": "fis-java-openshift:${BUILDER_VERSION}"
  223. },
  224. "forcePull": true,
  225. "incremental": true,
  226. "env": [
  227. {
  228. "name": "BUILD_LOGLEVEL",
  229. "value": "5"
  230. },
  231. {
  232. "name": "ARTIFACT_DIR",
  233. "value": "${ARTIFACT_DIR}"
  234. },
  235. {
  236. "name": "MAVEN_ARGS",
  237. "value": "${MAVEN_ARGS}"
  238. },
  239. {
  240. "name": "MAVEN_ARGS_APPEND",
  241. "value": "${MAVEN_ARGS_APPEND}"
  242. }
  243. ]
  244. }
  245. },
  246. "output": {
  247. "to": {
  248. "kind": "ImageStreamTag",
  249. "name": "${APP_NAME}:latest"
  250. }
  251. },
  252. "resources": {}
  253. },
  254. "status": {
  255. "lastVersion": 0
  256. }
  257. },
  258. {
  259. "kind": "DeploymentConfig",
  260. "apiVersion": "v1",
  261. "metadata": {
  262. "name": "${APP_NAME}",
  263. "creationTimestamp": null,
  264. "labels": {
  265. "component": "${APP_NAME}",
  266. "group": "quickstarts",
  267. "project": "${APP_NAME}",
  268. "provider": "s2i",
  269. "version": "${APP_VERSION}"
  270. }
  271. },
  272. "spec": {
  273. "strategy": {
  274. "resources": {}
  275. },
  276. "triggers": [
  277. {
  278. "type": "ConfigChange"
  279. },
  280. {
  281. "type": "ImageChange",
  282. "imageChangeParams": {
  283. "automatic": true,
  284. "containerNames": [
  285. "${APP_NAME}"
  286. ],
  287. "from": {
  288. "kind": "ImageStreamTag",
  289. "name": "${APP_NAME}:latest"
  290. }
  291. }
  292. }
  293. ],
  294. "replicas": 1,
  295. "selector": {
  296. "component": "${APP_NAME}",
  297. "deploymentconfig": "${APP_NAME}",
  298. "group": "quickstarts",
  299. "project": "${APP_NAME}",
  300. "provider": "s2i",
  301. "version": "${APP_VERSION}"
  302. },
  303. "template": {
  304. "metadata": {
  305. "creationTimestamp": null,
  306. "labels": {
  307. "component": "${APP_NAME}",
  308. "deploymentconfig": "${APP_NAME}",
  309. "group": "quickstarts",
  310. "project": "${APP_NAME}",
  311. "provider": "s2i",
  312. "version": "${APP_VERSION}"
  313. }
  314. },
  315. "spec": {
  316. "containers": [
  317. {
  318. "name": "${APP_NAME}",
  319. "image": "library/${APP_NAME}:latest",
  320. "readinessProbe" : {
  321. "httpGet" : {
  322. "path" : "/health",
  323. "port" : 8081
  324. },
  325. "initialDelaySeconds" : 10
  326. },
  327. "livenessProbe" : {
  328. "httpGet" : {
  329. "path" : "/health",
  330. "port" : 8081
  331. },
  332. "initialDelaySeconds" : 180
  333. },
  334. "ports": [
  335. {
  336. "containerPort": 8778,
  337. "name": "jolokia"
  338. }
  339. ],
  340. "env" : [ {
  341. "name" : "KUBERNETES_NAMESPACE",
  342. "valueFrom" : {
  343. "fieldRef" : {
  344. "fieldPath" : "metadata.namespace"
  345. }
  346. }
  347. } ],
  348. "resources": {
  349. "requests": {
  350. "cpu": "${CPU_REQUEST}"
  351. },
  352. "limits": {
  353. "cpu": "${CPU_LIMIT}"
  354. }
  355. }
  356. }
  357. ]
  358. }
  359. }
  360. },
  361. "status": {}
  362. }
  363. ]
  364. }