use sergei's rtmp module
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Torma Kristóf 2020-09-19 22:05:25 +02:00
parent fd182b6baf
commit 923535797a
1 changed files with 16 additions and 10 deletions

View File

@ -7,18 +7,15 @@ RUN apt-get update && \
apt-get install -y ca-certificates openssl libssl-dev ffmpeg && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /tmp/build/nginx && \
cd /tmp/build/nginx && \
RUN mkdir -p /tmp/build/ && \
cd /tmp/build/ && \
wget -O ${NGINX_VERSION}.tar.gz https://nginx.org/download/${NGINX_VERSION}.tar.gz && \
tar -zxf ${NGINX_VERSION}.tar.gz
RUN mkdir -p /tmp/build/nginx-rtmp-module && \
cd /tmp/build/nginx-rtmp-module && \
wget -O nginx-rtmp-module-${NGINX_RTMP_MODULE_VERSION}.tar.gz https://github.com/arut/nginx-rtmp-module/archive/v${NGINX_RTMP_MODULE_VERSION}.tar.gz && \
tar -zxf nginx-rtmp-module-${NGINX_RTMP_MODULE_VERSION}.tar.gz && \
cd nginx-rtmp-module-${NGINX_RTMP_MODULE_VERSION}
RUN cd /tmp/build/ && \
git clone https://github.com/sergey-dryabzhinsky/nginx-rtmp-module.git
RUN cd /tmp/build/nginx/${NGINX_VERSION} && \
RUN cd /tmp/build/${NGINX_VERSION} && \
./configure \
--sbin-path=/usr/local/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
@ -29,8 +26,17 @@ RUN cd /tmp/build/nginx/${NGINX_VERSION} && \
--http-client-body-temp-path=/tmp/nginx-client-body \
--with-http_ssl_module \
--with-threads \
--with-ipv6 \
--add-module=/tmp/build/nginx-rtmp-module/nginx-rtmp-module-${NGINX_RTMP_MODULE_VERSION} && \
--with-select_module \
--with-poll_module \
--with-file-aio \
--with-stream=dynamic \
--with-stream_ssl_module \
--with-stream_realip_module \
--with-stream_ssl_preread_module \
--with-compat \
--add-module=../nginx-rtmp-module \
--with-debug\
-builddir=${NGINX_VERSION} \
make -j $(getconf _NPROCESSORS_ONLN) && \
make install && \
mkdir /var/lock/nginx && \