File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ help :
2
+ @grep -E ' ^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | sort | awk ' BEGIN {FS = ":.*?## "}; {printf "⚡ \033[34m%-30s\033[0m %s\n", $$1, $$2}'
3
+
4
+ install : build run
5
+ test : build run test
6
+
7
+ build : # # Build Docker image for local development
8
+ docker-compose build
9
+
10
+ start : run
11
+ run : # # Run application Docker. Run 'make build' first
12
+ docker-compose up -d
13
+
14
+ status : ps
15
+ ps : # ## Alias of docker-composer ps command
16
+ docker-compose ps
17
+
18
+ restart : # # Restart containers
19
+ docker-compose restart
20
+
21
+ test : # ## Run unit testing
22
+ docker-compose exec app sh -c " composer test"
23
+
24
+ stop : # # Stop application running in Docker
25
+ docker-compose kill
26
+
27
+ destroy : # # Alias docker-compose down command
28
+ docker-compose down
29
+ down : destroy
30
+
31
+ logs : # # View container logs
32
+ docker-compose logs -ft app
33
+
34
+ shell : # # Enter bash in running Docker container
35
+ docker-compose exec app sh
36
+
37
+ root : # # Enter bash in running Docker container as root user
38
+ docker-compose exec --user root app sh
Original file line number Diff line number Diff line change @@ -38,10 +38,18 @@ QUERY_LOGGER_ENABLED=false
38
38
39
39
## Test
40
40
41
+ - Without Docker
42
+
41
43
``` bash
42
44
composer test
43
45
```
44
46
47
+ - With Docker
48
+
49
+ ``` bash
50
+ make test
51
+ ```
52
+
45
53
## Credits
46
54
47
55
- [ Ngoc Linh Pham] ( https://github.com/pnlinh )
You can’t perform that action at this time.
0 commit comments