Skip to content

Commit

Permalink
Switch to newer Docker Compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean85 committed Nov 7, 2024
1 parent 9c1b054 commit 23c5933
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@
setup: build composer-update

shell: build
docker-compose run --rm php zsh
docker compose run --rm php zsh

build:
docker-compose build php
docker compose build php

start:
docker-compose up -d php
docker compose up -d php

composer-update: start
docker-compose exec php composer update
docker compose exec php composer update

pre-commit-check: rector cs-fix psalm phpstan tests

rector: start
docker-compose exec php vendor/bin/rector --ansi
docker compose exec php vendor/bin/rector --ansi

cs-fix: start
docker-compose exec php vendor/bin/php-cs-fixer fix --verbose --ansi
docker compose exec php vendor/bin/php-cs-fixer fix --verbose --ansi

psalm: start
docker-compose exec php vendor/bin/psalm
docker compose exec php vendor/bin/psalm

phpstan: start
docker-compose exec php vendor/bin/phpstan analyse --ansi --memory-limit=-1
docker compose exec php vendor/bin/phpstan analyse --ansi --memory-limit=-1

tests: start
docker-compose exec php vendor/bin/phpunit --colors=always
docker compose exec php vendor/bin/phpunit --colors=always
2 changes: 0 additions & 2 deletions docker-compose.override.yml.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.2'

services:
php:
volumes:
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.2'

services:
php:
container_name: paraunit_container
Expand Down

0 comments on commit 23c5933

Please sign in to comment.