This repository contains the Dockerfiles and GitHub workflows to build the Formcentric Java Base images. The images are the starting point to run Java-based Formcentric applications in containers.
The base image contains a simple app.jar
to demonstrate the default entrypoint.
Running the image without any arguments:
> docker run ghcr.io/formcentric/java-base:11-jre
Welcome to the Formcentric Java Base image.
Java Version : 11.0.18 (Eclipse Adoptium)
Java Home : /opt/java/openjdk
Java Temp Dir : /tmp
User Name : formcentric
Working Dir : /formcentric
JVM Arguments
- none -
Command Line Arguments
- none -
Passing JVM and command line arguments:
> docker run -e JAVA_OPTS=-Djava.io.tmpdir=/my-tmp ghcr.io/formcentric/java-base:11-jre --server.port=8443
Welcome to the Formcentric Java Base image.
Java Version : 11.0.18 (Eclipse Adoptium)
Java Home : /opt/java/openjdk
Java Temp Dir : /my-tmp
User Name : formcentric
Working Dir : /formcentric
JVM Arguments
(1) -Djava.io.tmpdir=/my-tmp
Command Line Arguments
(1) --server.port=8443
To run your own application with the base image, just overwrite the default /formcentric/app.jar
in your
own Dockerfile:
FROM ghcr.io/formcentric/java-base:17-jre
EXPOSE 8080
COPY --chown=formcentric:formcentric my-application.jar /formcentric/app.jar
Formcentric base images build upon the official Adoptium images of the Eclipse Temurin distribution (OpenJDK) and come in the following flavors:
ghcr.io/formcentric/java-base:23-jre
ghcr.io/formcentric/java-base:23-jdk
ghcr.io/formcentric/java-base:21-jre
ghcr.io/formcentric/java-base:21-jdk
ghcr.io/formcentric/java-base:17-jre
ghcr.io/formcentric/java-base:17-jdk
ghcr.io/formcentric/java-base:11-jre
ghcr.io/formcentric/java-base:11-jdk