Skip to content

Add example to run OpenStudio GUI from container #1

Description

@pachi

This allows to run a docker instance that can be used to launch the OpenStudio GUI:

$ xhost local:root && \
    docker run -it \                                                     
    --rm \
    -e DISPLAY \
    -v /tmp/X11-unix:/tmp/X11-unix:ro \
    -v /etc/machine-id:/etc/machine-id:ro \
    -v /var/run/dbus:/var/run/dbus \
    nrel/openstudio

To launch the OpenStudio GUI from the container, just use:

/var/simdata/openstudio# QT_GRAPHICSSYSTEM=native OpenStudio

Exporting the QT_GRAPHICSSYSTEM=native is needed to overcome a rendering bug due to running the app through the X socket. Using -e QT_GRAPHICSSYSTEM=native to set this environment variable doesn't seem to work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions