Created
September 1, 2016 14:36
-
-
Save cbergau/9ba96ea50f683e74e5b9d069674028f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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