You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
478 B
30 lines
478 B
MAKEFLAGS += --silent
|
|
|
|
ENV_FILE=devops/docker/.env
|
|
|
|
include $(ENV_FILE)
|
|
export $(shell sed 's/=.*//' $(ENV_FILE))
|
|
|
|
.PHONY: *
|
|
|
|
DOCKER_COMPOSE=docker-compose
|
|
|
|
# Installation
|
|
install: stop
|
|
./devops/scripts/install.sh
|
|
init: start
|
|
./devops/scripts/init.sh
|
|
clean:
|
|
$(DOCKER_COMPOSE) down --rmi local -v
|
|
|
|
# Serving
|
|
start: install
|
|
$(DOCKER_COMPOSE) up -d
|
|
stop:
|
|
$(DOCKER_COMPOSE) down
|
|
|
|
# Entering into containers
|
|
enter-php:
|
|
$(DOCKER_COMPOSE) exec php bash
|
|
|
|
.DEFAULT_GOAL := install
|