-
Notifications
You must be signed in to change notification settings - Fork 91
/
Makefile
93 lines (67 loc) · 1.85 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
ARGS = $(filter-out $@,$(MAKECMDGOALS))
MAKEFLAGS += --silent
list:
sh -c "echo; $(MAKE) -p no_targets__ | awk -F':' '/^[a-zA-Z0-9][^\$$#\/\\t=]*:([^=]|$$)/ {split(\$$1,A,/ /);for(i in A)print A[i]}' | grep -v '__\$$' | grep -v 'Makefile'| sort"
#############################
# Create new project
#############################
create:
bash bin/create-project.sh $(ARGS)
#############################
# Docker machine states
#############################
up:
docker-compose up -d
start:
docker-compose start
stop:
docker-compose stop
state:
docker-compose ps
rebuild:
docker-compose stop
docker-compose pull
docker-compose rm --force app
docker-compose build --no-cache --pull
docker-compose up -d --force-recreate
#############################
# MySQL
#############################
mysql-backup:
bash ./bin/backup.sh mysql
mysql-restore:
bash ./bin/restore.sh mysql
#############################
# Solr
#############################
solr-backup:
bash ./bin/backup.sh solr
solr-restore:
bash ./bin/restore.sh solr
#############################
# General
#############################
backup: mysql-backup solr-backup
restore: mysql-restore solr-restore
build:
bash bin/build.sh
clean:
test -d app/typo3temp && { rm -rf app/typo3temp/*; }
bash: shell
shell:
docker-compose exec --user application app /bin/bash
root:
docker-compose exec --user root app /bin/bash
#############################
# TYPO3
#############################
cli:
docker-compose run --rm --user application app cli $(ARGS)
scheduler:
# TODO: remove the workaround "; (exit $?)" when https://github.com/docker/compose/issues/3379 has been fixed
docker-compose exec --user application app /bin/bash -c '"$$WEB_DOCUMENT_ROOT"typo3/cli_dispatch.phpsh scheduler $(ARGS); (exit $$?)'
#############################
# Argument fix workaround
#############################
%:
@: