[jbosstools-issues] [JBoss JIRA] (JBIDE-25504) Support hot deploy for workspace dependencies for SpringBoot applications on OpenShift
Andre Dietisheim (JIRA)
issues at jboss.org
Wed Feb 7 10:20:00 EST 2018
[ https://issues.jboss.org/browse/JBIDE-25504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13530069#comment-13530069 ]
Andre Dietisheim edited comment on JBIDE-25504 at 2/7/18 10:19 AM:
-------------------------------------------------------------------
steps to reproduce requirement without support for it in JBoss Tools:
# ASSERT: have a CDK instance running
# ASSERT: have a connection to your CDK Instance in Eclipse
# EXEC: unzip springboot-dependencies.zip
# EXEC: import the 2 projects within the zip (maven projects) into your workspace (penguins, fuse-on-openshift)
# EXEC: create a project "camel-ose-springboot-xml" in your CDK
# EXEC: in cmd line: install penguins into the local repository (~/.m2/repository) via {code}mvn clean install{code}
# EXEC: in cmd line: cd into "fuse-on-openshift" and run
{code}
mvn clean install fabric8:deploy \
-Dkubernetes.master=https://192.168.64.30:8443 \
-Dkubernetes.namespace=camel-ose-springboot-xml \
-Dkubernetes.auth.basic.username=developer \
-Dkubernetes.auth.basic.password=developer \
-Dfabric8.mode=openshift \
-Dkubernetes.trust.certificates=true \
-Dfabric8.build.strategy=s2i \
-Dkubernetes.auth.tryServiceAccount=false \
-Dfabric8.generator.from=fabric8/s2i-java \
-Dfabric8.generator.fromMode=docker \
-Dkubernetes.auth.tryKubeConfig=false
{code}
# ASSERT: build is finished, a service "camel-ose-springboot-xml" was created
# EXEC: in OpenShift Explorer: select the pod for the service "camel-ose-springboot-xml" and pick "Pod Log..." in the context menu
# ASSERT: console view pops up and shows the following output
{code}
simple-route - ==== Noot Noot
{code}
# EXEC: in Package Explorer: select "penguins", pick "Configure > Convert to Faceted Form..." and add a "Utility Module" facet
# EXEC: in OpenShift Explorer: select the service "camel-ose-springboot-xml" and pick "Server adapter" in the context menu, create a server adapter for your service.
# EXEC: pick the server adapter and pick "Add and Remove...", add "penguins" to the adapter
# ASSERT: the adapter syncs "penguins" to OpenShift
# EXEC: open the class "Pingu" and alter the method #quack to produce a different
# EXEC: wait until syncing happens (the wait is about up to 10 seconds)
Result:
Pod log now reflects the changed output.
{code}
simple-route - ==== Humpa bumpa...
{code}
was (Author: adietish):
steps to reproduce requirement without support for it in JBoss Tools:
# ASSERT: have a CDK instance running
# ASSERT: have a connection to your CDK Instance in Eclipse
# EXEC: unzip springboot-dependencies.zip
# EXEC: import the 2 projects within the zip (maven projects) into your workspace (penguins, fuse-on-openshift)
# EXEC: create a project "camel-ose-springboot-xml" in your CDK
# EXEC: in cmd line: install penguins into the local repository (~/.m2/repository) via {code}mvn clean install{code}
# EXEC: in cmd line: cd into "fuse-on-openshift" and run
{code}
mvn clean install fabric8:deploy \
-Dkubernetes.master=https://192.168.64.30:8443 \
-Dkubernetes.namespace=camel-ose-springboot-xml \
-Dkubernetes.auth.basic.username=developer \
-Dkubernetes.auth.basic.password=developer \
-Dfabric8.mode=openshift \
-Dkubernetes.trust.certificates=true \
-Dfabric8.build.strategy=s2i \
-Dkubernetes.auth.tryServiceAccount=false \
-Dfabric8.generator.from=fabric8/s2i-java \
-Dfabric8.generator.fromMode=docker \
-Dkubernetes.auth.tryKubeConfig=false
{code}
# ASSERT: build is finished, a service "camel-ose-springboot-xml" was created
# EXEC: in OpenShift Explorer: select the pod for the service "camel-ose-springboot-xml" and pick "Pod Log..." in the context menu
# ASSERT: console view pops up and shows the following output
{code}
simple-route - ==== Noot Noot
{code}
# EXEC: in Package Explorer: select "penguins", pick "Configure > Convert to Faceted Form..." and add a "Utility Module" facet
# EXEC: in OpenShift Explorer: select the service "camel-ose-springboot-xml" and pick "Server adapter" in the context menu, create a server adapter for your service.
# EXEC: pick the server adapter and pick "Add and Remove...", add "penguins" to the adapter
# ASSERT: the adapter syncs "penguins" to OpenShift
# EXEC: open the class "Pingu" and alter the method #quack to produce a different
# EXEC: wait until syncing happens (the wait is about up to 10 seconds)
Result:
Pod log now reflects the changed output.
{code}
52:40.335 [Camel (camel) thread #8 - timer://foo] INFO simple-route - ==== Humpa bumpa...
{code}
> Support hot deploy for workspace dependencies for SpringBoot applications on OpenShift
> --------------------------------------------------------------------------------------
>
> Key: JBIDE-25504
> URL: https://issues.jboss.org/browse/JBIDE-25504
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.5.2.AM2
> Reporter: Jeff MAURY
> Assignee: Andre Dietisheim
> Labels: openshift, openshift_v3, server_adapter
> Fix For: 4.5.3.AM1
>
> Attachments: springboot-dependencies.zip
>
>
> When a SpringBoot application is being deployed on OpenShift with the server adapter, we should support the following use case:
> * the SpringBoot app has a dependency which is avalailable in the workspace
> * when a modifiction is done on the dependency code, it should be synced to OpenShift by the server adapter
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jbosstools-issues
mailing list