Skip to content

Commit 1c940ef

Browse files
author
David Běhal
committed
Some improvements
1 parent dbf24ec commit 1c940ef

File tree

3 files changed

+22
-19
lines changed

3 files changed

+22
-19
lines changed

.docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.2-cli
1+
FROM php:8.4-cli
22

33
# Install system dependencies
44
RUN apt-get update && apt-get install -y \

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -596,13 +596,16 @@ To run the test suite you can use the following commands:
596596

597597
```bash
598598
# To run both style and unit tests.
599-
docker compose exec -it php composer test
599+
docker compose exec -it app composer install
600+
601+
# To run both style and unit tests.
602+
docker compose exec -it app composer test
600603

601604
# To run only style tests.
602-
docker compose exec -it php composer test:style
605+
docker compose exec -it app composer test:style
603606

604607
# To run only unit tests.
605-
docker compose exec -it php composer test:unit
608+
docker compose exec -it app composer test:unit
606609
```
607610

608611
If you receive any errors from the style tests, you can automatically fix most,

docker-compose.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
services:
22

3+
app:
4+
build:
5+
context: .
6+
dockerfile: .docker/app/Dockerfile
7+
environment:
8+
HOST: rabbitmq
9+
PORT: 5672
10+
volumes:
11+
- .:/app
12+
working_dir: /app
13+
tty: true
14+
stdin_open: true
15+
depends_on:
16+
- rabbitmq
17+
318
rabbitmq:
419
image: rabbitmq:3.8
520
environment:
@@ -35,18 +50,3 @@ services:
3550
ports:
3651
- 15671:15671
3752
- 15672:15672
38-
39-
php:
40-
build:
41-
context: .
42-
dockerfile: .docker/Dockerfile
43-
environment:
44-
HOST: rabbitmq
45-
PORT: 5672
46-
volumes:
47-
- .:/app
48-
working_dir: /app
49-
tty: true
50-
stdin_open: true
51-
depends_on:
52-
- rabbitmq

0 commit comments

Comments
 (0)