forked from phpmyadmin/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (22 loc) · 779 Bytes
/
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
DOCKER_REPO = phpmyadmin/phpmyadmin
.PHONY: all build build_nc run logs clean stop rm prune
all: build run logs
build: build-apache build-fpm build-fpm-alpine
build-apache:
docker build ${DOCKER_FLAGS} -t ${DOCKER_REPO}:testing apache
build-fpm:
docker build ${DOCKER_FLAGS} -t ${DOCKER_REPO}:testing-fpm fpm
build-fpm-alpine:
docker build ${DOCKER_FLAGS} -t ${DOCKER_REPO}:testing-fpm-alpine fpm-alpine
run:
docker-compose -f docker-compose.testing.yml up -d
logs:
docker-compose -f docker-compose.testing.yml logs
clean: stop rm prune
stop:
docker-compose -f docker-compose.testing.yml stop
rm:
docker-compose -f docker-compose.testing.yml rm
prune:
docker rm `docker ps -q -a --filter status=exited`
docker rmi `docker images -q --filter "dangling=true"`