Sign inSign up

mtreber/capella-html-exporter

By mtreber

•Updated over 3 years ago

Image
1

715

mtreber/capella-html-exporter repository overview

⁠Capella model HTML exporter

A container image that allows automated exports of Capella models to HTML. The image can be used for other commandline operations with Capella.

It is especially useful when integrating it into a CI that is connected to the Git repository where you store your Capella model.

⁠Build

docker build -t capella-html-exporter .

⁠Use

By default, the container executes /workdir/entrypoint.sh at startup.

Map the folder where your model and your entrypoint.sh is located into the /workdir folder of the container, when running the image:

docker run --init -v `pwd`/workdir:/workdir capella-html-exporter

Note: You must run eclipse in a virtual framebuffer, as it requires a X server. Xvfb is included in the docker image.

The entrypoint.sh could look like this:

# Import the project into the workspace and validate it
xvfb-run -s "-screen 0 1280x720x24" \
eclipse -nosplash -consoleLog \
-application org.polarsys.capella.core.commandline.core \
-appid org.polarsys.capella.core.validation.commandline \
-data /workspace \
-import "/workdir/In-Flight Entertainment System" \
-input "/In-Flight Entertainment System/In-Flight Entertainment System.aird" \
-outputfolder "/In-Flight Entertainment System/validation" \
-logfile /workdir/log.html \
-forceoutputfoldercreation

# Export the model as HTML
# Note: It seems that Capella has a bug in this function that does not allow
# to use the import flag here.
xvfb-run -s "-screen 0 1280x720x24" \
eclipse -nosplash -consoleLog \
-application org.polarsys.capella.core.commandline.core \
-appid org.polarsys.kitalpha.doc.gen.business.capella.commandline \
-data /workspace \
-filepath "/In-Flight Entertainment System/In-Flight Entertainment System.aird" \
-outputfolder "/In-Flight Entertainment System/html_export" \
-logfile /workdir/log.html \
-forceoutputfoldercreation

Tag summary

Content type

Image

Digest

sha256:044b24189…

Size

858.2 MB

Last updated

over 3 years ago

docker pull mtreber/capella-html-exporter:v6.1.0-0