This is PHPStorm polinux/phpstorm Docker image using X11. This Image is using polinux/php Docker image as base. for more details on whatr version of php and NODEJS please see this repo.
This image require an X11 to be present in the system. By default all Linux distros that come with desktop environment have it installed. For Windows I would recmmend Cygwin/X and for macOS XQuartz.
Another requirement is to have a prperly configured X11 environemnt that would work with Docker. For this purpose I highle recommend using small program called nut by matthieudelaro whuich is redirecting X11 to work with Docker. For this purpose I added nut.yml
file for easy deployment of this image with working environment.
For different PHP versions, look up different branches of this repository. On Docker Hub you can find them under different tags:
polinux/phpstorm:latest
- PHP 7.1 built from master branchpolinux/phpstorm:5.4
- PHP 5.4 built from 5.4 branchpolinux/phpstorm:5.5
- PHP 5.5 built from 5.5 branchpolinux/phpstorm:5.6
- PHP 5.6 built from 5.6 branchpolinux/phpstorm:7.0
- PHP 7.0 built from 7.0 branchpolinux/phpstorm:7.1
- PHP 7.0 built from 7.1 branch
There are two directories that are important for the user.
phpstorm-home
- PHPStorm home directory with all program settings and license (/home/developer/.PhpStorm2016.3/
inside of the Docker image)projects
- All projects that are shared with the host OS. (/home/developer/PhpstormProjects/
inside of the Docker image)
Pull Image
docker pull polinux/phpstorm
Or, if you prefer to build it on your own:
docker build -t polinux/phpstorm .
Run the image: Use nut to deploy this image with X11 support.
nut run
Change options in nut.yml
file if necessery
Przemyslaw Ozgo (linux@ozgo.info)