Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ DOCKER_PHP_SERVICE=php
start: erase cache-folders build composer-install bash

erase:
docker-compose down -v
docker compose down -v

build:
docker-compose build && \
docker-compose pull
docker compose build && \
docker compose pull

cache-folders:
mkdir -p ~/.composer && chown ${UID}:${GID} ~/.composer

composer-install:
docker-compose run --rm -u ${UID}:${GID} ${DOCKER_PHP_SERVICE} composer install
docker compose run --rm -u ${UID}:${GID} ${DOCKER_PHP_SERVICE} composer install

bash:
docker-compose run --rm -u ${UID}:${GID} ${DOCKER_PHP_SERVICE} sh
docker compose run --rm -u ${UID}:${GID} ${DOCKER_PHP_SERVICE} sh

logs:
docker-compose logs -f ${DOCKER_PHP_SERVICE}
docker compose logs -f ${DOCKER_PHP_SERVICE}

.PHONY: tests
tests:
docker-compose run --rm -u ${UID}:${GID} ${DOCKER_PHP_SERVICE} phpunit
docker compose run --rm -u ${UID}:${GID} ${DOCKER_PHP_SERVICE} phpunit
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"require": {
"ext-amqp": "*",
"php": "^8.0",
"pccomponentes/ddd-logging": "^2.5",
"pccomponentes/ddd": "^4.0",
"pccomponentes/ddd-logging": "^2.5 || dev-*",
"pccomponentes/ddd": "^4.0 || dev-*",
"beberlei/assert": "^3.3",
"ramsey/uuid": "^4.5",
"symfony/framework-bundle": "^6.0",
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.7'

services:
php:
environment:
Expand Down