-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
22 lines (17 loc) · 892 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: clean
clean:
mvn clean
all: clean java docker
java:
mvn install
docker:
docker build -t streamkit/ffmpeg-vod-transcoder .
.PHONY: docker-ssh
docker-ssh:
mkdir -p ~/tmp/docker/ffmpeg-vod-transcoder; cp ./target/transcoding-job*.jar ~/tmp/docker/ffmpeg-vod-transcoder/vod-transcoder.jar
docker run --rm=true --volume=/tmp/streamkit:/tmp/streamkit --volume=${HOME}/tmp/docker/ffmpeg-vod-transcoder/:/usr/local/vod-transcoder -ti --entrypoint='bash' streamkit/ffmpeg-vod-transcoder:latest
.PHONY: docker-run
docker-run:
mkdir -p ~/tmp/streamkit
mkdir -p ~/tmp/docker/ffmpeg-vod-transcoder; cp ./target/transcoding-job*.jar ~/tmp/docker/ffmpeg-vod-transcoder/vod-transcoder.jar
docker run --rm=true --volume=${HOME}/tmp/streamkit:/tmp/streamkit --volume=${HOME}/tmp/docker/ffmpeg-vod-transcoder/:/usr/local/vod-transcoder streamkit/ffmpeg-vod-transcoder:latest ${DOCKER_ARGS}