-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
37 lines (30 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
include docker.mk
DRUPAL_VER ?= 8
PHP_VER ?= 8.2
BRANCH = $(shell git rev-parse --abbrev-ref HEAD)
## test : Run automated tests.
.PHONY: test
test:
cd ./tests/$(DRUPAL_VER) && PHP_VER=$(PHP_VER) ./run.sh
## install : Install PECE.
.PHONY: install
install:
@echo "Install $(PROJECT_NAME)..."
docker-compose -f docker-compose.commands.yml up git-clone
make up
@echo "Finish Install $(PROJECT_NAME)"
## update : Update PECE with latest available release.
.PHONY: update
update:
@echo "Update $(PROJECT_NAME)..."
docker-compose -f docker-compose.commands.yml up -d update-project
docker-compose -f docker-compose.commands.yml exec update-project git pull origin master
docker-compose -f docker-compose.commands.yml exec update-project drush updb -y
docker-compose -f docker-compose.commands.yml stop update-project
@echo "Finish Install $(PROJECT_NAME)"
## no-ssl-up : Start up containers without ssl.
.PHONY: no-ssl-up
no-ssl-up:
@echo "Starting up containers for $(PROJECT_NAME) without ssl"
docker-compose pull
docker-compose up -d --remove-orphans