https://github.com/rycus86/docker-pycharm-pro
Docker container to run PyCharm Professional Edition
https://github.com/rycus86/docker-pycharm-pro
Last synced: 5 months ago
JSON representation
Docker container to run PyCharm Professional Edition
- Host: GitHub
- URL: https://github.com/rycus86/docker-pycharm-pro
- Owner: rycus86
- License: mit
- Created: 2018-03-30T23:23:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-30T10:55:58.000Z (about 3 years ago)
- Last Synced: 2025-01-23T18:16:10.892Z (over 1 year ago)
- Language: Dockerfile
- Size: 70.3 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Docker container to run PyCharm Professional Edition (https://www.jetbrains.com/pycharm/)
### Usage
```
docker run --rm \
-e DISPLAY=${DISPLAY} \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v ~/.PyCharm:/home/developer/.PyCharm \
-v ~/.PyCharm.java:/home/developer/.java \
-v ~/.PyCharm.py3:/home/developer/.py3.libs \
-v ~/.PyCharm.share:/home/developer/.local/share/JetBrains \
-v ~/Project:/home/developer/Project \
--name pycharm-$(head -c 4 /dev/urandom | xxd -p)-$(date +'%Y%m%d-%H%M%S') \
rycus86/pycharm-pro:${IDE_VERSION}
```
Docker Hub Page: https://hub.docker.com/r/rycus86/pycharm-pro/
([available versions](https://hub.docker.com/r/rycus86/pycharm-pro/tags))
### OS X instructions
1. Install XQuartz from https://www.xquartz.org/releases/
2. Configure `Allow connections from network clients` in the settings
- Restart the system (needed only once when this is enabled)
3. Run `xhost +localhost` in a terminal to allow connecting to X11 over the TCP socket
4. Use `-e DISPLAY=host.docker.internal:0` for passing the `${DISPLAY}` environment
#### For Windows hosts (simplified):
```
docker.exe run --rm -d ^
--name pycharm-pro ^
-e DISPLAY=YOUR_IP_ADDRESS:0.0 ^
-v %TEMP%\.X11-unix:/tmp/.X11-unix ^
-v %USERPROFILE%\pycharm-docker:/home/developer ^
-v %USERPROFILE%\pycharm-docker\python-libs:/home/developer/.py3.libs ^
rycus86/pycharm-pro:%IDE_VERSION%
```
### Notes
You'll still need a license to use the application!
The IDE will have access to Python 3 and to Git.
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.
To use `pip` either use the terminal in PyCharm or install from the terminal from inside the container like `docker exec -it pycharm-running bash` then install using **pip**.
To run container on Windows hosted machines you will need to have some X server installed and launched (e.g. Xming)