Skip to content

Instantly share code, notes, and snippets.

@leolana
Created July 16, 2017 14:20
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 leolana/3376124aa4ff43443b338ad9c1d61811 to your computer and use it in GitHub Desktop.
Save leolana/3376124aa4ff43443b338ad9c1d61811 to your computer and use it in GitHub Desktop.
PHPUnit script sheel run docker
#!/bin/sh
export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
echo "Current working directory: '"$(pwd)"'"
sudo docker run --rm -v $(pwd):/app -v ~/.ssh:/root/.ssh leonardolana/phpdocker:latest /usr/local/bin/phpunit.phar $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment