File tree 2 files changed +45
-0
lines changed
2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ SHELL := /bin/bash
2
+ DOCKER := $(shell which docker)
3
+ DOCKER_COMPOSE := $(shell which docker-compose)
4
+
5
+
6
+ .PHONY : help
7
+ help :
8
+ @$(DOCKER ) --version
9
+ @$(DOCKER_COMPOSE ) --version
10
+ @echo " usage: make <target>"
11
+ @echo
12
+ @echo " target is one of:"
13
+ @echo " help show this message and exit"
14
+ @echo " build build the docker image for lando"
15
+ @echo " format run ruff and black on source code"
16
+ @echo " test run the test suite"
17
+ @echo " start run the application"
18
+ @echo " stop stop the application"
19
+ @echo " attach attach for debugging (ctrl-p ctrl-q to detach)"
20
+
21
+ .PHONY : test
22
+ test :
23
+ docker-compose run lando lando tests
24
+
25
+ .PHONY : format
26
+ format :
27
+ docker-compose run lando lando format
28
+
29
+ .PHONY : build
30
+ build :
31
+ docker-compose build
32
+
33
+ .PHONY : start
34
+ start :
35
+ docker-compose up -d
36
+
37
+ .PHONY : stop
38
+ stop :
39
+ docker-compose down
40
+
41
+ .PHONY : attach
42
+ attach :
43
+ -@docker-compose attach lando || :
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ services:
16
16
lando :
17
17
build :
18
18
context : .
19
+ stdin_open : true
20
+ tty : true
19
21
image : lando
20
22
command : bash -c "
21
23
lando migrate &&
You can’t perform that action at this time.
0 commit comments