rohankanojia

Untitled

Apr 1st, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.10 KB | None | 0 0
  1. ~/work/repos/jkube/quickstarts/maven/webapp : $ mvn oc:build
  2. [INFO] Scanning for projects...
  3. [INFO]
  4. [INFO] -------------< org.eclipse.jkube.quickstarts.maven:webapp >-------------
  5. [INFO] Building Eclipse JKube :: Quickstarts :: Maven :: Webapp 1.0.0-SNAPSHOT
  6. [INFO] --------------------------------[ war ]---------------------------------
  7. [INFO]
  8. [INFO] --- openshift-maven-plugin:1.0.0-SNAPSHOT:build (default-cli) @ webapp ---
  9. [INFO] oc: Running in OpenShift mode
  10. [INFO] oc: Using OpenShift build with strategy Docker
  11. [INFO] oc: Generators:
  12. [INFO] oc: - quarkus
  13. [INFO] oc: - spring-boot
  14. [INFO] oc: - wildfly-swarm
  15. [INFO] oc: - thorntail-v2
  16. [INFO] oc: - openliberty
  17. [INFO] oc: - karaf
  18. [INFO] oc: - vertx
  19. [INFO] oc: - java-exec
  20. [INFO] oc: - webapp
  21. [INFO] oc: Running generator webapp
  22. [INFO] oc: webapp: Using fabric8/tomcat-9:1.2.1 as base image for webapp
  23. [INFO] oc: [maven/webapp:latest] "webapp": Created docker source tar /home/rohaan/work/repos/jkube/quickstarts/maven/webapp/target/docker/maven/webapp/latest/tmp/docker-build.tar
  24. [INFO] oc: Using BuildServiceConfig webapp-s2i for Docker strategy
  25. [INFO] oc: Adding to ImageStream webapp
  26. [INFO] oc: Enrichers:
  27. [INFO] oc: - jkube-metadata
  28. [INFO] oc: - jkube-name
  29. [INFO] oc: - jkube-controller
  30. [INFO] oc: - jkube-controller-from-configuration
  31. [INFO] oc: - jkube-service
  32. [INFO] oc: - jkube-namespace
  33. [INFO] oc: - jkube-image
  34. [INFO] oc: - jkube-portname
  35. [INFO] oc: - jkube-project-label
  36. [INFO] oc: - jkube-dependency
  37. [INFO] oc: - jkube-pod-annotations
  38. [INFO] oc: - jkube-git
  39. [INFO] oc: - jkube-maven-scm
  40. [INFO] oc: - jkube-serviceaccount
  41. [INFO] oc: - jkube-maven-issue-mgmt
  42. [INFO] oc: - jkube-debug
  43. [INFO] oc: - jkube-remove-build-annotations
  44. [INFO] oc: - jkube-volume-permission
  45. [INFO] oc: - jkube-configmap-file
  46. [INFO] oc: - jkube-secret-file
  47. [INFO] oc: - jkube-openshift-service-expose
  48. [INFO] oc: - jkube-openshift-route
  49. [INFO] oc: - jkube-openshift-deploymentconfig
  50. [INFO] oc: - jkube-openshift-project
  51. [INFO] oc: - jkube-healthcheck-quarkus
  52. [INFO] oc: - jkube-healthcheck-spring-boot
  53. [INFO] oc: - jkube-healthcheck-wildfly-swarm
  54. [INFO] oc: - jkube-healthcheck-thorntail-v2
  55. [INFO] oc: - jkube-healthcheck-karaf
  56. [INFO] oc: - jkube-healthcheck-vertx
  57. [INFO] oc: - jkube-healthcheck-docker
  58. [INFO] oc: - jkube-healthcheck-webapp
  59. [INFO] oc: - jkube-prometheus
  60. [INFO] oc: - jkube-revision-history
  61. [INFO] oc: - jkube-docker-registry-secret
  62. [INFO] oc: - jkube-triggers-annotation
  63. [INFO] oc: - jkube-openshift-imageChangeTrigger
  64. [INFO] oc: Starting Build webapp-s2i
  65. [INFO] oc: Waiting for build webapp-s2i-2 to complete...
  66. [INFO] oc: Step 1/11 : FROM fabric8/tomcat-9:1.2.1
  67. [INFO] oc: ---> 044e10682118
  68. [INFO] oc: Step 2/11 : ENV DEPLOY_DIR /deployments
  69. [INFO] oc: ---> Using cache
  70. [INFO] oc: ---> c4c7851af2ba
  71. [INFO] oc: Step 3/11 : LABEL org.label-schema.description "" org.label-schema.version 1.0.0-SNAPSHOT org.label-schema.schema-version 1.0 org.label-schema.build-date 2020-04-01T19:22:13.445752 org.label-schema.name "Eclipse JKube :: Quickstarts :: Maven :: Webapp" org.label-schema.vcs-ref 7ecaea415aa4cb06622b547ffebb6a78fe9c67e8 org.label-schema.vcs-url [email protected]:rohanKanojia/jkube.git
  72. [INFO] oc: ---> Running in 0e5ea6a79a97
  73. [INFO] oc: ---> a7935efedef7
  74. [INFO] oc: Removing intermediate container 0e5ea6a79a97
  75. [INFO] oc: Step 4/11 : EXPOSE 8080 8778
  76. [INFO] oc: ---> Running in 4fdcd2eb58c4
  77. [INFO] oc: ---> 8c9665449b5b
  78. [INFO] oc: Removing intermediate container 4fdcd2eb58c4
  79. [INFO] oc: Step 5/11 : COPY maven /tmp/79b2b4b1-5cd7-4e36-92ff-c83cff3e656b/deployments/
  80. [INFO] oc: ---> 94410989537e
  81. [INFO] oc: Removing intermediate container cc8536bd7204
  82. [INFO] oc: Step 6/11 : USER root
  83. [INFO] oc: ---> Running in 2b9533a13804
  84. [INFO] oc: ---> b9ae976c7691
  85. [INFO] oc: Removing intermediate container 2b9533a13804
  86. [INFO] oc: Step 7/11 : RUN chown -R jboss:jboss /tmp/79b2b4b1-5cd7-4e36-92ff-c83cff3e656b && cp -rp /tmp/79b2b4b1-5cd7-4e36-92ff-c83cff3e656b/* / && rm -rf /tmp/79b2b4b1-5cd7-4e36-92ff-c83cff3e656b
  87. [INFO] oc: ---> Running in 9827f4db84b7
  88. [INFO] oc:
  89. [INFO] oc: ---> 02ce6fe7b9e9
  90. [INFO] oc: Removing intermediate container 9827f4db84b7
  91. [INFO] oc: Step 8/11 : USER jboss
  92. [INFO] oc: ---> Running in 1ba3f663f7d9
  93. [INFO] oc: ---> 510ca27b1a5f
  94. [INFO] oc: Removing intermediate container 1ba3f663f7d9
  95. [INFO] oc: Step 9/11 : CMD /opt/tomcat/bin/deploy-and-run.sh
  96. [INFO] oc: ---> Running in d47a1306ac91
  97. [INFO] oc: ---> 6ddb3da1e110
  98. [INFO] oc: Removing intermediate container d47a1306ac91
  99. [INFO] oc: Step 10/11 : ENV "OPENSHIFT_BUILD_NAME" "webapp-s2i-2" "OPENSHIFT_BUILD_NAMESPACE" "rokumar"
  100. [INFO] oc: ---> Running in fdcc46110cbb
  101. [INFO] oc: ---> 93a009ccaeb5
  102. [INFO] oc: Removing intermediate container fdcc46110cbb
  103. [INFO] oc: Step 11/11 : LABEL "io.openshift.build.name" "webapp-s2i-2" "io.openshift.build.namespace" "rokumar"
  104. [INFO] oc: ---> Running in a56de7afe59e
  105. [INFO] oc: ---> f3cdb3f7bff4
  106. [INFO] oc: Removing intermediate container a56de7afe59e
  107. [INFO] oc: Successfully built f3cdb3f7bff4
  108. [INFO] oc:
  109. [INFO] oc: Pushing image 172.30.39.149:5000/rokumar/webapp:latest ...
  110. [INFO] oc: Pushed 0/18 layers, 0% complete
  111. [INFO] oc: Pushed 1/18 layers, 6% complete
  112. [INFO] oc: Pushed 2/18 layers, 11% complete
  113. [INFO] oc: Pushed 3/18 layers, 17% complete
  114. [INFO] oc: BuildWatch: Received event ADDED , build status: BuildStatus(cancelled=null, completionTimestamp=null, config=ObjectReference(apiVersion=null, fieldPath=null, kind=BuildConfig, name=webapp-s2i, namespace=rokumar, resourceVersion=null, uid=null, additionalProperties={}), duration=null, logSnippet=null, message=null, output=BuildStatusOutput(to=null, additionalProperties={}), outputDockerImageReference=172.30.39.149:5000/rokumar/webapp:latest, phase=Running, reason=null, stages=[], startTimestamp=2020-04-01T13:52:19Z, additionalProperties={})
  115. [INFO] oc: Build webapp-s2i-2 status: Running
  116. [INFO] oc: Pushed 4/18 layers, 22% complete
  117. [INFO] oc: Pushed 5/18 layers, 28% complete
  118. [INFO] oc: Pushed 6/18 layers, 39% complete
  119. [INFO] oc: Pushed 7/18 layers, 44% complete
  120. [INFO] oc: Pushed 8/18 layers, 50% complete
  121. [INFO] oc: Pushed 9/18 layers, 61% complete
  122. [INFO] oc: Pushed 10/18 layers, 67% complete
  123. [INFO] oc: Pushed 11/18 layers, 72% complete
  124. [INFO] oc: Pushed 12/18 layers, 78% complete
  125. [INFO] oc: Pushed 13/18 layers, 83% complete
  126. [INFO] oc: Pushed 14/18 layers, 89% complete
  127. [INFO] oc: Pushed 15/18 layers, 94% complete
  128. [INFO] oc: Pushed 16/18 layers, 100% complete
  129. [INFO] oc: Pushed 17/18 layers, 100% complete
  130. [INFO] oc: Pushed 18/18 layers, 100% complete
  131. [INFO] oc: BuildWatch: Received event MODIFIED , build status: BuildStatus(cancelled=null, completionTimestamp=null, config=ObjectReference(apiVersion=null, fieldPath=null, kind=BuildConfig, name=webapp-s2i, namespace=rokumar, resourceVersion=null, uid=null, additionalProperties={}), duration=null, logSnippet=null, message=null, output=BuildStatusOutput(to=BuildStatusOutputTo(imageDigest=sha256:45a85b60d405a23de56cc5aaae618ef038fee34a4db90aacbdc26b56c7bc6c4b, additionalProperties={}), additionalProperties={}), outputDockerImageReference=172.30.39.149:5000/rokumar/webapp:latest, phase=Running, reason=null, stages=[], startTimestamp=2020-04-01T13:52:19Z, additionalProperties={})
  132. [INFO] oc: BuildWatch: Received event MODIFIED , build status: BuildStatus(cancelled=null, completionTimestamp=null, config=ObjectReference(apiVersion=null, fieldPath=null, kind=BuildConfig, name=webapp-s2i, namespace=rokumar, resourceVersion=null, uid=null, additionalProperties={}), duration=null, logSnippet=null, message=null, output=BuildStatusOutput(to=BuildStatusOutputTo(imageDigest=sha256:45a85b60d405a23de56cc5aaae618ef038fee34a4db90aacbdc26b56c7bc6c4b, additionalProperties={}), additionalProperties={}), outputDockerImageReference=172.30.39.149:5000/rokumar/webapp:latest, phase=Running, reason=null, stages=[StageInfo(durationMilliseconds=2212, name=Build, startTime=2020-04-01T13:52:24Z, steps=[StepInfo(durationMilliseconds=2212, name=DockerBuild, startTime=2020-04-01T13:52:24Z, additionalProperties={})], additionalProperties={}), StageInfo(durationMilliseconds=4546, name=PushImage, startTime=2020-04-01T13:52:27Z, steps=[StepInfo(durationMilliseconds=4546, name=PushDockerImage, startTime=2020-04-01T13:52:27Z, additionalProperties={})], additionalProperties={})], startTimestamp=2020-04-01T13:52:19Z, additionalProperties={})
  133. [INFO] oc: Push successful
  134. [INFO] oc: BuildWatch: Received event MODIFIED , build status: BuildStatus(cancelled=null, completionTimestamp=2020-04-01T13:52:32Z, config=ObjectReference(apiVersion=null, fieldPath=null, kind=BuildConfig, name=webapp-s2i, namespace=rokumar, resourceVersion=null, uid=null, additionalProperties={}), duration=13000000000, logSnippet=null, message=null, output=BuildStatusOutput(to=BuildStatusOutputTo(imageDigest=sha256:45a85b60d405a23de56cc5aaae618ef038fee34a4db90aacbdc26b56c7bc6c4b, additionalProperties={}), additionalProperties={}), outputDockerImageReference=172.30.39.149:5000/rokumar/webapp:latest, phase=Complete, reason=null, stages=[StageInfo(durationMilliseconds=2212, name=Build, startTime=2020-04-01T13:52:24Z, steps=[StepInfo(durationMilliseconds=2212, name=DockerBuild, startTime=2020-04-01T13:52:24Z, additionalProperties={})], additionalProperties={}), StageInfo(durationMilliseconds=4546, name=PushImage, startTime=2020-04-01T13:52:27Z, steps=[StepInfo(durationMilliseconds=4546, name=PushDockerImage, startTime=2020-04-01T13:52:27Z, additionalProperties={})], additionalProperties={})], startTimestamp=2020-04-01T13:52:19Z, additionalProperties={})
  135. [INFO] oc: Build webapp-s2i-2 status: Complete
  136. [INFO] oc: Build webapp-s2i-2 in status Complete
  137. [INFO] oc: Found tag on ImageStream webapp tag: sha256:45a85b60d405a23de56cc5aaae618ef038fee34a4db90aacbdc26b56c7bc6c4b
  138. [INFO] oc: ImageStream webapp written to /home/rohaan/work/repos/jkube/quickstarts/maven/webapp/target/webapp-is.yml
  139. [INFO] ------------------------------------------------------------------------
  140. [INFO] BUILD SUCCESS
  141. [INFO] ------------------------------------------------------------------------
  142. [INFO] Total time: 24.351 s
  143. [INFO] Finished at: 2020-04-01T19:22:33+05:30
  144. [INFO] ------------------------------------------------------------------------
  145. ~/work/repos/jkube/quickstarts/maven/webapp : $ git diff
  146. diff --git a/quickstarts/maven/webapp/pom.xml b/quickstarts/maven/webapp/pom.xml
  147. index 4809f9f..91e49a7 100644
  148. --- a/quickstarts/maven/webapp/pom.xml
  149. +++ b/quickstarts/maven/webapp/pom.xml
  150. @@ -38,6 +38,17 @@
  151. <artifactId>kubernetes-maven-plugin</artifactId>
  152. <version>${project.version}</version>
  153. </plugin>
  154. + <plugin>
  155. + <groupId>org.eclipse.jkube</groupId>
  156. + <artifactId>openshift-maven-plugin</artifactId>
  157. + <version>${project.version}</version>
  158. + <configuration>
  159. + <mode>openshift</mode>
  160. + <buildStrategy>docker</buildStrategy>
  161. + <verbose>true</verbose>
  162. + </configuration>
  163. +
  164. + </plugin>
  165. </plugins>
  166. </build>
  167. <properties>
  168. ~/work/repos/jkube/quickstarts/maven/webapp : $
Add Comment
Please, Sign In to add comment