Git Product home page Git Product logo

docker-intellij-1's Introduction

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:

  • save the IDE preferences into <your-HOME-dir>/.IdeaIC2016.1_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}/.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.

docker-intellij-1's People

Contributors

bwplotka avatar dlsniper avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.