-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
60 lines (49 loc) · 1.81 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
default: help
help: ## Display this message
@grep -E '(^[a-zA-Z0-9_.-]+:.*?##.*$$)|(^##)' Makefile | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
version = $(shell git describe --tags --long)
artifact: ## Build binary artifact
@mkdir /tmp/rf-liquidsoap-$(version)
@cp -r scripts/ /tmp/rf-liquidsoap-$(version)/
@tar --exclude-vcs --owner=0 --group=0 -C /tmp -cvzf rf-liquidsoap-$(version).tar.gz rf-liquidsoap-$(version)/
@rm -rf /tmp/rf-liquidsoap-$(version)/
@md5sum rf-liquidsoap-$(version).tar.gz
test: ## Run test on the liquidsoap configuration
@docker compose up \
liquidsoap-test-transcoder-stereo \
liquidsoap-test-streamer-stereo \
liquidsoap-test-transcoder-surround \
liquidsoap-test-streamer-surround
reload: ## Update containers if needed and restart all liquidsoaps
@docker compose up -d
@docker compose restart \
liquidsoap-test-transcoder-stereo \
liquidsoap-test-streamer-stereo \
liquidsoap-test-transcoder-surround \
liquidsoap-test-streamer-surround
@docker compose restart \
liquidsoap-myradio \
liquidsoap-myradiosurround \
source-mystreamersurround \
@docker compose ps
@docker compose logs -f
reload-streamers: ## Update containers if needed and restart source-mystreamersurround
@docker compose up -d
@docker compose restart \
source-mystreamersurround
@docker compose ps
@docker compose logs -f
start: ## Start everything
@docker compose up -d
@docker compose ps
@docker compose logs -f
stop: ## Stop all containers
@docker compose down
status: ## Show status of docker containers
@docker compose ps -a
clean: ## Stop and remove all containers, networks and volumes
@docker compose down -v
logs: ## Show logs
@docker compose logs -f
info: ## Show useful default URLs and service ports
@cat .res/info.txt