summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: bb32447220e184fc053d3af8201aa849cf332678 (plain)
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
clean:
	for container in $$(docker ps -q); do \
		docker kill --signal="SIGKILL" $$container ; \
	done
	for container in $$(docker ps -aq); do \
		docker rm $$container ; \
	done
	for image in $$(docker images -q --filter dangling=true); do \
		docker rmi $$image ; \
	done

pull:
	for image in $$(find . -mindepth 2 -maxdepth 2 -type f -name "Dockerfile" -exec dirname {} \; | sort); do \
		docker pull kolab/$$(basename $$image) ; \
	done

push:
	for image in $$(find . -mindepth 2 -maxdepth 2 -type f -name "Dockerfile" -exec dirname {} \; | sort); do \
		docker push kolab/$$(basename $$image) ; \
	done

all:
	for image in $$(find . -mindepth 2 -maxdepth 2 -type f -name "Dockerfile" -exec dirname {} \; | sort); do \
		docker build -t kolab/$$(basename $$image) $$image ; \
	done