Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add guide for Java example app #15

Open
3 tasks
tschale opened this issue Sep 7, 2022 · 0 comments
Open
3 tasks

Add guide for Java example app #15

tschale opened this issue Sep 7, 2022 · 0 comments

Comments

@tschale
Copy link
Collaborator

tschale commented Sep 7, 2022

We should create a guide for our java spring example (https://github.com/blueshoe/java-spring-example and https://github.com/blueshoe/java-spring-example-charts).

I got to the point where I was able to run the image in a k3d cluster, with following commands:

docker build --target dev -t java-spring:dev .
gefyra up
gefyra run -i java-spring:dev -N java-demo -v /home/gutschi/Projects/blog/java-spring-example/polls:/app -n default --env JAVA_HOME=/usr/local/openjdk-17 --env-from deploy/polls --expose 8080:8080

JAVA_HOME needs to be specified, as the base-image in the development stage uses a different one than the base-image in the production stage...

Actual hot reloading didn't work, Veit issued the assumption that it may work in a setup with IntelliJ, where there's maven support configured. I couldn't get it to work in a short time, so I stopped there.

ToDos:

  • finish run with hot reload (or confirm that it won't work)
  • gefyra bridge
  • write guide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant