mirror of
https://github.com/amphp/parallel.git
synced 2025-01-17 20:58:36 +01:00
Drop notes on vagrant
This commit is contained in:
parent
71f9076f2d
commit
d9200171ba
14
README.md
14
README.md
@ -72,16 +72,4 @@ If you discover any security related issues, please email [`me@kelunik.com`](mai
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
The MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information.
|
The MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information.
|
||||||
|
|
||||||
## Development and Contributing
|
|
||||||
|
|
||||||
Want to hack on the source? A [Vagrant](http://vagrantup.com) box is provided with the repository to give a common development environment for running concurrent threads and processes, and comes with a bunch of handy tools and scripts for testing and experimentation.
|
|
||||||
|
|
||||||
Starting up and logging into the virtual machine is as simple as
|
|
||||||
|
|
||||||
```bash
|
|
||||||
vagrant up && vagrant ssh
|
|
||||||
```
|
|
||||||
|
|
||||||
Once inside the VM, you can install PHP extensions with [Pickle](https://github.com/FriendsOfPHP/pickle), switch versions with `newphp VERSION`, and test for memory leaks with [Valgrind](http://valgrind.org).
|
|
17
Vagrantfile
vendored
17
Vagrantfile
vendored
@ -1,17 +0,0 @@
|
|||||||
Vagrant.configure(2) do |config|
|
|
||||||
config.vm.box = "rasmus/php7dev"
|
|
||||||
|
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
|
||||||
newphp 7 zts
|
|
||||||
|
|
||||||
# Install pthreads from master
|
|
||||||
git clone https://github.com/krakjoe/pthreads
|
|
||||||
cd pthreads
|
|
||||||
git checkout master
|
|
||||||
phpize
|
|
||||||
./configure
|
|
||||||
make
|
|
||||||
sudo make install
|
|
||||||
echo 'extension=pthreads.so' >> `php -i | grep php-cli.ini | awk '{print $5}'`
|
|
||||||
SHELL
|
|
||||||
end
|
|
Loading…
x
Reference in New Issue
Block a user