boob-sbcm / docker-intellij-idea

Docker container to run IntelliJ IDEA Community Edition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker container to run IntelliJ IDEA Community Edition (https://www.jetbrains.com/idea/)

Usage

docker run --rm \
  -e DISPLAY=${DISPLAY} \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  -v ~/.Idea:/home/developer/.Idea \
  -v ~/.Idea.java:/home/developer/.java \
  -v ~/.Idea.maven:/home/developer/.m2 \
  -v ~/.Idea.gradle:/home/developer/.gradle \
  -v ~/Project:/home/developer/Project \
  --name idea-$(head -c 4 /dev/urandom | xxd -p)-$(date +'%Y%m%d-%H%M%S') \
rycus86/intellij-idea:latest

Docker Hub Page: https://hub.docker.com/r/rycus86/intellij-idea/

Notes

The IDE will have access to AdoptOpenJDK 8 and to Git as well. Project folders need to be mounted like -v ~/Project:/home/developer/Project. The actual name can be anything - I used something random to be able to start multiple instances if needed. You might want to consider using --network=host if you're running servers from the IDE.

About

Docker container to run IntelliJ IDEA Community Edition

License:MIT License


Languages

Language:Dockerfile 100.0%