Skip to content

Toro Cloud Dev Center


Docker image

The official Docker image of Martini contains the Runtime Edition distribution of Martini. It is based on Alpine Linux. Below is a snippet of the Dockerfile used to build the Docker image:

1
2
3
4
5
6
7
8
EXPOSE 8080 8443

WORKDIR /data

ENV JAVA_XMX 1024m
ENV JAVA_XMS 128m

ENTRYPOINT /data/bin/toro-martini

Ports

Although the Dockerfile exposes port 8443, by default the Martini Docker image is configured to serve requests over HTTP only. If you want Martini to serve requests over HTTPS, please see this guide.

Working directory

The working directory is set to the path /data. This directory contains Martini's installation files and some default data.

Environment variables

The environment variables are used to set Java's maximum heap memory. You can override these settings to your liking by flagging them when executing the docker run command and Martini will automatically pick up your overriding values. An example on how to override Java memory settings can be found in the following page.

Entry point

The entry point configured in the Docker file is /bin/toro-martini, which by default, will run Martini in the foreground.