-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
47 lines (38 loc) · 1 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
#!/make
-include .env
export
build:
# --no-cache
docker build -t ${BECAPE_IMAGE_NAME}/mysql:5.7 .
docker push ${BECAPE_IMAGE_NAME}/mysql:5.7
bash:
docker run --rm -it\
-v ${PWD}/app:/var/www/app\
${BECAPE_IMAGE_NAME}/mysql:5.7 bash
configure:
docker run --rm -it\
-v ${PWD}/app:/var/www/app\
${BECAPE_IMAGE_NAME}/mysql:5.7 configure
backup:
docker run --rm -it\
-v ${PWD}/app:/var/www/app\
${BECAPE_IMAGE_NAME}/mysql:5.7 backup
restore:
docker run --rm -it\
-v ${PWD}/app:/var/www/app\
${BECAPE_IMAGE_NAME}/mysql:5.7 restore ${BECAPE}
upload:
docker run --rm -it\
-v ${PWD}/app:/var/www/app\
${BECAPE_IMAGE_NAME}/mysql:5.7 upload ${BECAPE}
check:
docker run --rm -it\
-v ${PWD}/app:/var/www/app\
${BECAPE_IMAGE_NAME}/mysql:5.7 check
keys:
openssl req -x509 -sha256 -nodes -newkey rsa:4096\
-keyout app/backup.private.pem\
-out app/backup.public.pem
zip:
git archive --format zip --output becape.zip master
scp -P 10222 becape.zip [email protected]:/home/dev/becape/becape.zip