Skip to content

Instantly share code, notes, and snippets.

View hamdifourati's full-sized avatar
☁️
working from the cloud 🌍 ☁️

Hamdi Fourati hamdifourati

☁️
working from the cloud 🌍 ☁️
View GitHub Profile
@hamdifourati
hamdifourati / docker_java.md
Last active December 26, 2017 15:06
create and run Java project with ZERO configuration using docker.

Create a sample java project inside a docker container


Create Java project using maven

docker run -it --rm -v $PWD:/app/ maven:3-jdk-8 su -c"cd /app && mvn archetype:generate -DgroupId=info.hamdifourati.helloworld -DartifactId=hello-world -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false"

Build and package ( jar ) the java application