Dockerfile.cov 345 B

123456789101112
  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 --gcov=on --jobs=2
  9. RUN scl enable devtoolset-7 -- make -j2 utest