-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
118 lines (92 loc) · 2.77 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
.PHONY: up
up:
@docker compose up
.PHONY: dev
dev:
@docker compose up
.PHONY: coldstart
coldstart:
-rm -rf vendor
@docker compose up
.PHONY: install
install:
@docker compose up -d
@docker exec geo-service-app-dev sh -c "composer install"
assets:
@docker exec geo-service-app-dev sh -c "bin/console assets:install"
.PHONY: update
update:
@docker exec geo-service-app-dev sh -c "composer update"
.PHONY: migration
migration:
docker exec geo-service-app-dev sh -c "php bin/console make migration"
.PHONY: migrate
migrate:
@docker exec geo-service-app-dev sh -c "php bin/console d:m:m"
openapi:
@docker exec -it geo-service-app-dev sh -c "bin/console nelmio:apidoc:dump --format=yaml > openapi.yaml"
cache:
@docker exec geo-service-app-dev sh -c "bin/console cache:clear"
.PHONY: user
user:
@docker exec -it geo-service-app-dev php bin/console app:create-user
.PHONY: ssh
ssh:
@docker exec -it geo-service-app-dev sh
.PHONY: test
test:
@docker compose -f docker-compose.test.yaml up -d
@docker exec geo-service-test-app sh -c "APP_ENV=test ./bin/console --no-interaction d:m:m"
@docker exec geo-service-test-app sh -c "APP_ENV=test ./bin/console d:f:l --no-interaction"
@docker exec geo-service-test-app sh -c "APP_ENV=test ./vendor/bin/phpunit"
.PHONY: test-down
test-down:
@docker compose -f docker-compose.test.yaml down -v --timeout=0
.PHONY: regions
regions:
@docker exec geo-service-app-dev sh -c "bin/console app:import-regions"
.PHONY: subregions
subregions:
@docker exec geo-service-app-dev sh -c "bin/console app:import-subregions"
.PHONY: timezones
timezones:
@docker exec geo-service-app-dev sh -c "bin/console app:import-timezones"
.PHONY: currencies
currencies:
@docker exec geo-service-app-dev sh -c "bin/console app:import-currencies"
.PHONY: countries
countries:
@docker exec geo-service-app-dev sh -c "bin/console app:import-countries"
.PHONY: states
states:
@docker exec geo-service-app-dev sh -c "bin/console app:import-states"
.PHONY: cities
cities:
@docker exec geo-service-app-dev sh -c "bin/console app:import-cities"
.PHONY: sync-capitals
sync-capitals:
@docker exec geo-service-app-dev sh -c "bin/console app:sync-capitals"
.PHONY: sync-cities-with-iata
sync-cities-with-iata:
@docker exec geo-service-app-dev sh -c "bin/console app:sync-cities-with-iata"
.PHONY: airports
airports:
@docker exec geo-service-app-dev sh -c "bin/console app:import-airports"
.PHONY: airports2
airports2:
@docker exec geo-service-app-dev sh -c "bin/console app:import-airports2"
nationalities:
@docker exec geo-service-app-dev sh -c "bin/console app:import-nationalities"
.PHONY: geo
geo:
make currencies
make timezones
make regions
make subregions
make countries
make states
make cities
make sync-capitals
make sync-cities-with-iata
make airports
make nationalities