My Blog

Using Docker for Java Programs

March 29, 2020

Many times you want to quickly test out a java code in a particular version of Java. One fine way of doing it in local is using jenv. But still you are testing from your operating system. How will I test for a different OS. I use docker to accompilsh this.

Here is a simple example.

mkdir my-java-app

Sample.java

Dockerfile


© 2020, Arun Abraham Home