Skip to content

iainmckay/docker-phpstorm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-phpstorm

Jetbrains PhpStorm 2017.1 running inside a docker container. This project is derived from fgrehm/docker-netbeans.

Features

  • PhpStorm 2017.1
  • PHP 5.6
  • composer
  • graphviz
  • NodeJS 5

There is a PHP7 based container in the php7 branch.

Running

To launch PhpStorm we need to provide the current display and your X11 socket. You can launch PhpStorm with the following command:

    $ docker run -it --rm \
        -e DISPLAY=$DISPLAY \
        -v /tmp/.X11-unix:/tmp/.X11-unix \
        -v ~/.PhpStorm2017.1:/home/developer/.PhpStorm2017.1 \
        -v ~/Projects:/workspace \
        iainmckay/phpstorm:2017.1-php5

With this your configuration will be persisted to /home/<user>/.PhpStorm2017.1 so that you don't lose it over subsequent runs. It also makes any sourcecode under /home/<user>/Projects available to PhpStorm. Inside the dockerized environment, it will be available through /workspace.

Note: Remember to change the ownership of the config directory on the host as it will be created as root if it does not already exist and PhpStorm won't be able to write to it.

Adding to your launcher

There is a desktop launcher provided in support/launcher. You should place phpstorm.desktop in ~/.local/share/applications and place phpstorm.png in ~/.local/share/icons.

You may need to logout and log back in for it to be detected.

About

Jetbrains PhpStorm in a docker container

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •