Dockerfile.test 428 B

123456789101112131415161718
  1. FROM ossrs/srs:dev-gcc7
  2. # Install depends tools.
  3. RUN yum install -y gcc make gcc-c++ patch unzip perl git
  4. # Build and install SRS.
  5. COPY . /srs
  6. WORKDIR /srs/trunk
  7. # Note that we must enable the gcc7 or link failed.
  8. RUN scl enable devtoolset-7 -- ./configure --srt=on --utest=on --jobs=2
  9. RUN scl enable devtoolset-7 -- make -j2 utest
  10. # Build benchmark tool.
  11. RUN cd 3rdparty/srs-bench && make
  12. # Run utest
  13. RUN ./objs/srs_utest