First, please run this command to build docker image.
make docker-build
Then, install all dependencies
make composer-install
Last, run the tests
make composer-test
- Open Settings dialog
- Open ... on PHP > CLI Interpreter
- Add new interpreter (From docker ...)
- Choose Docker with image l42x:latest
- Back to Settings
- Open ... on PHP > Docker Container
- On Volume Bindings, set host to current path and
/usr/src/myapp
to container path
Change this value on your composer.json
laravel app
{
"requires": {
"laravel/framework": "dev-branch-name as 4.2.x-dev"
},
"repositories": [
{
"type": "path",
"url": "/var/www/laravel42x",
"options": {
"symlink": false
}
}
]
}
Then, run this command:
composer update laravel/framework --prefer-source -W
Add this volume binding to docker-compose.yml
version: '3.9'
services:
web:
volumes:
- "/path/to/laravel42x:/var/www/laravel42x"