intellij-ideadocker

How can I develop in docker container with intellij?


I know intellij has a docker container plugin, however it doesn't seem to allow me to develop inside the container itself. The idea is simple, I don't want to configure my host to have the correct environment tools. I'd rather just a docker container setup and then use intellij to find libs, functionality and such with in the container itself.

This would be incredibly helpful for c++, java, and scala dev. Also it would be useful debugging as well.

So is it possible to develop within a docker container with intellij?


Solution

  • So you just want to work within a container just as you would within a full-blown VM, right? Then you should just run a container, attach a display (to run IDEA) and start configuring your development environment.

    For the display part I'd test some answers given in Can you run GUI apps in a docker container?. There are some very cool answers in this topic showing various approaches to running GUI apps within a container.