13
13
dev.nfs.provision.services dev.nfs.setup dev.nfs.up dev.nfs.up.all \
14
14
dev.nfs.up.watchers devpi-password dev.provision \
15
15
dev.provision.analytics_pipeline dev.provision.services \
16
- dev.provision.xqueue dev.provision.xqueue.run dev.pull dev.repo.reset \
17
- dev.reset dev.status dev. sync.daemon.start dev.sync.provision \
18
- dev.sync.requirements dev.sync. up dev.up dev.up.all \
19
- dev.up.analytics_pipeline dev.up. watchers dev.up.with-programs \
20
- dev.up.xqueue discovery-shell down e2e -shell e2e-tests ecommerce-shell \
21
- feature-toggle-state forum -restart-devserver healthchecks help lms-restart \
22
- lms-shell lms-static lms-update-db lms-watcher- shell logs mongo -shell \
23
- mysql-shell mysql-shell-edxapp provision pull pull.analytics_pipeline \
24
- pull.xqueue registrar-shell requirements restore selfcheck static \
25
- stats stop stop.all stop. analytics_pipeline stop.watchers stop.xqueue \
26
- studio-restart studio- shell studio-static studio-update-db \
27
- studio-watcher-shell update-db upgrade upgrade validate \
28
- validate-lms-volume vnc-passwords xqueue_consumer-logs \
29
- xqueue_consumer-restart xqueue_consumer-shell xqueue-logs \
30
- xqueue-restart xqueue-shell
16
+ dev.provision.xqueue dev.pull dev.repo.reset dev.reset dev.status \
17
+ dev.sync.daemon.start dev.sync.provision dev.sync.requirements \
18
+ dev.sync.up dev.up dev.up.all dev.up.analytics_pipeline \
19
+ dev.up.watchers dev.up.with-programs discovery-shell down e2e-shell \
20
+ e2e-tests ecommerce -shell feature-toggle-state forum-restart-devserver \
21
+ healthchecks help lms -restart lms-shell lms-static lms-update-db \
22
+ lms-watcher- shell logs mongo-shell mysql- shell mysql -shell-edxapp \
23
+ provision pull pull.analytics_pipeline pull.xqueue registrar-shell \
24
+ requirements restore selfcheck static stats stop stop.all \
25
+ stop. analytics_pipeline stop.watchers stop.xqueue studio-restart \
26
+ studio-shell studio-static studio-update-db studio-watcher-shell \
27
+ update-db upgrade upgrade validate validate-lms-volume vnc-passwords \
28
+ xqueue_consumer-restart xqueue_consumer-shell xqueue-restart \
29
+ xqueue-shell
30
+
31
31
32
32
# Docker Compose files that define services.
33
33
MAIN_COMPOSE_FILE =-f docker-compose.yml
@@ -48,16 +48,15 @@ SUPPORTING_COMPOSE_FILES_FOR_SYNC=-f docker-compose-sync.yml
48
48
STANDARD_COMPOSE_SUITE =$(MAIN_COMPOSE_FILE ) $(SUPPORTING_COMPOSE_FILES )
49
49
STANDARD_COMPOSE_SUITE_FOR_NFS =$(MAIN_COMPOSE_FILE ) $(SUPPORTING_COMPOSE_FILES_FOR_NFS )
50
50
STANDARD_COMPOSE_SUITE_FOR_SYNC =$(MAIN_COMPOSE_FILE ) $(SUPPORTING_COMPOSE_FILES_FOR_SYNC )
51
- XQUEUE_COMPOSE_SUITE =$(MAIN_COMPOSE_FILE ) $(XQUEUE_COMPOSE_FILE ) $(SUPPORTING_COMPOSE_FILES )
52
51
ANALYTICS_COMPOSE_SUITE =$(STANDARD_COMPOSE_SUITE ) $(ANALYTICS_COMPOSE_FILE )
53
52
54
53
# All Docker Compose YAML files that contain service definitions.
55
54
# Useful for Makefile targets like `dev.pull` and `down`
56
55
ALL_SERVICE_COMPOSE_FILES =\
57
56
$(MAIN_COMPOSE_FILE ) \
58
- $(XQUEUE_COMPOSE_FILE ) \
59
57
$(WATCHERS_COMPOSE_FILE ) \
60
58
$(ANALYTICS_COMPOSE_FILE ) \
59
+ $(XQUEUE_COMPOSE_FILE ) \
61
60
$(MARKETING_COMPOSE_FILE )
62
61
63
62
# All Docker Compose files (except those for NFS and Docker Sync).
@@ -121,10 +120,7 @@ dev.provision: | check-memory dev.clone.ssh dev.provision.services stop ## Provi
121
120
dev.cache-programs : # # Copy programs from Discovery to Memcached for use in LMS.
122
121
$(WINPTY ) bash ./programs/provision.sh cache
123
122
124
- dev.provision.xqueue : | check-memory dev.provision.xqueue.run stop stop.xqueue # Provision XQueue; run after other services are provisioned
125
-
126
- dev.provision.xqueue.run :
127
- DOCKER_COMPOSE_FILES=" $( MAIN_COMPOSE_FILE) $( XQUEUE_COMPOSE_FILE) " $(WINPTY ) bash ./provision-xqueue.sh
123
+ dev.provision.xqueue : dev.provision.services.xqueue
128
124
129
125
dev.reset : | down dev.repo.reset pull dev.up static update-db # # Attempts to reset the local devstack to the master working state
130
126
@@ -183,9 +179,6 @@ dev.nfs.provision.services: ## Provision all services with local mounted directo
183
179
dev.nfs.provision.services.% : # # Provision specified services with local mounted directories, separated by plus signs
184
180
DOCKER_COMPOSE_FILES=" $( STANDARD_COMPOSE_SUITE_FOR_NFS) " ./provision.sh $*
185
181
186
- dev.up.xqueue : | check-memory # # Bring up xqueue, assumes you already have lms running
187
- bash -c ' docker-compose $(XQUEUE_COMPOSE_SUITE) up -d'
188
-
189
182
dev.up.all : | dev.up dev.up.watchers # # Bring up all services with host volumes, including watchers
190
183
191
184
dev.sync.daemon.start : # # Start the docker-sycn daemon
@@ -214,8 +207,8 @@ stop.watchers: ## Stop asset watchers
214
207
215
208
stop.all : | stop.analytics_pipeline stop stop.watchers # # Stop all containers, including asset watchers
216
209
217
- stop.xqueue : # # Stop the XQueue service container
218
- docker-compose $(XQUEUE_COMPOSE_FILE ) stop
210
+ stop.xqueue : # # Stop the XQueue and XQueue-Consumer containers
211
+ docker-compose $(ALL_SERVICE_COMPOSE_FILES ) stop xqueue xqueue_consumer
219
212
220
213
down : # # Remove all service containers and networks
221
214
(test -d .docker-sync && docker-sync clean) || true # # Ignore failure here
@@ -230,12 +223,6 @@ logs: ## View logs from containers running in detached mode
230
223
% -logs : # # View the logs of the specified service container
231
224
docker-compose $(ALL_SERVICE_COMPOSE_FILES ) logs -f --tail=500 $*
232
225
233
- xqueue-logs : # # View logs from containers running in detached mode
234
- docker-compose $(XQUEUE_COMPOSE_FILE ) logs -f xqueue
235
-
236
- xqueue_consumer-logs : # # View logs from containers running in detached mode
237
- docker-compose $(XQUEUE_COMPOSE_FILE ) logs -f xqueue_consumer
238
-
239
226
RED ="\033[0;31m"
240
227
YELLOW ="\033[0;33m"
241
228
GREY ="\033[1;90m"
@@ -271,8 +258,7 @@ pull: dev.pull
271
258
@echo " ****************************************************************"
272
259
@echo -n $(NO_COLOR )
273
260
274
- pull.xqueue : # # Update XQueue Docker images
275
- docker-compose $(XQUEUE_COMPOSE_FILE ) pull
261
+ pull.xqueue : dev.pull-without-deps.xqueue+xqueue_consumer
276
262
277
263
validate : # # Validate the devstack configuration
278
264
docker-compose config
0 commit comments