Skip to content

Commit

Permalink
New version of docker and docker compose (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
fezfez authored Nov 10, 2024
1 parent d21cf1f commit c3bc0f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
24 changes: 12 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
docker compose exec php sh
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
php:
image: cube43/docker-apache2-php:8.3
Expand Down

0 comments on commit c3bc0f9

Please sign in to comment.