-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (30 loc) · 834 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/make
SHELL = /bin/sh
export USER_ID := $(shell id -u)
export GROUP_ID := $(shell id -g)
export IMAGE = cqrs-symfony-php-8.1:latest
.PHONY: build
build:
docker-compose build --build-arg USER_ID=$(USER_ID)
make dependencies
.PHONY: dependencies
dependencies:
docker-compose run --rm cqrs-web-php composer install
.PHONY: start
start:
docker-compose up -d
.PHONY: start
shell:
docker exec -it cqrs-web-php sh
.PHONY: code-format
format-code:
docker-compose run --rm cqrs-web-php composer run format:code
.PHONY: ping-postgres
ping-database:
@docker exec cqrs-web-postgres bash -c "pg_isready -U postgres -d postgres"
.PHONY: test-unit
test-unit:
docker-compose run --rm cqrs-web-php composer run test:unit
.PHONY: test-acceptance
test-acceptance:
docker exec -t cqrs-web-php composer run test:acceptance