vnpy/docker/gui/run.sh

14 lines
257 B
Bash
Raw Normal View History

2018-10-16 11:27:26 +00:00
#!/bin/bash
THIS_DIR=$(cd `dirname $0`; pwd -P)
TOPDIR=${THIS_DIR}/../..
id=vnpyuser
display="-v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY"
volume="-v ${TOPDIR}:/srv/vnpy"
docker run -it --rm --name vnpy -u $id $display $volume vnpy /bin/bash