-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile
55 lines (48 loc) · 1.08 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
TYPE=ubuntu
foo:
@echo "bar"
install:
@echo "Installing tools for $$OSTYPE"
@if [[ $$OSTYPE == "linux"* ]]; then \
echo "Ubuntu"; \
sudo apt-get update; \
sudo apt-get upgrade; \
sudo apt-get install sox ffmpeg rtptools tclsh pkg-config cmake libssl-dev build-essential; \
cd srt; \
./configure; \
make; \
elif [[ $$OSTYPE == "darwin"* ]]; then \
echo "MacOS"; \
brew update; \/us
brew install srt ffmpeg rtptools sox; \
else \
echo "Platform not implemented"; \
fi;
docker-build:
docker build \
-f Dockerfile.$(TYPE) . -t axia_streamer
docker-push:
docker buildx build -f Dockerfile.$(TYPE) . -t docker.io/kmahelona/axia-to-icecast:$(TYPE) --platform linux/amd64,linux/arm64 --push
docker-interact:
docker run \
--network="host" \
--cap-add=NET_ADMIN \
--cap-add=NET_RAW \
-it \
--env AXIA_PORT \
--env ICE_USER \
--env ICE_PASS \
--env ICE_MNT \
--env ICE_URL \
--env ICE_PORT \
axia_streamer \
bash
docker-run:
docker run \
--env AXIA_PORT \
--env ICE_USER \
--env ICE_PASS \
--env ICE_MNT \
--env ICE_URL \
--env ICE_PORT \
axia_streamer