You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added a docker folder that can be used to quickly get started with development. This will create a new database; auto run the needed init scripts and create needed tables. It will also run the application in a tomcat docker image
I also added an option to run the application with hot reload for quicker smoother development. The image side is a little janky but it mostly uses the same base image but downloads JDK that has DCEVM as well as downloads hotswap-agent.jar.
The docker compose file will then run the application with the correct config. From there all you need to do is connect to the container from your IDE (I only have IntelliJ so that's what I tested with). Now whenever you make code changes you can hot-reload those classes without all the normal annoyance with tomcat deployments.
Had an issue with mvn package in Dockerfile-hotreload not having access to my local maven repository containing the installed hakunapi packages causing the whole thing to fail. I added -am to circumvent the issue which didn't feel like the best thing to do but it worked.
Had an issue with mvn package in Dockerfile-hotreload not having access to my local maven repository containing the installed hakunapi packages causing the whole thing to fail. I added -am to circumvent the issue which didn't feel like the best thing to do but it worked.
Ah that makes sense....
I think a better solution is probably just building the whole repo at that stage mvn -DskipTests clean package... it does make take a much longer time building the image with all the pom dep downloads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I added a docker folder that can be used to quickly get started with development. This will create a new database; auto run the needed init scripts and create needed tables. It will also run the application in a tomcat docker image
I also added an option to run the application with hot reload for quicker smoother development. The image side is a little janky but it mostly uses the same base image but downloads JDK that has DCEVM as well as downloads hotswap-agent.jar.
The docker compose file will then run the application with the correct config. From there all you need to do is connect to the container from your IDE (I only have IntelliJ so that's what I tested with). Now whenever you make code changes you can hot-reload those classes without all the normal annoyance with tomcat deployments.