add ZLMediaKit.
All checks were successful
Deploy Docker Images / Docusaurus build and Server deploy (push) Successful in 13m38s

This commit is contained in:
amass 2024-09-23 21:17:27 +08:00
parent a15a212a33
commit 2d44bc5efc
2 changed files with 25 additions and 2 deletions

View File

@ -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

View File

@ -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