2019-02-13 18:21:05 +03:00
|
|
|
.PHONY: help_redirect
|
2017-06-15 11:41:40 +03:00
|
|
|
help_redirect:
|
|
|
|
@$(MAKE) help --no-print-directory
|
|
|
|
|
2019-02-13 18:21:05 +03:00
|
|
|
.PHONY: help_submake
|
2017-06-15 11:41:40 +03:00
|
|
|
help_submake:
|
2019-08-29 14:10:25 +03:00
|
|
|
@echo "Host only commands:"
|
2017-06-15 11:41:40 +03:00
|
|
|
@echo " shell to connect to a running addons-server docker shell"
|
2019-08-29 14:10:25 +03:00
|
|
|
@echo " update_docker to update all the docker images"
|
|
|
|
@echo "All other commands will be passed through to the docker 'web' container make:"
|
|
|
|
@make -f Makefile-docker help_submake
|
2017-06-15 11:41:40 +03:00
|
|
|
|
2019-02-13 18:21:05 +03:00
|
|
|
.PHONY: update_docker
|
2017-06-15 11:41:40 +03:00
|
|
|
update_docker:
|
|
|
|
docker-compose exec worker make update_deps
|
|
|
|
docker-compose exec web make update
|
2018-02-19 19:07:34 +03:00
|
|
|
docker-compose restart web
|
|
|
|
docker-compose restart worker
|
2017-06-15 11:41:40 +03:00
|
|
|
|
2019-02-13 18:21:05 +03:00
|
|
|
.PHONY: shell
|
2017-06-15 11:41:40 +03:00
|
|
|
shell:
|
|
|
|
docker-compose exec web bash
|
|
|
|
|
2019-08-29 14:40:25 +03:00
|
|
|
%: ## This directs any other recipe (command) to the web container's make.
|
2019-08-29 14:10:25 +03:00
|
|
|
docker-compose exec web make $(MAKECMDGOALS) ARGS=$(ARGS)
|
2019-08-05 12:44:29 +03:00
|
|
|
|
2019-08-29 14:10:25 +03:00
|
|
|
# You probably want to put new commands in Makefile-docker, unless they operate
|
|
|
|
# on multiple containers or are host-os specific.
|