mount .sonar to host,prevent unecessary redownload

This commit is contained in:
Frieder Schlesier 2015-12-19 11:59:50 +01:00
parent 654ded0f10
commit 7546709d96
1 changed files with 13 additions and 12 deletions

View File

@ -85,6 +85,7 @@ eclipse() {
-v $HOME/projects/java/workspace:/home/eclipse/workspace \ -v $HOME/projects/java/workspace:/home/eclipse/workspace \
-v $HOME/.eclipse/plugins:/opt/eclipse/plugins \ -v $HOME/.eclipse/plugins:/opt/eclipse/plugins \
-v $HOME/.eclipse/configuration:/opt/eclipse/configuration \ -v $HOME/.eclipse/configuration:/opt/eclipse/configuration \
-v $HOME/.sonar:/home/eclipse/.sonar \
--name eclipse \ --name eclipse \
fschl/eclipse:latest fschl/eclipse:latest
} }
@ -196,18 +197,18 @@ skype() {
} }
torbrowser() { torbrowser() {
del_stopped torbrowser del_stopped torbrowser
docker run -d \ docker run -d \
-v /etc/localtime:/etc/localtime:ro \ -v /etc/localtime:/etc/localtime:ro \
-v /tmp/.X11-unix:/tmp/.X11-unix \ -v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=unix$DISPLAY \ -e DISPLAY=unix$DISPLAY \
-e GDK_SCALE \ -e GDK_SCALE \
-e GDK_DPI_SCALE \ -e GDK_DPI_SCALE \
--device /dev/snd \ --device /dev/snd \
--name torbrowser \ --name torbrowser \
fschl/tor-browser fschl/tor-browser
# exit current shell # exit current shell
exit 0 exit 0
} }