Skip to content

DrSnowbird/webstorm-docker

Repository files navigation

WebStorm IDE in a Docker container + Java 8 (1.8.0_191) JDK + Maven 3.6 + Python 3.5 + PIP3 18.1 + npm 3.5.2 + nodejs v4.2.6 + Gradle 5.1 + X11 (as Desktop)

Components:

  • WebStorm version "2018.3"
  • java version "1.8.0_191" Java(TM) SE Runtime Environment (build 1.8.0_191-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
  • Apache Maven 3.6.0
  • Python 3.5.2
  • npm 3.5.2 + nodejs v4.2.6
  • Gradle 5.1
  • Other tools: git wget unzip vim python python-setuptools python-dev python-numpy

Requirements

  • Docker 1.13.1+ or latest 17.12.1-ce
  • An X11 server socket enabled (e.g. xhost+)

Run (recommended for easy-start)

Image is pulling from openkbs/webstorm-docker

./run.sh

Build

You can build your own image locally.

./build.sh

Making plugins persist between sessions

If you run "./run.sh" instead of "docker-compose up", you don't have to do anything as below.

WebStorm configurations are kept on $HOME/.WebStorm2018.1 inside the container, so if you want to keep them around after you close it, you'll need to share it with your host.

For example: (Version might be different - use run.sh instead)

docker run -ti --rm \
           -e DISPLAY=$DISPLAY \
           -v /tmp/.X11-unix:/tmp/.X11-unix \
           -v $HOME/.WebStorm2018.1:/home/developer/.WebStorm2018.1 \
           -v `pwd`:/home/developer/workspace \
           openkbs/WebStorm-docker

See Also - Other docker-based IDE

Reference