/
dockrun.sh
executable file
·27 lines (24 loc) · 1.31 KB
/
dockrun.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
export GDISPLAY=unix/$DISPLAY # forward X11 display to the host machine
export GUSERNAME=`id -u -n` # current user's username
export GUID=`id -u` # current user's user id
export GGROUP=`id -g -n` # current user's primary group name
export GGID=`id -g` # current user's primary group id
export GHOME=$HOME # current user's home directory
export GSHELL=$SHELL # current user's shell
export GRUNXTERM=0 # flag to start lxterminal, useful in windows
export GPWD=`pwd` # current working directory
docker run -h BRHOST \
--rm \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v $HOME:$HOME \
-e DISPLAY=$GDISPLAY \
-e GUSERNAME=$GUSERNAME \
-e GUID=$GUID \
-e GGROUP=$GGROUP \
-e GGID=$GGID \
-e GHOME=$GHOME \
-e GSHELL=$SHELL \
-e GRUNXTERM=$GRUNXTERM \
-e GPWD=$GPWD \
-it digiampietro/buildroot-armv7