-
Notifications
You must be signed in to change notification settings - Fork 114
Add Java Web devfiles #18
Add Java Web devfiles #18
Conversation
5408fff
to
31ea8b6
Compare
@l0rd Please take a look on left notes in PR description and let me know if you're with the decision that I've made for Verx devfile. |
@sleshchenko what do you mean with compatibility issue? |
Vetx cannot find spring related classes in classpath even when I specified |
@l0rd ^ |
As discussed yesterday we want to improve those stacks (eventually in a separate PR):
|
4e33d46
to
5899984
Compare
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
5899984
to
8887085
Compare
Clean up the devfile a bit and remove unneeded commands.
cc @ibuziuk |
and clean up the devfile a bit. Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
discoverable: "true" | ||
public: "false" | ||
mountSources: false | ||
commands: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say command to run server in debug mode is missed.
SPRING_DATASOURCE_URL=jdbc:mysql://db/petclinic SPRING_DATASOURCE_USERNAME=petclinic SPRING_DATASOURCE_PASSWORD=password java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044 -jar target/*.jar --spring.profile.active=mysql
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. It's a nice way to improve this and other java stacks, I'm going to merge as is and create a separate issue to improve it. I think except Debug it also needs command to stop the application, because probably user starts his app, sees that something is wrong, stops app and rerun it in debug mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comments.
Since @sleshchenko is on PTO I can recreate a PR with my changes. |
This looks like clone is broken. According to doc (https://redhat-developer.github.io/devfile/devfile#projects), when no clonePath defined, project name should be used as clone folder. However, here project is cloned to spring-petclinic, which is wrong. Looks like it's related to eclipse-che/che#13796, see eclipse-che/che#13796 (comment) comment. Some path is not set properly in Theia. |
also when I set the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After fix of eclipse-che/che#13796, all these Java samples works for me. I would just rename them and rewrite descriptions a bit. My suggestions in commens in the code.
Signed-off-by: Michal Vala <mvala@redhat.com>
@tolusha can you please re-review? |
Signed-off-by: Michal Vala <mvala@redhat.com>
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
This commits contains devfile for: * Java Spring Boot * Java with Spring Boot and MySQL * Java Vert.x Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
What does this PR do?
This PR adds the following samples devfiles:
Notes:
JAVA + MYSQL
keepDirectory
feature and it was decided to use our old https://github.com/che-samples/web-java-vertx. Also, note that verx container is not provided but an application is run via Spring Boot in jdk container. I tried to use it but that sample has some compatibility issues. It can be improved later and I'll create an issue for that.What issues does this PR fix or reference?
eclipse-che/che#13529