Skip to content

Docker image for IntelliJ IDEA Community, Go and Go plugin

License

Notifications You must be signed in to change notification settings

bwplotka/docker-intellij

 
 

Repository files navigation

Docker image for IntelliJ IDEA Community, Go and Go plugin

Circle CI

The image contains the following software:

Running

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

docker run -tdi \
           -e DISPLAY=${DISPLAY} \
           -v /tmp/.X11-unix:/tmp/.X11-unix \
           -v ${HOME}/.IdeaIC15_docker:/home/developer/.IdeaIC15 \
           -v ${GOPATH}:/home/developer/go \
           dlsniper/docker-intellij

The command will do the following:

  • save the IDE preferences into <your-HOME-dir>/.IdeaIC15_docker
  • mounts the GOPATH from your computer to the one in the container. This assumes you have a single directory. If you have multiple directories in your GOPATH, then see below how you can customize this to run correctly.

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}/.IdeaIC15_docker

docker run -tdi \
           -e DISPLAY=${DISPLAY} \
           -v /tmp/.X11-unix:/tmp/.X11-unix \
           -v {$PREF_DIR}:/home/developer/.IdeaIC15 \
           -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) 2015 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.

About

Docker image for IntelliJ IDEA Community, Go and Go plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%