content.md 1.2 KB

Overview

SapMachine is a binary distribution of the Open Java Development Kit (OpenJDK). It is built, quality tested and long-term supported by SAP.

SapMachine is the default Java runtime for SAP's Business Technology Platform and it is also supported as a Standard JRE in the Cloud Foundry Java Build Pack.

For more information see the SapMachine website.

Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates.

%%LOGO%%

How to use this Image

You can pull and test the image with the following commands:

docker pull %%IMAGE%%:latest
docker run -it %%IMAGE%%:latest java -version

You can also use the SapMachine image as a base image to run your own jar file:

FROM %%IMAGE%%:latest
RUN mkdir /opt/myapp
COPY myapp.jar /opt/myapp
CMD ["java", "-jar", "/opt/myapp/myapp.jar"]

You can then build and run your own Docker image:

docker build -t myapp .
docker run -it --rm myapp