1
0
Fork 0
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:
Samuel Štancl 2022-07-22 22:29:56 +02:00
parent 2f3d4b9953
commit 05f2a828a1
3 changed files with 25 additions and 25 deletions

View file

@ -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.