From c3bc0f9c7fe972b7bf9708b071190ee5c1d23ee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane?= Date: Sun, 10 Nov 2024 19:32:17 +0100 Subject: [PATCH] New version of docker and docker compose (#146) --- Makefile | 24 ++++++++++++------------ docker-compose.yml | 1 - 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 6e92b2a..ac7ca5c 100644 --- a/Makefile +++ b/Makefile @@ -11,40 +11,40 @@ endif is-valid: test cs psalm dup: - docker-compose up -d + docker compose up -d kill: - docker-compose rm -f -s + docker compose rm -f -s test: - docker-compose exec php php -dpcov.enabled=0 vendor/bin/phpunit $(COMMAND_ARGS) + docker compose exec php php -dpcov.enabled=0 vendor/bin/phpunit $(COMMAND_ARGS) cs: - docker-compose exec php ./vendor/bin/phpcs + docker compose exec php ./vendor/bin/phpcs cbf: - docker-compose exec php ./vendor/bin/phpcbf + docker compose exec php ./vendor/bin/phpcbf psalm: - docker-compose exec php ./vendor/bin/psalm + docker compose exec php ./vendor/bin/psalm infections: - docker-compose exec php ./vendor/bin/infection -s + docker compose exec php ./vendor/bin/infection -s coverage: dup - docker-compose exec php ./vendor/bin/phpunit --coverage-html coverage + docker compose exec php ./vendor/bin/phpunit --coverage-html coverage update: dup - docker-compose exec php composer update + docker compose exec php composer update install: dup - docker-compose exec php composer install + docker compose exec php composer install composer-valid: dup - docker-compose exec php composer validate + docker compose exec php composer validate login: - docker-compose exec php sh \ No newline at end of file + docker compose exec php sh \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index ef4b1f1..7d2fbfe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ -version: '3' services: php: image: cube43/docker-apache2-php:8.3