-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (19 loc) · 1.01 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
IMAGE = smurf-streamer
TAG = latest
NAME = smurf-streamer
DOCKER_RUN_FLAGS = -it --rm
DOCKER_RUN_FLAGS += --name $(NAME) --net host -e DISPLAY=${DISPLAY}
DOCKER_RUN_FLAGS += -v /home/${user}:/home/${user} -v /data:/data -v ${PWD}/fw:/tmp/fw/
DOCKER_RUN_FLAGS += -v ${PWD}/scripts/:/usr/local/src/smurf-streamer/scripts/
DOCKER_RUN_FLAGS += -v ${PWD}/smurf.cfg:/usr/local/src/smurf-streamer/smurf.cfg
DOCKER_RUN_FLAGS += -v ${PWD}/mask.txt:/usr/local/src/smurf-streamer/mask.txt
DOCKER_RUN_FLAGS += -v ${PWD}/config.txt:/usr/local/src/smurf-streamer/config.txt
START_SCRIPT = /usr/local/src/smurf-streamer/scripts/control-server/start_server.sh
SMURF_FLAGS = -D -a 192.168.2.20 -e smurf_server -c eth-rssi-interleaved -d /tmp/fw/config/defaults.yml -f Int16 -b 524288
SMURF_FLAGS += --stream-config /usr/local/src/smurf-streamer/config.txt
build:
docker build -t $(IMAGE):$(TAG) .
run:
docker run $(DOCKER_RUN_FLAGS) $(IMAGE):$(TAG) $(START_SCRIPT) $(SMURF_FLAGS)
run_shell:
docker run $(DOCKER_RUN_FLAGS) $(IMAGE):$(TAG)