-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (37 loc) · 1.33 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
41
42
43
44
45
default: rip
help:
@echo "Popular Make Targets:"
@echo " image - build docker image"
@echo " rip - run ripper"
@echo " bash - run shell in built image"
.PHONY: clean
clean:
@rm -f .dockerimage
docker image rm --force superperegrine:latest
docker image prune -f
.dockerimage: Dockerfile
docker build --rm --tag superperegrine --build-arg MAKEMKV_VERSION=1.15.3 .
docker image prune -f
@touch .dockerimage
prodimage: clean Dockerfile
docker build --rm --pull --squash --tag superperegrine --build-arg MAKEMKV_VERSION=1.15.3 .
docker image prune -f
@touch .dockerimage
image: Dockerfile .dockerimage
rip: .dockerimage
docker run --rm --privileged --interactive --tty \
--device /dev/sr* \
--env MIN_LENGTH=3600 \
--env UID=$(shell id -u) \
--env GID=$(shell id -g) \
--mount type=bind,source="$(shell pwd)"/presets,target=/presets \
--mount type=bind,source="$(shell pwd)"/inbound,target=/inbound \
--mount type=bind,source="$(shell pwd)"/outbound,target=/outbound \
superperegrine:latest
bash:
docker run --rm --privileged --interactive --tty \
--device /dev/sr* \
--mount type=bind,source="$(shell pwd)"/presets,target=/presets \
--mount type=bind,source="$(shell pwd)"/inbound,target=/inbound \
--mount type=bind,source="$(shell pwd)"/outbound,target=/outbound \
superperegrine:latest bash