2022-08-13 02:27:14 +00:00
|
|
|
FROM ossrs/srs:dev-gcc7-cache
|
2021-08-14 13:24:36 +00:00
|
|
|
RUN yum install -y gcc make gcc-c++ patch unzip perl git
|
|
|
|
|
|
|
|
# Build and install SRS.
|
2021-08-15 11:01:55 +00:00
|
|
|
COPY . /srs
|
|
|
|
WORKDIR /srs/trunk
|
2022-03-17 08:56:52 +00:00
|
|
|
|
|
|
|
# Note that we must enable the gcc7 or link failed.
|
2022-12-03 11:00:22 +00:00
|
|
|
RUN scl enable devtoolset-7 -- ./configure --srt=on --gb28181=on --apm=on --h265=on --utest=on
|
2022-11-18 14:02:24 +00:00
|
|
|
RUN scl enable devtoolset-7 -- make utest
|
2022-03-17 08:56:52 +00:00
|
|
|
|
|
|
|
# Build benchmark tool.
|
2021-08-14 13:24:36 +00:00
|
|
|
RUN cd 3rdparty/srs-bench && make
|
|
|
|
|
|
|
|
# Run utest
|
|
|
|
RUN ./objs/srs_utest
|