-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (27 loc) · 869 Bytes
/
Dockerfile
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
# Generate a docker for live streaming load testing
# by Jordi Cenzano
# VERSION 1.0.1
FROM ubuntu:14.04
MAINTAINER [email protected]
#Update
RUN apt-get update -y && \
apt-get clean -y
#Upgrade
RUN apt-get upgrade -y && \
apt-get clean -y
#Install ffmpeg
RUN apt-get install software-properties-common python-software-properties -y && \
add-apt-repository ppa:mc3man/trusty-media -y && \
apt-get update -y && \
apt-get install ffmpeg -y && \
apt-get clean -y
#Copy all allowed media content from media dir to container
COPY media/*.mp4 /data/test_material/
#Copy load test scripts
COPY scripts/rtmploadtest.sh scripts/rtmpclean.sh /data/scripts/
RUN chmod 755 /data/scripts/rtmploadtest.sh && \
chmod 755 /data/scripts/rtmpclean.sh
#Create logs dir for load test
RUN mkdir /data/log
#Start test
ENTRYPOINT /data/scripts/rtmploadtest.sh