From 2d44bc5efcbc49672941e115664e66514eb48b26 Mon Sep 17 00:00:00 2001 From: amass <168062547@qq.com> Date: Mon, 23 Sep 2024 21:17:27 +0800 Subject: [PATCH] add ZLMediaKit. --- ubuntu2204.dockerfile | 16 ++++++++++++++-- ubuntu2404.dockerfile | 11 +++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/ubuntu2204.dockerfile b/ubuntu2204.dockerfile index f38d05f..024c077 100644 --- a/ubuntu2204.dockerfile +++ b/ubuntu2204.dockerfile @@ -40,12 +40,24 @@ RUN cd /root \ && cd /root/boost_1_86_0 \ && ./bootstrap.sh --prefix=/opt/Libraries/boost_1_86_0 \ && ./b2 install -q --prefix=/opt/Libraries/boost_1_86_0 threading=multi link=shared runtime-link=shared variant=release cxxstd=17 cxxflags=-fPIC cflags=-fPIC \ + && echo 'export LD_LIBRARY_PATH=/opt/Libraries/boost_1_86_0/lib:$LD_LIBRARY_PATH' >> /etc/profile \ && rm -fr /root/boost_1_86_0* -ENV LD_LIBRARY_PATH=/opt/Libraries/boost_1_86_0/lib:$LD_LIBRARY_PATH +RUN cd /root \ + && git clone --depth=1 --recursive https://gitea.amass.fun/amass/ZLMediaKit.git \ + && cd /root/ZLMediaKit \ + && apt install -y libsrtp2-dev libusrsctp-dev \ + && cmake -G Ninja -B build -S . -DENABLE_OPENSSL=true -DENABLE_WEBRTC=true -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/opt/Libraries/ZLMediaKit" \ + && cmake --build build --target all \ + && cmake --install build \ + && echo 'export LD_LIBRARY_PATH=/opt/Libraries/ZLMediaKit/lib:$LD_LIBRARY_PATH' >> /etc/profile \ + && rm -fr /root/ZLMediaKit + CMD ["service", "ssh", "start", "-D"] -ENV LANG C.UTF-8 +ENV LANG=C.UTF-8 +ENV LC_ALL=C.UTF-8 +ENV TERM=xterm-256color # docker build --progress=tty -f ubuntu2204.dockerfile -t frp-by1.wwvvww.cn:45288/ubuntu_dev:22.04 . # docker push frp-by1.wwvvww.cn:45288/ubuntu_dev:22.04 \ No newline at end of file diff --git a/ubuntu2404.dockerfile b/ubuntu2404.dockerfile index c627fed..34f7540 100644 --- a/ubuntu2404.dockerfile +++ b/ubuntu2404.dockerfile @@ -56,6 +56,17 @@ RUN cd /root \ && echo 'export LD_LIBRARY_PATH=/opt/Libraries/boost_1_86_0/lib:$LD_LIBRARY_PATH' >> /etc/zsh/zprofile \ && echo 'export LD_LIBRARY_PATH=/opt/Libraries/boost_1_86_0/lib:$LD_LIBRARY_PATH' >> /etc/profile +RUN cd /root \ + && git clone --depth=1 --recursive https://gitea.amass.fun/amass/ZLMediaKit.git \ + && cd /root/ZLMediaKit \ + && apt install -y libsrtp2-dev libusrsctp-dev \ + && cmake -G Ninja -B build -S . -DENABLE_OPENSSL=true -DENABLE_WEBRTC=true -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/opt/Libraries/ZLMediaKit" \ + && cmake --build build --target all \ + && cmake --install build \ + && echo 'export LD_LIBRARY_PATH=/opt/Libraries/ZLMediaKit/lib:$LD_LIBRARY_PATH' >> /etc/zsh/zprofile \ + && echo 'export LD_LIBRARY_PATH=/opt/Libraries/ZLMediaKit/lib:$LD_LIBRARY_PATH' >> /etc/profile \ + && rm -fr /root/ZLMediaKit + ENV LANG=C.UTF-8 ENV LC_ALL=C.UTF-8 ENV TERM=xterm-256color