@@ -30,84 +30,84 @@ help: ## Shows available commands with description
30
30
31
31
build : # # Build dev environment
32
32
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
33
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) docker-compose -f docker-compose.yml build
33
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) SQL_MODE=$(SQL_MODE) docker-compose -f docker-compose.yml build
34
34
else
35
35
$(ERROR_ONLY_FOR_HOST)
36
36
endif
37
37
38
38
build-test : # # Build test or continuous integration environment
39
39
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
40
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) docker-compose -f docker-compose-test-ci.yml build
40
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) SQL_MODE=$(SQL_MODE) docker-compose -f docker-compose-test-ci.yml build
41
41
else
42
42
$(ERROR_ONLY_FOR_HOST)
43
43
endif
44
44
45
45
build-staging : # # Build staging environment
46
46
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
47
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG =$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO =$(INNODB_USE_NATIVE_AIO ) docker-compose -f docker-compose-staging.yml build
47
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) INNODB_USE_NATIVE_AIO =$(INNODB_USE_NATIVE_AIO) SQL_MODE =$(SQL_MODE ) docker-compose -f docker-compose-staging.yml build
48
48
else
49
49
$(ERROR_ONLY_FOR_HOST)
50
50
endif
51
51
52
52
build-prod : # # Build prod environment
53
53
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
54
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG =$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO =$(INNODB_USE_NATIVE_AIO ) docker-compose -f docker-compose-prod.yml build
54
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) INNODB_USE_NATIVE_AIO =$(INNODB_USE_NATIVE_AIO) SQL_MODE =$(SQL_MODE ) docker-compose -f docker-compose-prod.yml build
55
55
else
56
56
$(ERROR_ONLY_FOR_HOST)
57
57
endif
58
58
59
59
start : # # Start dev environment
60
60
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
61
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) docker-compose -f docker-compose.yml $(PROJECT_NAME) up -d
61
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) SQL_MODE=$(SQL_MODE) docker-compose -f docker-compose.yml $(PROJECT_NAME) up -d
62
62
else
63
63
$(ERROR_ONLY_FOR_HOST)
64
64
endif
65
65
66
66
start-test : # # Start test or continuous integration environment
67
67
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
68
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) docker-compose -f docker-compose-test-ci.yml $(PROJECT_NAME) up -d
68
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) SQL_MODE=$(SQL_MODE) docker-compose -f docker-compose-test-ci.yml $(PROJECT_NAME) up -d
69
69
else
70
70
$(ERROR_ONLY_FOR_HOST)
71
71
endif
72
72
73
73
start-staging : # # Start staging environment
74
74
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
75
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG =$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO =$(INNODB_USE_NATIVE_AIO ) docker-compose -f docker-compose-staging.yml $(PROJECT_NAME) up -d
75
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) INNODB_USE_NATIVE_AIO =$(INNODB_USE_NATIVE_AIO) SQL_MODE =$(SQL_MODE ) docker-compose -f docker-compose-staging.yml $(PROJECT_NAME) up -d
76
76
else
77
77
$(ERROR_ONLY_FOR_HOST)
78
78
endif
79
79
80
80
start-prod : # # Start prod environment
81
81
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
82
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG =$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO =$(INNODB_USE_NATIVE_AIO ) docker-compose -f docker-compose-prod.yml $(PROJECT_NAME) up -d
82
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) INNODB_USE_NATIVE_AIO =$(INNODB_USE_NATIVE_AIO) SQL_MODE =$(SQL_MODE ) docker-compose -f docker-compose-prod.yml $(PROJECT_NAME) up -d
83
83
else
84
84
$(ERROR_ONLY_FOR_HOST)
85
85
endif
86
86
87
87
stop : # # Stop dev environment
88
88
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
89
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) docker-compose -f docker-compose.yml $(PROJECT_NAME) down
89
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) SQL_MODE=$(SQL_MODE) docker-compose -f docker-compose.yml $(PROJECT_NAME) down
90
90
else
91
91
$(ERROR_ONLY_FOR_HOST)
92
92
endif
93
93
94
94
stop-test : # # Stop test or continuous integration environment
95
95
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
96
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) docker-compose -f docker-compose-test-ci.yml $(PROJECT_NAME) down
96
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) SQL_MODE=$(SQL_MODE) docker-compose -f docker-compose-test-ci.yml $(PROJECT_NAME) down
97
97
else
98
98
$(ERROR_ONLY_FOR_HOST)
99
99
endif
100
100
101
101
stop-staging : # # Stop staging environment
102
102
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
103
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG =$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO =$(INNODB_USE_NATIVE_AIO ) docker-compose -f docker-compose-staging.yml $(PROJECT_NAME) down
103
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) INNODB_USE_NATIVE_AIO =$(INNODB_USE_NATIVE_AIO) SQL_MODE =$(SQL_MODE ) docker-compose -f docker-compose-staging.yml $(PROJECT_NAME) down
104
104
else
105
105
$(ERROR_ONLY_FOR_HOST)
106
106
endif
107
107
108
108
stop-prod : # # Stop prod environment
109
109
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
110
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG =$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO =$(INNODB_USE_NATIVE_AIO ) docker-compose -f docker-compose-prod.yml $(PROJECT_NAME) down
110
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) INNODB_USE_NATIVE_AIO =$(INNODB_USE_NATIVE_AIO) SQL_MODE =$(SQL_MODE ) docker-compose -f docker-compose-prod.yml $(PROJECT_NAME) down
111
111
else
112
112
$(ERROR_ONLY_FOR_HOST)
113
113
endif
@@ -125,35 +125,35 @@ env-staging: ## Creates cached config file .env.local.php (usually for staging e
125
125
126
126
ssh : # # Get bash inside symfony docker container
127
127
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
128
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) docker-compose $(PROJECT_NAME) exec $(OPTION_T) $(PHP_USER) symfony bash
128
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) SQL_MODE=$(SQL_MODE) docker-compose $(PROJECT_NAME) exec $(OPTION_T) $(PHP_USER) symfony bash
129
129
else
130
130
$(ERROR_ONLY_FOR_HOST)
131
131
endif
132
132
133
133
ssh-root : # # Get bash as root user inside symfony docker container
134
134
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
135
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) docker-compose $(PROJECT_NAME) exec $(OPTION_T) symfony bash
135
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) SQL_MODE=$(SQL_MODE) docker-compose $(PROJECT_NAME) exec $(OPTION_T) symfony bash
136
136
else
137
137
$(ERROR_ONLY_FOR_HOST)
138
138
endif
139
139
140
140
ssh-supervisord : # # Get bash inside supervisord docker container (cron jobs running there, etc...)
141
141
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
142
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) docker-compose $(PROJECT_NAME) exec supervisord bash
142
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) SQL_MODE=$(SQL_MODE) docker-compose $(PROJECT_NAME) exec supervisord bash
143
143
else
144
144
$(ERROR_ONLY_FOR_HOST)
145
145
endif
146
146
147
147
ssh-mysql : # # Get bash inside mysql docker container
148
148
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
149
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) docker-compose $(PROJECT_NAME) exec mysql bash
149
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) SQL_MODE=$(SQL_MODE) docker-compose $(PROJECT_NAME) exec mysql bash
150
150
else
151
151
$(ERROR_ONLY_FOR_HOST)
152
152
endif
153
153
154
154
ssh-rabbitmq : # # Get bash inside rabbitmq docker container
155
155
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
156
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) docker-compose $(PROJECT_NAME) exec rabbitmq /bin/sh
156
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) SQL_MODE=$(SQL_MODE) docker-compose $(PROJECT_NAME) exec rabbitmq /bin/sh
157
157
else
158
158
$(ERROR_ONLY_FOR_HOST)
159
159
endif
@@ -162,19 +162,19 @@ exec:
162
162
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 1)
163
163
@$$cmd
164
164
else
165
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) docker-compose $(PROJECT_NAME) exec $(OPTION_T) $(PHP_USER) symfony $$cmd
165
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) SQL_MODE=$(SQL_MODE) docker-compose $(PROJECT_NAME) exec $(OPTION_T) $(PHP_USER) symfony $$cmd
166
166
endif
167
167
168
168
exec-bash :
169
169
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 1)
170
170
@bash -c "$(cmd)"
171
171
else
172
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) docker-compose $(PROJECT_NAME) exec $(OPTION_T) $(PHP_USER) symfony bash -c "$(cmd)"
172
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) SQL_MODE=$(SQL_MODE) docker-compose $(PROJECT_NAME) exec $(OPTION_T) $(PHP_USER) symfony bash -c "$(cmd)"
173
173
endif
174
174
175
175
exec-by-root :
176
176
ifeq ($(INSIDE_DOCKER_CONTAINER ) , 0)
177
- @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) docker-compose $(PROJECT_NAME) exec $(OPTION_T) symfony $$cmd
177
+ @HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) WEB_PORT_HTTP=$(WEB_PORT_HTTP) WEB_PORT_SSL=$(WEB_PORT_SSL) XDEBUG_CONFIG=$(XDEBUG_CONFIG) INNODB_USE_NATIVE_AIO=$(INNODB_USE_NATIVE_AIO) SQL_MODE=$(SQL_MODE) docker-compose $(PROJECT_NAME) exec $(OPTION_T) symfony $$cmd
178
178
else
179
179
$(ERROR_ONLY_FOR_HOST)
180
180
endif
0 commit comments