Sign inSign up

kongkoro/pycharm

By kongkoro

Updated over 9 years ago

run pycharm in a container

Image
12

6.4K

kongkoro/pycharm repository overview

latest, debian

  • PyCharm Community Edition
  • openjdk
  • git
  • python 2.7

PyCharm Community Edition

This container is only possible because of how easy it is to mount your X11 socket to a container.
I decided to try my hand at making a pycharm container for my ubuntu dev box, here goes nothing!

xhost permission

docker is going to need permission to mount the X11 socket. The following command should do the trick:
xhost +local:docker

Get The image

To get the image, you have two options, you can build it or you can pull it from docker-hub

Pull

docker pull kongkoro/pycharm

Build

download the kongkoro/pycharm Dockerfile, and navigate to that directory and run the following command:
docker build -t kongkoro/pycharm .

Run

If you just want to try out the container do this:

docker run -it -v /tmp/.X11-unix/:/tmp/.X11-unix/ -e DISPLAY=$DISPLAY --rm kongkoro/pycharm  

For a little more persistence try this:

docker run -it -v /tmp/.X11-unix/:/tmp/.X11-unix/ -v ~/PycharmProjects:/root/PycharmProjects -v ~/.PyCharm40:/root/.PyCharm40 -e DISPLAY=$DISPLAY --rm kongkoro/pycharm
References

Tag summary

Content type

Image

Digest

sha256:55fd60935

Size

357.2 MB

Last updated

over 9 years ago

docker pull kongkoro/pycharm