Public | Automated Build

Last pushed: 4 days ago
Short Description
JetBrains WebStorm JavaScript IDE
Full Description

WebStorm + OpenJDK 8

Example usage:

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
}

Parameter explanation:

  • Set the DISPLAY variable using the value (from the helper function below)
  • Set the timezone (to your local value)
  • Map a volume to persist the IntelliJ IDEA preferences
  • Map volumes from github and m2 data containers created for toolbox

X11 helper function:

# 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"/")"
}

X11 Alternative

Refer to psharkey/novnc for an alternative X11 configuration.

Docker Pull Command
Owner
psharkey
Source Repository

Comments (0)