0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 15:09:10 -05:00
penpot/scripts/docker
2016-03-01 19:50:30 +02:00

16 lines
430 B
Bash
Executable file

#!/usr/bin/env bash
if $(sudo docker ps |grep -q "uxbox"); then
sudo docker kill uxbox
fi
if ! $(sudo docker ps |grep -q "uxbox"); then
if ! $(sudo docker ps -a |grep -q "uxbox"); then
sudo docker run -ti -v `pwd`:/home/uxbox/uxbox \
-v $HOME/.m2:/home/uxbox/.m2 -p 3449:3449 \
--name uxbox uxbox tmux
else
sudo docker start uxbox
sudo docker attach uxbox
fi
fi