Deployment
Deployment
OpenL Studio and OpenL Rule Services are Jakarta EE 10 web applications. They are delivered as WAR files and as Docker images. The OpenL Tablets DEMO package runs both on Jetty without Docker; see the Demo Package Guide.
Artifacts
| Product | Docker image | WAR |
|---|---|---|
| OpenL Studio | openltablets/webstudio |
openl-studio.war |
| OpenL Rule Services | openltablets/ws |
ruleservices.war |
| OpenL Rule Services, all | openltablets/ws, tag suffix -all |
ruleservices-all.war |
- Releases — the WARs are assets of the GitHub release,
each with its OpenPGP signature in the
.ascasset of the same name. Maven Central gets the libraries only, not the WARs. The images are published to Docker Hub with the release version andlatestas tags. - Nightly builds — the images are pushed to the GitHub Container Registry as
ghcr.io/openl-tablets/webstudioandghcr.io/openl-tablets/wswith the tagslatestand<version>-<commit>. The “all” variant of Rule Services has the tagslatest-alland<version>-<commit>-all. - Release candidates — staging images built with a pre-release version, e.g.
7.0.0-ea.1, are published to Docker Hub with that version as the only tag, never aslatest. - The “all” variant — adds the Git, AWS S3 and Azure Blob repositories and the database log storage to Rule Services.
Docker Deployment
docker run -p 8080:8080 openltablets/webstudio
docker run -p 8081:8080 openltablets/ws
The image runs Jetty on a Temurin JRE, listens on port 8080, and deploys the application as the ROOT web
application. The process runs as the non-root user openl (UID 1000). The software the image runs the application
on — the JRE, Jetty, Log4j, the OpenTelemetry agent, Node.js in the OpenL Studio image, and Alpine Linux — is listed
with its licenses in webapps/ROOT/licenses/server-licenses.json, which the About window of OpenL Studio shows.
Directories
| Variable | Path | Purpose |
|---|---|---|
OPENL_HOME |
/opt/openl/local |
One instance: compiled projects, repository clones, user database. |
OPENL_HOME_SHARED |
/opt/openl/shared |
A cluster shares: user workspaces, locks, saved settings. |
OPENL_LIB |
/opt/openl/lib |
Extra JAR files for the classpath, such as JDBC drivers. |
OPENL_APP |
/opt/openl/app |
Jetty home. The application is in webapps/ROOT. |
Mount volumes on OPENL_HOME and OPENL_HOME_SHARED to keep the data between runs.
- Logs folder —
/opt/openl/logsis writable for theopenluser. setenv.sh—/opt/openl/setenv.shis sourced by the start script. It sets the Jetty request limits throughJAVA_OPTS; edit or replace it to add JVM options.- JDBC drivers — put the driver of the database in use into
/opt/openl/lib, as the Docker Compose and Kubernetes examples below do. - Settings of the deployment — every start compares the settings the environment sets with the ones of the
last start and records the names of those added, changed or removed in the audit log.
OPENL_HOMEkeeps fingerprints of the values for it (settings-snapshot.properties), never a value, and no value reaches a log. - Behind a proxy — Jetty reads the client address, the scheme and the host from the
ForwardedandX-Forwarded-*headers a proxy sends (itshttp-forwardedmodule), so the logs and the audit log of OpenL Studio name the client rather than the proxy. Expose the container through the proxy only: a client that reaches it directly can put any address into these headers.
Environment variables
| Variable | Default | Purpose |
|---|---|---|
JAVA_OPTS |
-Xms32m -XX:MaxRAMPercentage=90.0 |
JVM options. |
LOGGING_FORMAT |
ecs |
Log output format. |
LOGGING_LEVEL_ROOT |
INFO |
Root log level. |
OTEL_EXPORTER_OTLP_ENDPOINT |
OTLP endpoint. | |
OTEL_JAVAAGENT_ENABLED |
false without OTEL_EXPORTER_* |
Agent on or off. |
OTEL_INSTRUMENTATION_OPENL_RULES_ENABLED |
true |
Tracing of OpenL rules. |
OTEL_INSTRUMENTATION_HIBERNATE_ENABLED |
false |
Tracing of Hibernate. |
OTEL_INSTRUMENTATION_JDBC_ENABLED |
false |
Tracing of JDBC calls. |
OTEL_SERVICE_NAME |
OpenL |
Service name. |
SERVICE_VERSION |
0 |
service.version field. |
ENVIRONMENT |
production |
service.environment field. |
A JAVA_OPTS value replaces the default. OTEL_SERVICE_NAME, SERVICE_VERSION and ENVIRONMENT also fill the
fields of the ecs log format. Any variable that starts with OTEL_EXPORTER_ turns OpenTelemetry on, and
OTEL_INSTRUMENTATION_OPENL_RULES_ENABLED=false turns off the tracing of OpenL rules. Hibernate and JDBC are not
traced unless OTEL_INSTRUMENTATION_HIBERNATE_ENABLED=true or OTEL_INSTRUMENTATION_JDBC_ENABLED=true is set. In the
OpenL Studio image the same variables drive the telemetry of its MCP server and of its pages in the browser, reported
as the services <OTEL_SERVICE_NAME>-mcp and <OTEL_SERVICE_NAME>-ui (see
Tracing with OpenTelemetry). LOGGING_FORMAT takes these values:
ecs— JSON lines in the Elastic Common Schema on the standard output.plain— text lines on the standard output.otel— no console appender; the OpenTelemetry agent writes the log events to the standard output in the OTLP JSON format.none— no console output.- Another value — a warning is printed and
ecsis used.
The messages of the OpenTelemetry agent itself, such as its version, are written
in the same format: the image sets OTEL_JAVAAGENT_LOGGING=application. Set it to simple to get them back as text
lines on the standard error output, or to none to drop them.
OpenL Studio writes its audit log to the console as well when AUDIT_OUTPUTS_CONSOLE=true, by the OpenL.audit
logger, a line per event at the INFO level, so a log collector can pick the events up in any of these formats. The
ecs format also writes the fields of an event as fields of their own, audit.id, audit.action, audit.actor and
the others.
Application settings
Settings of the application can be given as environment variables. A variable name is the property name with dots
written as underscores, in lower or upper case. A hyphen may stay in the name, and a $ref token of a property name is
written as _ref_.
| Property | Environment variable |
|---|---|
user.mode |
USER_MODE |
db.url |
DB_URL |
ruleservice.deployer.enabled |
RULESERVICE_DEPLOYER_ENABLED |
production-repository.$ref |
PRODUCTION-REPOSITORY__REF_ |
Settings saved in the Administration area of OpenL Studio are kept in the file
${openl.home.shared}/<application-name>.properties. The application name comes from the context path, so the file of
the ROOT application in the image is /opt/openl/shared/.properties. See Configuration for
the sources of settings and their priority, and
Rule Services Configuration for the settings of Rule Services.
Built-in MCP server
The OpenL Studio image serves an MCP server at /mcp, for example http://localhost:8080/mcp, over the Streamable
HTTP transport. AI agents and IDEs connect to it to read, change, test and deploy OpenL projects; the
OpenL Studio MCP Server Guide describes how to connect and work with them.
- How it runs — OpenL Studio starts the server, a Node.js program the war carries in
WEB-INF/mcp, on a free port of127.0.0.1, and starts it again whenever the settings change. A servlet of OpenL Studio passes the requests to/mcpon to it and streams the answers back; the server calls OpenL Studio back over HTTP at the local address and port a request came in through, so TLS ends in front of OpenL Studio. The server reports the version of OpenL Studio, and its reference guides are the ones of the same release. - Authentication — OpenL Studio checks a request to
/mcpas it checks a REST call. In thesingleuser mode the server needs no credentials. In the other modes a client sends a Personal Access Token of its user asAuthorization: Token <token>, or in theoauth2mode an access token of the identity provider asAuthorization: Bearer <token>, and the server calls OpenL Studio with the same header. - Logs — the lines the server writes go to the
org.openl.studio.mcp.nodelogger.
A client configuration, here for Claude Code (.mcp.json):
{
"mcpServers": {
"openl": {
"type": "http",
"url": "https://studio.example.com/mcp",
"headers": { "Authorization": "Token openl_pat_..." }
}
}
}
| Property | Default | Purpose |
|---|---|---|
mcp.enabled |
true |
Starts the server. |
mcp.node |
node |
Node.js executable: a name on the PATH or an absolute path. |
transfer.link.ttl |
PT15M |
How long a transfer link of an agent works after it is issued. |
transfer.max-pending |
20 |
How many transfer links one client holds; a new one ends the oldest. |
- Browser clients — a web page of another origin calls
/mcponly whencors.allowed.originslists it, as for the REST API; clients outside a browser send no origin. - Transfer links — an agent downloads and uploads a large or a binary file at
/transfers/<id>, with no credential; a reverse proxy passes that path too, and lets a request be as large as the files agents upload.
Docker Compose
compose.yaml in the root of the repository
builds the images and starts a complete environment:
docker compose up --build
- Services — OpenL Studio (port
8080), OpenL Rule Services (port8081), PostgreSQL, and an nginx proxy that serves/studio/and/services/on port80. - Initialization — the
initservice downloads the PostgreSQL JDBC driver into a volume shared with both applications, creates thestudioandrepositoryschemas, and writes the Studio.propertiesfile: multi-user mode, the administratoradmin, and a JDBC deployment repository. - Rule Services — read the deployments from the same PostgreSQL repository
(
PRODUCTION-REPOSITORY__REF_=repo-jdbc), with the deployer enabled (RULESERVICE_DEPLOYER_ENABLED=true). - Purpose — the file is a development environment: it opens the debug ports
5005and5006and uses fixed database credentials.
Kubernetes Deployment
examples/k8s deploys OpenL Studio in multi-user mode with PostgreSQL:
- One replica — the
Recreatestrategy replaces the pod without running two pods on the same volumes. - Volumes — separate persistent volume claims for
/opt/openl/localand/opt/openl/shared. - JDBC driver — an init container downloads it into an
emptyDirvolume mounted as/opt/openl/lib/jdbc.jar. - Probes —
/healthcheck/startupfor the startup probe and/healthcheck/readinessfor the readiness probe, both without authentication. - Settings — environment variables such as
USER_MODEandDB_URL; credentials come from a Secret.
Application Server Deployment
A WAR runs in a Jakarta EE 10 servlet container with WebSocket support: Eclipse Jetty 12.1 with the ee10-deploy and
ee10-websocket-jakarta modules, as in the Docker image, or Apache Tomcat 10.1. See
Supported Platforms.
- Context path — the context path of the application gives the name of its settings file. The
ROOTapplication uses.properties; the application deployed as/webstudiouseswebstudio.properties. - Home directories —
openl.homeandopenl.home.sharedare Java system properties or environment variables. - MCP server — the war carries the built-in MCP server, and OpenL Studio starts it on the loopback interface when
Node.js is on the
PATHor inmcp.node, and serves it at/mcpunder the context path of the application; setmcp.enabled=falseto keep it off.
Production Setup
Production Deployment describes how to move rules from authoring to production, and
examples/production holds a Maven project, a Dockerfile and a Docker Compose setup for it.