-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·34 lines (25 loc) · 801 Bytes
/
Makefile
File metadata and controls
executable file
·34 lines (25 loc) · 801 Bytes
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
all: build start
build: build-wordpress
build-php:
docker build -t docker-php -f Docker/php/Dockerfile .
build-wordpress:
docker build -t docker-wordpress -f Docker/wordpress/Dockerfile .
rsync:
rsync -e "docker exec -i" --blocking-io -avz --delete --exclude=".git" . docker-wordpress:/var/www/html/wp-content/plugins/
start: stop
docker run \
--name wpmysql \
-p 3333:3306 \
--volume=/data/mysql:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=secret \
-d mysql:latest
docker run \
--name docker-wordpress \
--link wpmysql:mysql \
-p 8080:80 \
-d docker-wordpress
stop:
@docker rm -vf wpmysql docker-wordpress||:
exec:
docker exec -it docker-wordpress bash
.PHONY: clean run-mysql run-wp start stop rsync build all exec