Skip to content

stefaneicher/clion-docker

 
 

Repository files navigation

Intellij IDE in a Docker container

  • INTELLIJ VERSION=ideaIC-2018.2

Requirements

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

Run (Recommended for easy startup)

./run.sh

Guide: Install Scala

During starting up Intellij first time, one of the options will allow you to install "Scala". Remember to install that. If not, you still can add inside the Intellij IDE later.

firefox ./guide/Intellij-guide-install-Scala-option.png

Stop

./stop.sh

Build (Optional)

./build.sh

Configure - (Optional) Making plugins persist between sessions

If you use "./run.sh", you can ignore this section! Intellij configurations are kept on $HOME/.ideaIC-2018.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/.ideaIC-2018.1:/home/developer/.ideaIC-2018.1 \
           -v `pwd`:/home/developer/workspace \
           openkbs/intellij-docker

See Also - Docker-based IDE

See Also - Docker-based SQL GUI

Reference

Display X11 Issue

More resource in X11 display of Eclipse on your host machine's OS, please see

Other possible Issues

You might see the warning message in the launching xterm console like below, you can just ignore it. I googles around and some blogs just suggested to ignore since the IDE still functional ok.

** (eclipse:1): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-wrKH8o5rny: Connection refused
** (java:7): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-wrKH8o5rny: Connection refused

About

Intellij Community edition Docker

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 94.3%
  • Dockerfile 5.7%