webstorm(){
x11host
docker run -d \
-e DISPLAY=$X11HOST:0.0 \
-e "TZ=America/Chicago" \
-v $HOME/Workspace/.intellij:/root/.IdeaIC15 \
--volumes-from github \
--volumes-from m2 \
--name webstorm \
psharkey/webstorm
}
DISPLAY variable using the value (from the helper function below)github and m2 data containers created for toolbox# Define a variable to use for the X11 host IP
x11host(){
ACTIVE_MACHINE=$(docker-machine active)
X11HOST="$(docker-machine inspect $ACTIVE_MACHINE \
| grep HostOnlyCIDR \
| awk '{print $2}' \
| sed 's/"//g' \
| cut -f1 -d"/")"
}
Refer to psharkey/novnc for an alternative X11 configuration.
Content type
Image
Digest
Size
415.6 MB
Last updated
about 9 years ago
docker pull jamesmstone/webstorm