-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·40 lines (32 loc) · 920 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
35
36
37
38
39
40
# docker image version
VERSION := 9.9.5-20170129
# docker image name
IMAGE_NAME := sameersbn/bind
# docker container name
NAME := bind-webmin
# docker container arguments.
VOLUMES := -v /var/bind:/data
PORTS := -p 53:53/tcp -p 53:53/udp -p 10000:10000/tcp
include docker_make_utils/Makefile.help
include docker_make_utils/Makefile.functions
include docker_make_utils/Makefile.container
define DOCKER_CMD :=
docker run \
--name $(NAME) \
$(VOLUMES) \
$(PORTS) \
-d \
$(IMAGE)
endef
run: _run ##@default Starts the container.
.PHONY: run
rerun: _rerun ##@targets Stops and starts the container.
.PHONY: rerun
rm: _rm ##@targets Stops and removes the container.
.PHONY: rm
clean: _clean ##@targets Stops and removes the container and removes all created files.
.PHONY: clean
test: _test ##@targets Tests if the container is running.
.PHONY: test
restart: _restart ##@targets Restarts the container.
.PHONY: restart