mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 09:54:03 +00:00
Better M1 DX
This commit is contained in:
parent
2f3d4b9953
commit
05f2a828a1
3 changed files with 25 additions and 25 deletions
|
|
@ -2,23 +2,14 @@
|
|||
|
||||
## Code style
|
||||
|
||||
StyleCI will flag code style violations in your pull requests.
|
||||
php-cs-fixer will fix code style violations in your pull requests.
|
||||
|
||||
## Running tests
|
||||
|
||||
Run `docker-compose up -d` to start the containers. Then run `./test` to run the tests.
|
||||
Run `composer docker-up` to start the containers. Then run `composer test` to run the tests.
|
||||
|
||||
When you're done testing, run `docker-compose down` to shut down the containers.
|
||||
When you're done testing, run `composer docker-down` to shut down the containers.
|
||||
|
||||
### Docker on M1
|
||||
|
||||
You can add:
|
||||
```yaml
|
||||
services:
|
||||
mysql:
|
||||
platform: linux/amd64
|
||||
mysql2:
|
||||
platform: linux/amd64
|
||||
```
|
||||
|
||||
to `docker-compose.override.yml` to make `docker-compose up-d` work on M1.
|
||||
Run `composer docker-m1` to symlink `docker-compose-m1.override.yml` to `docker-compose.override.yml`. This will reconfigure a few services in the docker compose config to be compatible with M1.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue