How to containerize a simple Java app with H2 database

5/26/2020

I wrote a simple Java Web application based on Spring with H2 database. Now I want to containerise it.

I was thinking about using docker. Is that a good choice. Would there be some other tool ?

Honestly I do not know advantages of docker. I mean Java is platform independent anyway. So what makes it appealling of using Docker ?

What I also understand if you have many many containers you need a tool like Kubernetes to manage all these containers.

Thanks for your help.

-- Josephine
docker
kubernetes

1 Answer

5/27/2020

I recommend reading Docker Get Started, this will answer all your questions.

If you need a quick example of a dockerized Spring application you can check this one or read Spring Boot with Docker guide.

-- RafaƂ Leszko
Source: StackOverflow