A Spring Boot (and OpenLiberty/Quarkus etc.) alternative: the WildFly Bootable JAR! - PART 2: the Docker container

A Spring Boot (and OpenLiberty/Quarkus etc.) alternative: the WildFly Bootable JAR! - PART 2: the Docker container

In PART 1 we saw how to create a JAR that contains your application, and that you can run from command line like this:

java -jar target/wildfly-bootable-jar-database-bootable.jar

In this post, we explain how-to put your application inside a container that you can run with Docker or Podman like this:

podman run --name wildfly-bootable-jar-database-bootable localhost/wildfly-bootable-jar-database-bootable

The branch containerized of repository github.com/Tommy74/wildfly-bootable-jar-dat.. contains:

  • README.md : paragraph Standalone container explains everything you need to do

  • Dockerfile is the usual Dockerfile used to build the container