-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (19 loc) · 597 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
DOCKER_REPO = laradock/phpmyadmin
.PHONY: all build build_nc run logs clean stop rm prune
all: build run logs
build:
docker build -t ${DOCKER_REPO}:testing .
build_nc:
docker build --no-cache=true -t ${DOCKER_REPO}:testing .
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"`