Docker image for process mining.
This is basically ProM 6 with OpenJDK JRE 1.8 running on Ubuntu 16.04.
All credit goes to who contributed to ProM, an amazing tool for process mining.
Start ProM
$ docker run --rm -it -p5909:5900 zhicwu/prom:6
It's a bit slow to start for the first time. Once it's ready, you should be able to see the screen by connecting to localhost:5909 via a VNC viewer(default password is secret).
Run JavaScript(ES6 by default)
$ cat test.js
const message = 'Hello ProM!';
print(message);
$ docker run --rm -it -v`pwd`/test.js:/test.js zhicwu/prom:6 /test.js
Starting xvfb in background...
Setup display...
nohup: redirecting stderr to stdout
nashorn full version 1.8.0_171-8u171-b11-0ubuntu0.16.04.1-b11
Hello ProM!
Upgrade Plugins
$ docker run --rm -it zhicwu/prom:6 bash
# du -sh .ProM68
1.2G .ProM68
# ls -alF .ProM68
total 24
drwxr-xr-x 3 prom prom 4096 Jul 8 17:23 ./
drwxr-xr-x 1 prom prom 4096 Jul 9 06:47 ../
drwxr-xr-x 237 prom prom 12288 Jul 8 17:29 packages/
# ./docker-entrypoint.sh install.js
Run in Server Mode(examples)
$ docker run --rm -it -p1234:1234 -p5678:5678 -p5900:5900 zhicwu/prom:6-server
.
.
.
Starting server... open your browser and navigate to http://localhost:5678/
$ time curl http://localhost:5678/script?file=example-efficient-tree
{"id":"879d9fbc-f914-4313-b98c-152a7225b91b","script":"example-efficient-tree.groovy","finished":true, "expireAt":"2018-07-12T12:39:09.368Z","result":null,"files":["efficient-tree.txt","efficient-tree.dot"]}
real 0m2.922s
user 0m0.015s
sys 0m0.008s
$ curl -d'println 2333' http://localhost:5678/script?file=mine
...
$ curl http://localhost:5678/script?file=mine
Content type
Image
Digest
Size
1.2 GB
Last updated
about 8 years ago
docker pull zhicwu/prom