Skip to content

Instantly share code, notes, and snippets.

@cbergau
Created September 1, 2016 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbergau/9ba96ea50f683e74e5b9d069674028f8 to your computer and use it in GitHub Desktop.
Save cbergau/9ba96ea50f683e74e5b9d069674028f8 to your computer and use it in GitHub Desktop.
# Volumes:
# - /vagrant:/var/www/html Source code of the checkout
# - /home/vagrant:/home/vagrant Helper scripts of PHPStorm
# Environment Variables:
# - IDE_PHPUNIT_PHPUNIT_INCLUDE PHPStorm has a helper script that searches for PHPUnit. It's located under
# /home/vagrant/.phpstorm_helpers/phpunit.php if you need any more information
# - PHP_IDE_CONFIG PHPStorm maps it to the server configuration
# - XDEBUG_CONFIG XDebug configuration
docker run -t --rm \
-v /vagrant:/var/www/html \
-v /home/vagrant:/home/vagrant \
--net=host \
-w /var/www/html \
-e IDE_PHPUNIT_PHPUNIT_INCLUDE="/var/www/html/vendor/phpunit" \
-e PHP_IDE_CONFIG="serverName=my.local" \
-e XDEBUG_CONFIG="remote_host=10.255.88.34" \
namehere php "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment