-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
22 lines (17 loc) · 901 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: help
.DEFAULT_GOAL := help
PHP_VERSION_CURRENT=$(shell php -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
# ---------------------------------------------------------------------------------------------
docker-start: ## starts the docker container
docker-compose up -d
# ---------------------------------------------------------------------------------------------
docker-exec: ## connects to docker container
docker exec -it dockware-demoshop_shop bash
# ---------------------------------------------------------------------------------------------
docker-stop: ## stops the docker container
docker stop dockware-demoshop_shop
docker stop dockware-demoshop_redis
docker stop dockware-demoshop_db
docker stop dockware-demoshop_elasticsearch