Skip to content

Papyrus base

Info

The Docker image name for this image is papyrus/base

The Papyrus base image runs Eclipse Payprus in a Docker container. The Papyrus client can be downloaded and can optionally be customised prior to building the Docker image.

Supported versions

The image has been tested with the following versions:

  • 6.4.0 (2023-03 release)
  • 7.1.0 (2025-06 release, default)

Papyrus 7.x images additionally contain the headless Papyrus diagram cache exporter (papyrus-diagram-cache) and xvfb-run.

Papyrus lays out diagram text in Segoe UI, which cannot be redistributed. The image contains Selawik (SIL Open Font License 1.1), Microsoft's metric compatible replacement, and fontconfig resolves Segoe UI to it. Labels therefore wrap and truncate as in Papyrus on Windows. The exported SVGs still name Segoe UI, so viewers render the original font where it is installed.

The only supported build architecture is amd64. To build and run the image on other build architectures, use QEMU or Rosetta.

Use the prebuilt image

docker run ghcr.io/dbinfrago/capella-dockerimages/papyrus/base:$TAG

where $TAG is $PAPYRUS_VERSION-$DROPINS-dropins-$CAPELLA_DOCKER_IMAGES_REVISION, e.g. 7.1.0-without-dropins-main or 7.1.0-selected-dropins-main. The selected images contain all supported dropins. In $CAPELLA_DOCKER_IMAGES_REVISION, characters matching [^a-zA-Z0-9.] are replaced with -. Only Papyrus 7.1.0 is prebuilt.

Build it yourself

Preparation

Download Papyrus

Download a Papyrus Linux binary tar.gz archive. You can get a release directly from Papyrus. Visit https://www.eclipse.org/papyrus/download.html to find the "Latest Released RCP".

Place the downloaded archive in the subdirectory papyrus/versions/$PAPYRUS_VERSION of the present repository and ensure that the end result is either

  • papyrus/versions/$PAPYRUS_VERSION/papyrus.tar.gz.

where PAPYRUS_VERSION refers to the semantic version of Papyrus, e.g. 7.1.0 for the 2025-06 release.

Papyrus 7.x archives are named papyrus-desktop-<release>-<version>-linux.gtk.x86_64.tar.gz and have to be renamed. For 7.1.0, download https://download.eclipse.org/modeling/mdt/papyrus/papyrus-desktop/rcp/2025-06/7.1.0/papyrus-desktop-2025-06-7.1.0-linux.gtk.x86_64.tar.gz and save it as papyrus/versions/7.1.0/papyrus.tar.gz.

Optional: Install dropins

Dropins work the same way as for Capella:

  • Dropins registered in papyrus/versions/$PAPYRUS_VERSION/dropins.yml (or in a dropins.overwrites.yml next to it, same schema) are installed when passed as a comma-separated list in the PAPYRUS_DROPINS build argument, or always if autouse is enabled.
  • Plain bundle .jar files placed in papyrus/versions/$PAPYRUS_VERSION/dropins are copied into the dropins directory of the Papyrus client without further processing.
Supported dropins

Supported dropins are:

The dropins are registered in the papyrus/versions/$PAPYRUS_VERSION/dropins.yml file. If you're missing a dropin in the list, feel free to open a PR.

Local .zip update sites referenced by a dropin are resolved from papyrus/versions/$PAPYRUS_VERSION/patches, like for Capella.

Dropins are also available to the headless diagram cache exporter, e.g. to render shapes contributed by a modelling add-on.

Optional: Customisation of the Papyrus client

To customise the Papyrus client otherwise you can

  1. extract the downloaded archive,
  2. apply any modifications to it, and
  3. compress the modified folder to get a papyrus.tar.gz again.

Build it manually with Docker

cp eclipse/set_memory_flags.py papyrus/set_memory_flags.py
cp capella/install_dropins.py papyrus/install_dropins.py
docker build -t papyrus/base papyrus \
    --build-arg PAPYRUS_VERSION=$PAPYRUS_VERSION \
    --build-arg PAPYRUS_DROPINS="$PAPYRUS_DROPINS"

If you want to configure the JVM memory options, have a look at Eclipse memory options.

Run the container

Locally on X11 systems

If you don't need remote access, have a local X11 server running and just want to run Papyrus locally, this may be the best option for you.

On some systems, you have to whitelist connections to the X-Server with:

xhost +local

It allows all local programs to connect to your X server. You can further restrict the access to the X server. Please read the documentation of xhost for more details.

The container can be started with the following command. The DISPLAY environment has to be passed to the container.

docker run -d \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e DISPLAY=$(DISPLAY) \
    papyrus/base

Papyrus should start after a few seconds.

In a remote container (RDP)

Please follow the instructions on the remote page. When running the image, add the following variables to the docker run command:

    -e AUTOSTART_PAPYRUS=$AUTOSTART_PAPYRUS \
    -e RESTART_PAPYRUS=$RESTART_PAPYRUS \

Please replace the followings variables:

  • AUTOSTART_PAPYRUS defines the autostart behaviour of Papyrus. When set to 1 (default), Papyrus will be started as soon as an RDP connection has been established to the running container.
  • RESTART_PAPYRUS defines the restart behaviour of Papyrus. When set to 1 (default) and when RESTART_PAPYRUS=1, Papyrus will be re-started as soon as it has been exited (after clean quits as well as crashs).