#spring boot run w/o docker
1 messages · Page 1 of 1 (latest)
<@&1004656351647117403> please have a look, thanks.
Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
Yes, you can run a Spring Boot application locally without using Docker. To do this, you can simply use the ./gradlew bootRun command in your terminal to start the application. This command will build and run the Spring Boot application without the need for Docker.
If the gradle bootRun command is taking up too much RAM in your WSL (Windows Subsystem for Linux) environment, you can try adjusting the memory settings for Gradle. You can set the maximum heap size for Gradle by adding -Xmx parameter to your gradle.properties file or by setting it as an environment variable.
Another option is to optimize your Spring Boot application's memory usage by modifying the application's configuration or dependencies to reduce its overall memory footprint. You can also try running your application on a machine with higher memory resources if possible.
Overall, running a Spring Boot application locally without Docker is certainly possible and there are various ways to optimize memory usage to ensure smooth performance on your system.
wow, this is garbage. gradlew bootRun IS running postgres and redis in docker
It's running with docker because you most likely included the docker compose dependency and have some services set up
If you don't want spring boot to start with docker by default, remove the docker compose dependency and setup your own docker compose file for redis and postgres
It's not garbage, read the documentation around docker in the Spring Boot documentation.