Files
dymola-docker/README.md
2020-04-11 21:26:06 +02:00

27 lines
857 B
Markdown

# Dymola Docker
## Disclaimer
This is just an unofficial experiment by me.
It seems to work, but no guarantee!
This is based on the files provided by the RWTH Aachen for teaching.
## Building
You need a running docker engine and X11.
First you need to download the files (program files (rpm) and license file).
Copy the folder `AM_CAT_Dymola.AllLinux` and `Dymola.LIC` in the same folder as the `Dockerfile`.
```bash
sudo docker build -t dymola .
```
This may take a while.
## Running
There are a number of ways, but I use:
```bash
sudo docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /path/to/my/dymola/workspace:/home/user/Dymola dymola
```
You can then run Dymola in the opened `xterm` (terminal):
```bash
dymola-2018-x86_64
```
This requires you to always set the path to the license file and the workspace on each start.