Open Mircc opened 8 years ago
I'm facing the same error, does anyone has solution for this ?
FROM alpine:3.15.5
MAINTAINER SONGHANPOO <songhanpoo@gmail.com>
ENV NGINX_VERSION 1.20.2
ENV NGINX_TCP_MODULES_VERSION 0.4.5
# https://github.com/yaoweibin/nginx_tcp_proxy_module/archive/refs/tags/v0.4.5.tar.gz
# https://github.com/yaoweibin/nginx_tcp_proxy_module/archive/refs/tags/v0.4.5.tar.gz
RUN apk --no-cache add patch openssl-dev pcre-dev zlib-dev wget build-base && \
mkdir -p /tmp/src && \
mkdir -p /tmp/src/modules && \
cd /tmp/src && \
wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz && \
wget https://github.com/yaoweibin/nginx_tcp_proxy_module/archive/refs/tags/v${NGINX_TCP_MODULES_VERSION}.tar.gz \
-O /tmp/src/modules/nginx_tcp_proxy_module-${NGINX_TCP_MODULES_VERSION}.tar.gz && \
tar -zxvf /tmp/src/modules/nginx_tcp_proxy_module-${NGINX_TCP_MODULES_VERSION}.tar.gz \
-C /tmp/src/modules && \
tar -zxvf /tmp/src/nginx-${NGINX_VERSION}.tar.gz \
-C /tmp/src && \
cd /tmp/src/nginx-${NGINX_VERSION} && \
/usr/bin/patch -p1 < /tmp/src/modules/nginx_tcp_proxy_module-${NGINX_TCP_MODULES_VERSION}/tcp.patch && \
./configure \
--with-http_ssl_module \
--with-http_gzip_static_module \
--with-http_v2_module \
--add-module=/tmp/src/modules/nginx_tcp_proxy_module-${NGINX_TCP_MODULES_VERSION} \
--with-ipv6 \
--prefix=/etc/nginx \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--sbin-path=/usr/local/sbin/nginx && \
make && \
make install && \
apk del build-base && \
rm -rf /tmp/src
# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log && \
ln -sf /dev/stderr /var/log/nginx/error.log
VOLUME ["/var/log/nginx"]
# Add the files
# Expose the ports for nginx
EXPOSE 80 443
is Tengine 2.12 centos 6.5 [root@JM-Nginx-01 nginx_tcp_proxy_module]# patch –p1 < /data/nginx_tcp_proxy_module/tcp.patch patching file –p1 Hunk #1 FAILED at 66. 1 out of 1 hunk FAILED -- saving rejects to file –p1.rej patching file –p1 Hunk #1 FAILED at 29. Hunk #2 FAILED at 36. 2 out of 2 hunks FAILED -- saving rejects to file –p1.rej patching file –p1 Hunk #1 FAILED at 32. Hunk #2 FAILED at 42. 2 out of 2 hunks FAILED -- saving rejects to file –p1.rej