dlsniper / docker-intellij

Docker image for IntelliJ IDEA Community, Go and Go plugin
MIT License
29 stars 22 forks source link

Docker image for IntelliJ IDEA Community, Go and Go plugin

Circle CI

The image contains the following software:

Running

NOTE As of Docker 1.10(?) you need to specify full paths for mounts.

By running the following command you'll be able to start the container

docker run -tdi \
           --net="host" \
           --privileged=true \
           -e DISPLAY=${DISPLAY} \
           -v /tmp/.X11-unix:/tmp/.X11-unix \
           -v ${HOME}/.IdeaIC2016.1_docker:/home/developer/.IdeaIC2016.1 \
           -v ${GOPATH}:/home/developer/go \
           dlsniper/docker-intellij

The command will do the following:

Customizing the container

You can replace the ${GOPATH} environment variable to a hardcoded path that you have in your directory.

You can also choose to save the preferences in another directory.

For an example script to launch this, see below:

#!/usr/bin/env bash

GOPATH=/path/to/your/GOPATH
PREF_DIR=${HOME}/.IdeaIC2016.1_docker

docker run -tdi \
           --net="host" \
           --privileged=true \
           -e DISPLAY=${DISPLAY} \
           -v /tmp/.X11-unix:/tmp/.X11-unix \
           -v ${PREF_DIR}:/home/developer/.IdeaIC2016.1 \
           -v ${GOPATH}:/home/developer/go \
           dlsniper/docker-intellij

Updating the container

To update the container, simply run:

docker pull dlsniper/docker-intellij

Each of the plugins can be updated individually at any time, and other plugins can be installed as well.

However, to update IntelliJ IDEA itself, the docker image will need to be updated.

License

The MIT License (MIT)

Copyright (c) 2016 Florin Patan

If you want to read the full license text, please see the LICENSE file in this directory.

IntelliJ IDEA and all the other plugins are or may be trademarks of their respective owners / creators. Please read the individual licenses for them.