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 .asc asset of the same name. Maven Central gets the libraries only, not the WARs. The images are published to Docker Hub with the release version and latest as tags.
  • Nightly builds — the images are pushed to the GitHub Container Registry as ghcr.io/openl-tablets/webstudio and ghcr.io/openl-tablets/ws with the tags latest and <version>-<commit>. The “all” variant of Rule Services has the tags latest-all and <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 as latest.
  • 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/logs is writable for the openl user.
  • setenv.sh — /opt/openl/setenv.sh is sourced by the start script. It sets the Jetty request limits through JAVA_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_HOME keeps 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 Forwarded and X-Forwarded-* headers a proxy sends (its http-forwarded module), 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 ecs is 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 of 127.0.0.1, and starts it again whenever the settings change. A servlet of OpenL Studio passes the requests to /mcp on 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 /mcp as it checks a REST call. In the single user mode the server needs no credentials. In the other modes a client sends a Personal Access Token of its user as Authorization: Token <token>, or in the oauth2 mode an access token of the identity provider as Authorization: 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.node logger.

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 /mcp only when cors.allowed.origins lists 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 (port 8081), PostgreSQL, and an nginx proxy that serves /studio/ and /services/ on port 80.
  • Initialization — the init service downloads the PostgreSQL JDBC driver into a volume shared with both applications, creates the studio and repository schemas, and writes the Studio .properties file: multi-user mode, the administrator admin, 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 5005 and 5006 and uses fixed database credentials.

Kubernetes Deployment

examples/k8s deploys OpenL Studio in multi-user mode with PostgreSQL:

  • One replica — the Recreate strategy replaces the pod without running two pods on the same volumes.
  • Volumes — separate persistent volume claims for /opt/openl/local and /opt/openl/shared.
  • JDBC driver — an init container downloads it into an emptyDir volume mounted as /opt/openl/lib/jdbc.jar.
  • Probes — /healthcheck/startup for the startup probe and /healthcheck/readiness for the readiness probe, both without authentication.
  • Settings — environment variables such as USER_MODE and DB_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 ROOT application uses .properties; the application deployed as /webstudio uses webstudio.properties.
  • Home directories — openl.home and openl.home.shared are 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 PATH or in mcp.node, and serves it at /mcp under the context path of the application; set mcp.enabled=false to 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.