[
https://issues.jboss.org/browse/JBIDE-25504?page=com.atlassian.jira.plugi...
]
Andre Dietisheim commented on JBIDE-25504:
------------------------------------------
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.
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)