-
Notifications
You must be signed in to change notification settings - Fork 455
/
Makefile
40 lines (26 loc) · 1.27 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
DOCKER_REPO = phpmyadmin
.PHONY: all build 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 ./testing/docker-compose/docker-compose.testing-default.yml up -d
testing-%:
docker compose -p "phpmyadmin_$@" -f ./testing/docker-compose/[email protected] up --build --abort-on-container-exit --exit-code-from=sut
docker compose -p "phpmyadmin_$@" -f ./testing/docker-compose/[email protected] down
run-tests: testing-default testing-one-host testing-one-socket-host testing-config-mount-dir testing-fs-import-export testing-different-apache-port run-as-www-data
logs:
docker compose -f ./testing/docker-compose/docker-compose.testing-default.yml logs
clean: stop rm prune
stop:
docker compose -f ./testing/docker-compose/docker-compose.testing-default.yml stop
rm:
docker compose -f ./testing/docker-compose/docker-compose.testing-default.yml rm
prune:
docker rm `docker ps -q -a --filter status=exited`
docker rmi `docker images -q --filter "dangling=true"`