-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockide
executable file
·19 lines (17 loc) · 913 Bytes
/
dockide
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
LOGFILE=$HOME/.config/dockIDE/output.log
echo "" >> $LOGFILE
date >> $LOGFILE
docker run \
--rm \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v .:/app/ -v nvim_data:/root/.local/share/nvim/ \
-v nvim_state:/root/.local/state/nvim/ \
-v $HOME/.config/dockIDE/:/root/.config/nvim/ \
-v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK \
-v $HOME/.ssh:/root/.ssh:ro \
-e DISPLAY \
-e XAUTHORITY \
-e QT_X11_NO_MITSHM=1 \
--env-file $HOME/.config/dockIDE/user.env \
trantorian/nvim:1.0 >> $LOGFILE 2>&1 &