Sunday, July 30, 2023

[java] [maven] [dropwizard] [mysql] Dropwizard on host with MySQL on docker

[0] Preparation.

[1] Clone project

[2] Change directory to the project root

[3] Compile Maven project

If you get error invalid target release 11, it could be that your java sdk is not 11. Install JDK 11 first and then set JAVA_HOME path for the JDK 11.

[4] Setup MySQL to run in Docker

Note:you may need to check the name of the container by running docker console command first.

docker ps
  

[5] Run migration

[6] Run application

[7] Test

[8] Check MySQL Database using container terminal

[9] Check MySQL Database using DBeaver on host

No comments:

Post a Comment