forked from slydetector/simply-nzedb
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
77 lines (59 loc) · 1.46 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
.PHONY: attach backup build help logs mysql restore shell start status stop test
COMPOSE="venv/bin/docker-compose"
help:
@echo "Welcome to simply-nzedb!"
@echo ""
@echo "Core commands:"
@echo ""
@echo " attach - attach to nzedb's tmux session"
@echo " backup - backup database. nzedb must be running"
@echo " help - print this help"
@echo " logs - print container logs"
@echo " mysql - mysql client"
@echo " mysqlroot - mysql client logged in as root"
@echo " mysqltuner - run mysql tuner"
@echo " mysqlupgrade - migrate older mysql database to newer version"
@echo " pull - pull the latest version"
@echo " restore - restore last database backup. nzedb must be running"
@echo " shell - shell into the nzedb container"
@echo " start - start nzedb (restarts if it is already running)"
@echo " status - shows running containers"
@echo " stop - stops nzedb"
@echo ""
@echo "Developer commands:"
@echo ""
@echo " build - build docker images locally instead of downloading from docker hub"
@echo " test - run acceptance tests"
@echo ""
attach:
@bin/attach_tmux
backup:
@bin/backup_db
build:
@bin/build_nzedb
logs:
@$(COMPOSE) logs
mysql:
@bin/mysql
mysqlroot:
@bin/mysqlroot
mysqltuner:
@bin/mysqltuner
mysqlupgrade:
@bin/mysqlupgrade
pull:
@$(COMPOSE) pull
restore:
@bin/restore_db
shell:
@bin/nzedb_shell
start:
@bin/start_nzedb
status:
@$(COMPOSE) ps
stop:
@bin/stop_nzedb
test:
@bin/acceptance_test
venv:
@bin/build_virtualenv