sed

FROM centos:7
MAINTAINER EX-ZHAOJIKUN001
RUN yum install -y wget
RUN yum -y install patch make gcc g++
RUN yum -y install gcc gcc-c++ perl ld-linux.so.2 libstdc++.so.6
#RUN yum -y perl
RUN wget http://dss.macosforge.org/downloads/DarwinStreamingSrvr6.0.3-Source.tar
RUN tar xvf DarwinStreamingSrvr6.0.3-Source.tar
ENV username z
ENV password z
ENV password1 z
###RUN mv DarwinStreamingSrvr6.0.3-Source DarwinStreamingSrvr6.0.3-Source.orig
COPY pip.conf /etc/pip.conf
COPY dss-6.0.3.patch .
COPY dss-hh-20080728-1.patch .
##RUN mv DarwinStreamingSrvr6.0.3-Source DarwinStreamingSrvr6.0.3-Source.orig
RUN patch -p0 < dss-6.0.3.patch
##RUN mv DarwinStreamingSrvr6.0.3-Source.orig DarwinStreamingSrvr6.0.3-Source
RUN patch -p0 < dss-hh-20080728-1.patch
#RUN cd DarwinStreamingSrvr6.0.3-Source
WORKDIR /DarwinStreamingSrvr6.0.3-Source/APICommonCode
#RUN cd /APICommonCode
RUN sed -i ‘1069s/(“127.0.0.")/("...*”)/’ QTSSModuleUtils.cpp
WORKDIR /DarwinStreamingSrvr6.0.3-Source
RUN ./Buildit
RUN ./buildtarball
RUN tar xzvf DarwinStreamingSrvr-Linux.tar.gz
RUN cd DarwinStreamingSrvr-Linux
#RUN sed -i ‘8 a if [ KaTeX parse error: Expected 'EOF', got '#' at position 39: … then' Install #̲RUN sed -i '9 a…PATH:/usr/local/ffmpeg/bin’ /etc/profile
#RUN sed -i ‘11 a export PATH’ /etc/profile
#RUN source /etc/profile
#ENTRYPOINT /usr/local/sbin/DarwinStreamingServer && echo success && ffmpeg -re -i cut.mp4 -rtsp_transport tcp -f rtsp rtsp://172.17.0.2:554/test.sdp && ffmpeg -i ‘rtsp://192.168.56.102:9999/test.sdp’ -an -c:v rawvideo -s 352x288 -f rawvideo out002.mp4 && while true; do sleep 1;done
#ENTRYPOINT /usr/local/sbin/DarwinStreamingServer && echo success && while true; do sleep 1;done
ENTRYPOINT /usr/local/sbin/DarwinStreamingServer && bash
#COPY DarwinStreamingSrvr-Linux .
#RUN cd DarwinStreamingSrvr-Linux
#ENTRYPOINT /usr/local/sbin/DarwinStreamingServer
#CMD /usr/local/sbin/streamingadminserver.pl

FROM centos:7
MAINTAINER EX-ZHAOJIKUN001
RUN yum install -y wget
RUN yum -y install patch make gcc g++
RUN yum -y install gcc gcc-c++ perl ld-linux.so.2 libstdc++.so.6
#RUN yum -y perl
RUN wget  http://dss.macosforge.org/downloads/DarwinStreamingSrvr6.0.3-Source.tar
RUN tar xvf DarwinStreamingSrvr6.0.3-Source.tar
ENV username z
ENV password z
ENV password1 z
###RUN mv DarwinStreamingSrvr6.0.3-Source DarwinStreamingSrvr6.0.3-Source.orig
COPY pip.conf /etc/pip.conf
COPY dss-6.0.3.patch .
COPY dss-hh-20080728-1.patch .
##RUN mv DarwinStreamingSrvr6.0.3-Source DarwinStreamingSrvr6.0.3-Source.orig
RUN patch -p0 < dss-6.0.3.patch
##RUN mv DarwinStreamingSrvr6.0.3-Source.orig DarwinStreamingSrvr6.0.3-Source
RUN patch -p0 < dss-hh-20080728-1.patch
#RUN cd DarwinStreamingSrvr6.0.3-Source
WORKDIR /DarwinStreamingSrvr6.0.3-Source/APICommonCode
#RUN cd /APICommonCode
RUN sed -i '1069s/("127.0.0.*")/("*.*.*.*")/' QTSSModuleUtils.cpp
WORKDIR /DarwinStreamingSrvr6.0.3-Source
RUN ./Buildit
RUN ./buildtarball
RUN tar xzvf DarwinStreamingSrvr-Linux.tar.gz
RUN cd  DarwinStreamingSrvr-Linux
#RUN sed -i '8 a if [ $INSTALL_OS = "Linux" ]; then' Install
#RUN sed -i '9 a /usr/sbin/groupadd qtss > /dev/null 2>&1' Install
#RUN sed -i '10 a /usr/sbin/useradd -m qtss > /dev/null 2>&1' Install
#RUN sed -i '11 a else' Install
#RUN sed -i '12 a /usr/sbin/groupadd qtss > /dev/null 2>&1' Install
#RUN sed -i '13 a /usr/sbin/useradd qtss > /dev/null 2>&1' Install
#RUN sed -i '14 a fi' Install
#RUN sed -i '202s/-M/-m/' Install
RUN sed -i '190,+10s/-M/-m/' Install
RUN ["./Install"]
#RUN wget https://johnvansickle.com/ffmpeg/release-source/ffmpeg-4.1.tar.xz
#RUN tar xvJf ffmpeg-4.1.tar.xz
#RUN cd ffmpeg-4.1
#RUN ./configure --enable-shared --prefix=/usr/local/ffmpeg --disable-yasm
#RUN make
#RUN make install
#RUN sed -i '1 a /usr/local/ffmpeg/lib/' /etc/ld.so.conf
#RUN ldconfig
#RUN sed -i '10 a PATH=$PATH:/usr/local/ffmpeg/bin' /etc/profile
#RUN sed -i '11 a export PATH' /etc/profile
#RUN source /etc/profile
#ENTRYPOINT  /usr/local/sbin/DarwinStreamingServer  &&  echo success && ffmpeg -re  -i cut.mp4 -rtsp_transport tcp -f rtsp  rtsp://172.17.0.2:554/test.sdp && ffmpeg -i 'rtsp://192.168.56.102:9999/test.sdp' -an -c:v rawvideo -s 352x288 -f rawvideo  out002.mp4  && while true; do sleep 1;done
#ENTRYPOINT  /usr/local/sbin/DarwinStreamingServer &&  echo success && while true; do sleep 1;done
ENTRYPOINT /usr/local/sbin/DarwinStreamingServer && bash
#COPY DarwinStreamingSrvr-Linux .
#RUN cd  DarwinStreamingSrvr-Linux
#ENTRYPOINT /usr/local/sbin/DarwinStreamingServer
#CMD /usr/local/sbin/streamingadminserver.pl```

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值