openbridge / nginx

NGINX Accelerated! This is a Docker image that creates a high performance (FAST!), optimized image for NGINX for use with Redis and PHP-FMP. Deliver sites and applications with performance, reliability, security, and scale. This NGINX server offers advanced performance, web and mobile acceleration, security controls, application monitoring, and management.
https://www.openbridge.com/
MIT License
232 stars 53 forks source link

Nginx not found #58

Closed synetalsolutions closed 4 years ago

synetalsolutions commented 4 years ago

Facing this error while deploying container

Nginx version not found.

`------------------------- Sun Jan 19 2020 13:53:20 GMT+0000 (Coordinated Universal Time) Build started for dpboss Step 1/16 : FROM alpine:3.10

---> 965ea09ff2eb Step 2/16 : MAINTAINER Thomas Spicer (thomas@openbridge.com)

---> Using cache ---> 1360a1e29c04 Step 3/16 : ARG NGINX_VERSION

---> Using cache ---> 1177e845a059 Step 4/16 : ENV VAR_PREFIX=/var/run LOG_PREFIX=/var/log/nginx TEMP_PREFIX=/tmp CACHE_PREFIX=/var/cache CONF_PREFIX=/etc/nginx CERTS_PREFIX=/etc/pki/tls

---> Using cache ---> ec934255e800 Step 5/16 : RUN set -x && CONFIG=" --prefix=/usr/share/nginx/ --sbin-path=/usr/sbin/nginx --add-module=/tmp/naxsi/naxsi_src --modules-path=/usr/lib/nginx/modules --conf-path=${CONF_PREFIX}/nginx.conf --error-log-path=${LOG_PREFIX}/error.log --http-log-path=${LOG_PREFIX}/access.log --pid-path=${VAR_PREFIX}/nginx.pid --lock-path=${VAR_PREFIX}/nginx.lock --http-client-body-temp-path=${TEMP_PREFIX}/client_temp --http-proxy-temp-path=${TEMP_PREFIX}/proxy_temp --http-fastcgi-temp-path=${TEMP_PREFIX}/fastcgi_temp --http-uwsgi-temp-path=${TEMP_PREFIX}/uwsgi_temp --http-scgi-temp-path=${TEMP_PREFIX}/scgi_temp --user=www-data --group=www-data --with-http_ssl_module --with-pcre-jit --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-threads --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-stream_realip_module --with-stream_geoip_module=dynamic --with-http_slice_module --with-mail --with-mail_ssl_module --with-compat --with-file-aio --with-http_v2_module --add-module=/tmp/ngx_cache_purge-2.3 --add-module=/tmp/ngx_http_redis-0.3.9 --add-module=/tmp/redis2-nginx-module-0.15 --add-module=/tmp/srcache-nginx-module-0.31 --add-module=/tmp/echo-nginx-module --add-module=/tmp/ngx_devel_kit-0.3.1 --add-module=/tmp/set-misc-nginx-module-0.32 --add-module=/tmp/ngx_brotli --with-cc-opt=-Wno-error " && addgroup -g 82 -S www-data && adduser -u 82 -D -S -h /var/cache/nginx -s /sbin/nologin -G www-data www-data && apk add --no-cache --virtual .build-deps build-base ca-certificates automake autoconf git libtool binutils gnupg cmake go gcc build-base libc-dev make wget gzip openssl-dev musl-dev pcre-dev zlib-dev geoip-dev git linux-headers gnupg libxslt-dev gd-dev unzip && apk add --no-cache --update curl monit wget bash bind-tools rsync geoip openssl tini tar && cd /tmp && git clone https://github.com/google/ngx_brotli --depth=1 && cd ngx_brotli && git submodule update --init && export NGX_BROTLI_STATIC_MODULE_ONLY=1 && cd /tmp && git clone https://github.com/nbs-system/naxsi.git && echo 'adding /usr/local/share/GeoIP/GeoIP.dat database' && wget -N https://raw.githubusercontent.com/openbridge/nginx/master/geoip/GeoLiteCity.dat.gz && wget -N https://raw.githubusercontent.com/openbridge/nginx/master/geoip/GeoIP.dat.gz && gzip -d GeoIP.dat.gz && gzip -d GeoLiteCity.dat.gz && mkdir /usr/local/share/GeoIP/ && mv GeoIP.dat /usr/local/share/GeoIP/ && mv GeoLiteCity.dat /usr/local/share/GeoIP/ && chown -R www-data:www-data /usr/local/share/GeoIP/ && curl -fSL http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz -o nginx.tar.gz && mkdir -p /usr/src && tar -zxC /usr/src -f nginx.tar.gz && rm nginx.tar.gz && cd /tmp && git clone https://github.com/openresty/echo-nginx-module.git && wget https://github.com/simpl/ngx_devel_kit/archive/v0.3.1.zip -O dev.zip && wget https://github.com/openresty/set-misc-nginx-module/archive/v0.32.zip -O setmisc.zip && wget https://people.freebsd.org/~osa/ngx_http_redis-0.3.9.tar.gz && wget https://github.com/openresty/redis2-nginx-module/archive/v0.15.zip -O redis.zip && wget https://github.com/openresty/srcache-nginx-module/archive/v0.31.zip -O cache.zip && wget https://github.com/FRiCKLE/ngx_cache_purge/archive/2.3.zip -O purge.zip && tar -zx -f ngx_http_redis-0.3.9.tar.gz && unzip dev.zip && unzip setmisc.zip && unzip redis.zip && unzip cache.zip && unzip purge.zip && cd /usr/src/nginx-$NGINX_VERSION && ./configure $CONFIG --with-debug && make -j$(getconf _NPROCESSORS_ONLN) && mv objs/nginx objs/nginx-debug && mv objs/ngx_http_xslt_filter_module.so objs/ngx_http_xslt_filter_module-debug.so && mv objs/ngx_http_image_filter_module.so objs/ngx_http_image_filter_module-debug.so && mv objs/ngx_stream_geoip_module.so objs/ngx_stream_geoip_module-debug.so && ./configure $CONFIG && make -j$(getconf _NPROCESSORS_ONLN) && make install && rm -rf /etc/nginx/html/ && mkdir /etc/nginx/conf.d/ && mkdir -p /usr/share/nginx/html/ && install -m644 html/index.html /usr/share/nginx/html/ && install -m644 html/50x.html /usr/share/nginx/html/ && install -m755 objs/nginx-debug /usr/sbin/nginx-debug && install -m755 objs/ngx_http_xslt_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_xslt_filter_module-debug.so && install -m755 objs/ngx_http_image_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_image_filter_module-debug.so && install -m755 objs/ngx_stream_geoip_module-debug.so /usr/lib/nginx/modules/ngx_stream_geoip_module-debug.so && ln -s ../../usr/lib/nginx/modules /etc/nginx/modules && strip /usr/sbin/nginx && strip /usr/lib/nginx/modules/.so && mkdir -p /usr/local/bin/ && mkdir -p ${CACHE_PREFIX} && mkdir -p ${CERTS_PREFIX} && cd /etc/pki/tls/ && nice -n +5 openssl dhparam -out /etc/pki/tls/dhparam.pem.default 2048 && apk add --no-cache --virtual .gettext gettext && mv /usr/bin/envsubst /tmp/ && runDeps="$( scanelf --needed --nobanner /usr/sbin/nginx /usr/lib/nginx/modules/.so /tmp/envsubst | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' | sort -u | xargs -r apk info --installed | sort -u )" && apk add --no-cache --virtual .nginx-rundeps $runDeps && apk del .build-deps && apk del .gettext && cd /tmp/naxsi && mv naxsi_config/naxsi_core.rules /etc/nginx/naxsi_core.rules && mv /tmp/envsubst /usr/local/bin/ && rm -rf /tmp/ && rm -rf /usr/src/* && ln -sf /dev/stdout ${LOG_PREFIX}/access.log && ln -sf /dev/stderr ${LOG_PREFIX}/error.log && ln -sf /dev/stdout ${LOG_PREFIX}/blocked.log

---> Running in 6f129d2085b7

fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz (1/100) Installing binutils (2.32-r0) (2/100) Installing libmagic (5.37-r1) (3/100) Installing file (5.37-r1) (4/100) Installing gmp (6.1.2-r1) (5/100) Installing isl (0.18-r0) (6/100) Installing libgomp (8.3.0-r0) (7/100) Installing libatomic (8.3.0-r0) (8/100) Installing libgcc (8.3.0-r0) (9/100) Installing mpfr3 (3.1.5-r1) (10/100) Installing mpc1 (1.1.0-r0) (11/100) Installing libstdc++ (8.3.0-r0) (12/100) Installing gcc (8.3.0-r0) (13/100) Installing musl-dev (1.1.22-r3) (14/100) Installing libc-dev (0.7.1-r0) (15/100) Installing g++ (8.3.0-r0) [[ TRUNCATED ]] (19/100) Upgrading libcrypto1.1 (1.1.1d-r0 -> 1.1.1d-r2) (20/100) Installing ca-certificates (20190108-r0) (21/100) Installing libbz2 (1.0.6-r7) (22/100) Installing perl (5.28.2-r1) (23/100) Installing automake (1.16.1-r0) (24/100) Installing m4 (1.4.18-r1) (25/100) Installing autoconf (2.69-r2) (26/100) Installing nghttp2-libs (1.39.2-r0) (27/100) Upgrading libssl1.1 (1.1.1d-r0 -> 1.1.1d-r2) (28/100) Installing libcurl (7.66.0-r0) (29/100) Installing expat (2.2.8-r0) (30/100) Installing pcre2 (10.33-r0) (31/100) Installing git (2.22.2-r0) (32/100) Installing perl-error (0.17027-r0) (33/100) Installing perl-git (2.22.2-r0) (34/100) Installing git-perl (2.22.2-r0) (35/100) Installing ncurses-terminfo-base (6.1_p20190518-r0) (36/100) Installing ncurses-terminfo (6.1_p20190518-r0) (37/100) Installing ncurses-libs (6.1_p20190518-r0) (38/100) Installing readline (8.0.0-r0) (39/100) Installing bash (5.0.0-r0) Executing bash-5.0.0-r0.post-install (40/100) Installing libltdl (2.4.6-r6) (41/100) Installing libtool (2.4.6-r6) (42/100) Installing libgpg-error (1.36-r2) (43/100) Installing libassuan (2.5.3-r0) (44/100) Installing libcap (2.27-r0) (45/100) Installing libffi (3.2.1-r6) (46/100) Installing libintl (0.19.8.1-r4) (47/100) Installing libuuid (2.33.2-r0) (48/100) Installing libblkid (2.33.2-r0) (49/100) Installing libmount (2.33.2-r0) (50/100) Installing pcre (8.43-r0) (51/100) Installing glib (2.60.4-r0) (52/100) Installing libgcrypt (1.8.5-r0) (53/100) Installing libsecret (0.18.8-r0) (54/100) Installing pinentry (1.1.0-r1) Executing pinentry-1.1.0-r1.post-install (55/100) Installing nettle (3.4.1-r1) (56/100) Installing p11-kit (0.23.16.1-r0) (57/100) Installing libtasn1 (4.14-r0) (58/100) Installing libunistring (0.9.10-r0) (59/100) Installing gnutls (3.6.8-r0) (60/100) Installing libksba (1.3.5-r0) (61/100) Installing db (5.3.28-r1) (62/100) Installing libsasl (2.1.27-r4) (63/100) Installing libldap (2.4.48-r0) (64/100) Installing npth (1.6-r0) (65/100) Installing sqlite-libs (3.28.0-r2) (66/100) Installing gnupg (2.2.19-r0) (67/100) Installing libacl (2.2.52-r6) (68/100) Installing lz4-libs (1.9.1-r0) (69/100) Installing xz-libs (5.2.4-r0) (70/100) Installing libarchive (3.3.3-r1) (71/100) Installing rhash-libs (1.3.8-r0) (72/100) Installing libuv (1.29.1-r0) (73/100) Installing cmake (3.14.5-r0) (74/100) Installing cmake-bash-completion (3.14.5-r0) (75/100) Installing go (1.12.12-r0) (76/100) Installing wget (1.20.3-r0) (77/100) Installing gzip (1.10-r0) (78/100) Installing pkgconf (1.6.1-r1) (79/100) Installing openssl-dev (1.1.1d-r2) (80/100) Installing libpcre16 (8.43-r0) (81/100) Installing libpcre32 (8.43-r0) (82/100) Installing libpcrecpp (8.43-r0) (83/100) Installing pcre-dev (8.43-r0) (84/100) Installing zlib-dev (1.2.11-r1) (85/100) Installing geoip (1.6.12-r1) (86/100) Installing geoip-dev (1.6.12-r1) (87/100) Installing linux-headers (4.19.36-r0) (88/100) Installing libxml2 (2.9.9-r3) (89/100) Installing libxslt (1.1.33-r3) (90/100) Installing libxml2-dev (2.9.9-r3) (91/100) Installing libxslt-dev (1.1.33-r3) (92/100) Installing libpng (1.6.37-r1) (93/100) Installing freetype (2.10.0-r0) (94/100) Installing libjpeg-turbo (2.0.4-r0) (95/100) Installing libwebp (1.0.2-r0) (96/100) Installing libgd (2.2.5-r2) (97/100) Installing gd (2.2.5-r2) (98/100) Installing gd-dev (2.2.5-r2) (99/100) Installing unzip (6.0-r4) (100/100) Installing .build-deps (20200119.135335) Executing busybox-1.30.1-r2.trigger Executing ca-certificates-20190108-r0.trigger OK: 611 MiB in 112 packages

fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz (1/20) Installing libevent (2.1.10-r0) (2/20) Installing fstrm (0.5.0-r0) (3/20) Installing krb5-conf (1.0-r1) (4/20) Installing libcom_err (1.45.2-r1) (5/20) Installing keyutils-libs (1.6-r1) (6/20) Installing libverto (0.3.1-r0) (7/20) Installing krb5-libs (1.17-r0) (8/20) Installing json-c (0.13.1-r0) (9/20) Installing protobuf (3.6.1-r1) (10/20) Installing protobuf-c (1.3.0-r6) (11/20) Installing bind-libs (9.14.8-r0) (12/20) Installing bind-tools (9.14.8-r0) (13/20) Installing curl (7.66.0-r0) (14/20) Installing monit (5.25.3-r0) (15/20) Installing openssl (1.1.1d-r2) (16/20) Installing libattr (2.4.48-r0) (17/20) Installing popt (1.16-r7) (18/20) Installing rsync (3.1.3-r1) (19/20) Installing tar (1.32-r0) (20/20) Installing tini (0.18.0-r0) Executing busybox-1.30.1-r2.trigger OK: 624 MiB in 132 packages

Cloning into 'ngx_brotli'...

Submodule 'deps/brotli' (https://github.com/google/brotli.git) registered for path 'deps/brotli'

Cloning into '/tmp/ngx_brotli/deps/brotli'...

Submodule path 'deps/brotli': checked out 'd6d98957ca8ccb1ef45922e978bb10efca0ea541'

Cloning into 'naxsi'...

[[ TRUNCATED ]] .......... ...... .... 10% 8.46M 2s 1350K .... ...... .. ........ ........ .. .......... .... ...... 11% 12.0M 2s 1400K .. ........ .......... ...... .... .......... .. ........ 11% 11.9M 2s 1450K ........ .. .......... .... ...... .......... ........ .. 11% 9.12M 2s 1500K ...... .... .... ...... .. ........ ........ .. .......... 12% 14.9M 1s 1550K .... ...... .......... .......... ...... .... .......... 12% 11.9M 1s 1600K .. ........ ........ .. .......... .... ...... .......... 12% 14.8M 1s

1650K .......... ...... .... .... ...... .. ........ ........ .. 13% 7.49M 1s 1700K .......... .... ...... .......... .......... ...... .... 13% 12.0M 1s 1750K .......... .. ........ ........ .. ...... .... .... ...... 14% 14.5M 1s 1800K .......... .......... ...... .... .......... .. ........ 14% 9.48M 1s

1850K ........ .. .......... .... ...... .......... .......... 14% 15.8M 1s 1900K ...... .... .......... .. ........ ........ .. .......... 15% 16.0M 1s 1950K .... [[ TRUNCATED ]] . .......... 60% 7.56M 0s 400K ..... ..... .......... . ......... ....... ... .......... 67% 7.66M 0s 450K ... ....... ... ....... ......... . .......... ..... ..... 75% 6.37M 0s 500K .......... . ......... ....... ... .......... ... ....... 82% 7.50M 0s 550K ......... . .......... ..... ..... .......... . ......... 90% 10.7M 0s 600K ....... ... .......... ... ....... ......... . .......... 98% 7.54M 0s 650K ..... ..... .. 100% 18.0M=0.1s

Last-modified header missing -- time-stamps turned off. 2020-01-19 13:53:51 (5.47 MB/s) - 'GeoIP.dat.gz' saved [678907/678907]

Sp ent
Le ft

Speed

0 0 0

0 0 0 0
0 --:--:-- --:--: -- --:--:-- 0

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requ ested UR L returned error: 404 Not Found

{"code":22,"message":"The command '/bin/sh -c set -x && CONFIG=\" --prefix=/usr/share/nginx/ --sbin-path=/usr/sbin/nginx --add-module=/tmp/naxsi/naxsi_src --modules-path=/usr/lib/nginx/modules --conf-path=${CONF_PREFIX}/nginx.conf --error-log-path=${LOG_PREFIX}/error.log --http-log-path=${LOG_PREFIX}/access.log --pid-path=${VAR_PREFIX}/nginx.pid --lock-path=${VAR_PREFIX}/nginx.lock --http-client-body-temp-path=${TEMP_PREFIX}/client_temp --http-proxy-temp-path=${TEMP_PREFIX}/proxy_temp --http-fastcgi-temp-path=${TEMP_PREFIX}/fastcgi_temp --http-uwsgi-temp-path=${TEMP_PREFIX}/uwsgi_temp --http-scgi-temp-path=${TEMP_PREFIX}/scgi_temp --user=www-data --group=www-data --with-http_ssl_module --with-pcre-jit --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-threads --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-stream_realip_module --with-stream_geoip_module=dynamic --with-http_slice_module --with-mail --with-mail_ssl_module --with-compat --with-file-aio --with-http_v2_module --add-module=/tmp/ngx_cache_purge-2.3 --add-module=/tmp/ngx_http_redis-0.3.9 --add-module=/tmp/redis2-nginx-module-0.15 --add-module=/tmp/srcache-nginx-module-0.31 --add-module=/tmp/echo-nginx-module --add-module=/tmp/ngx_devel_kit-0.3.1 --add-module=/tmp/set-misc-nginx-module-0.32 --add-module=/tmp/ngx_brotli --with-cc-opt=-Wno-error \" && addgroup -g 82 -S www-data && adduser -u 82 -D -S -h /var/cache/nginx -s /sbin/nologin -G www-data www-data && apk add --no-cache --virtual .build-deps build-base ca-certificates automake autoconf git libtool binutils gnupg cmake go gcc build-base libc-dev make wget gzip openssl-dev musl-dev pcre-dev zlib-dev geoip-dev git linux-headers gnupg libxslt-dev gd-dev unzip && apk add --no-cache --update curl monit wget bash bind-tools rsync geoip openssl tini tar && cd /tmp && git clone https://github.com/google/ngx_brotli --depth=1 && cd ngx_brotli && git submodule update --init && export NGX_BROTLI_STATIC_MODULE_ONLY=1 && cd /tmp && git clone https://github.com/nbs-system/naxsi.git && echo 'adding /usr/local/share/GeoIP/GeoIP.dat database' && wget -N https://raw.githubusercontent.com/openbridge/nginx/master/geoip/GeoLiteCity.dat.gz && wget -N https://raw.githubusercontent.com/openbridge/nginx/master/geoip/GeoIP.dat.gz && gzip -d GeoIP.dat.gz && gzip -d GeoLiteCity.dat.gz && mkdir /usr/local/share/GeoIP/ && mv GeoIP.dat /usr/local/share/GeoIP/ && mv GeoLiteCity.dat /usr/local/share/GeoIP/ && chown -R www-data:www-data /usr/local/share/GeoIP/ && curl -fSL http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz -o nginx.tar.gz && mkdir -p /usr/src && tar -zxC /usr/src -f nginx.tar.gz && rm nginx.tar.gz && cd /tmp && git clone https://github.com/openresty/echo-nginx-module.git && wget https://github.com/simpl/ngx_devel_kit/archive/v0.3.1.zip -O dev.zip && wget https://github.com/openresty/set-misc-nginx-module/archive/v0.32.zip -O setmisc.zip && wget https://people.freebsd.org/~osa/ngx_http_redis-0.3.9.tar.gz && wget https://github.com/openresty/redis2-nginx-module/archive/v0.15.zip -O redis.zip && wget https://github.com/openresty/srcache-nginx-module/archive/v0.31.zip -O cache.zip && wget https://github.com/FRiCKLE/ngx_cache_purge/archive/2.3.zip -O purge.zip && tar -zx -f ngx_http_redis-0.3.9.tar.gz && unzip dev.zip && unzip setmisc.zip && unzip redis.zip && unzip cache.zip && unzip purge.zip && cd /usr/src/nginx-$NGINX_VERSION && ./configure $CONFIG --with-debug && make -j$(getconf _NPROCESSORS_ONLN) && mv objs/nginx objs/nginx-debug && mv objs/ngx_http_xslt_filter_module.so objs/ngx_http_xslt_filter_module-debug.so && mv objs/ngx_http_image_filter_module.so objs/ngx_http_image_filter_module-debug.so && mv objs/ngx_stream_geoip_module.so objs/ngx_stream_geoip_module-debug.so && ./configure $CONFIG && make -j$(getconf _NPROCESSORS_ONLN) && make install && rm -rf /etc/nginx/html/ && mkdir /etc/nginx/conf.d/ && mkdir -p /usr/share/nginx/html/ && install -m644 html/index.html /usr/share/nginx/html/ && install -m644 html/50x.html /usr/share/nginx/html/ && install -m755 objs/nginx-debug /usr/sbin/nginx-debug && install -m755 objs/ngx_http_xslt_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_xslt_filter_module-debug.so && install -m755 objs/ngx_http_image_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_image_filter_module-debug.so && install -m755 objs/ngx_stream_geoip_module-debug.so /usr/lib/nginx/modules/ngx_stream_geoip_module-debug.so && ln -s ../../usr/lib/nginx/modules /etc/nginx/modules && strip /usr/sbin/nginx && strip /usr/lib/nginx/modules/.so && mkdir -p /usr/local/bin/ && mkdir -p ${CACHE_PREFIX} && mkdir -p ${CERTS_PREFIX} && cd /etc/pki/tls/ && nice -n +5 openssl dhparam -out /etc/pki/tls/dhparam.pem.default 2048 && apk add --no-cache --virtual .gettext gettext && mv /usr/bin/envsubst /tmp/ && runDeps=\"$( scanelf --needed --nobanner /usr/sbin/nginx /usr/lib/nginx/modules/.so /tmp/envsubst | awk '{ gsub(/,/, \"\nso:\", $2); print \"so:\" $2 }' | sort -u | xargs -r apk info --installed | sort -u )\" && apk add --no-cache --virtual .nginx-rundeps $runDeps && apk del .build-deps && apk del .gettext && cd /tmp/naxsi && mv naxsi_config/naxsi_core.rules /etc/nginx/naxsi_core.rules && mv /tmp/envsubst /usr/local/bin/ && rm -rf /tmp/ && rm -rf /usr/src/ && ln -sf /dev/stdout ${LOG_PREFIX}/access.log && ln -sf /dev/stderr ${LOG_PREFIX}/error.log && ln -sf /dev/stdout ${LOG_PREFIX}/blocked.log' returned a non-zero code: 22"} The command '/bin/sh -c set -x && CONFIG=" --prefix=/usr/share/nginx/ --sbin-path=/usr/sbin/nginx --add-module=/tmp/naxsi/naxsi_src --modules-path=/usr/lib/nginx/modules --conf-path=${CONF_PREFIX}/nginx.conf --error-log-path=${LOG_PREFIX}/error.log --http-log-path=${LOG_PREFIX}/access.log --pid-path=${VAR_PREFIX}/nginx.pid --lock-path=${VAR_PREFIX}/nginx.lock --http-client-body-temp-path=${TEMP_PREFIX}/client_temp --http-proxy-temp-path=${TEMP_PREFIX}/proxy_temp --http-fastcgi-temp-path=${TEMP_PREFIX}/fastcgi_temp --http-uwsgi-temp-path=${TEMP_PREFIX}/uwsgi_temp --http-scgi-temp-path=${TEMP_PREFIX}/scgi_temp --user=www-data --group=www-data --with-http_ssl_module --with-pcre-jit --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-threads --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-stream_realip_module --with-stream_geoip_module=dynamic --with-http_slice_module --with-mail --with-mail_ssl_module --with-compat --with-file-aio --with-http_v2_module --add-module=/tmp/ngx_cache_purge-2.3 --add-module=/tmp/ngx_http_redis-0.3.9 --add-module=/tmp/redis2-nginx-module-0.15 --add-module=/tmp/srcache-nginx-module-0.31 --add-module=/tmp/echo-nginx-module --add-module=/tmp/ngx_devel_kit-0.3.1 --add-module=/tmp/set-misc-nginx-module-0.32 --add-module=/tmp/ngx_brotli --with-cc-opt=-Wno-error " && addgroup -g 82 -S www-data && adduser -u 82 -D -S -h /var/cache/nginx -s /sbin/nologin -G www-data www-data && apk add --no-cache --virtual .build-deps build-base ca-certificates automake autoconf git libtool binutils gnupg cmake go gcc build-base libc-dev make wget gzip openssl-dev musl-dev pcre-dev zlib-dev geoip-dev git linux-headers gnupg libxslt-dev gd-dev unzip && apk add --no-cache --update curl monit wget bash bind-tools rsync geoip openssl tini tar && cd /tmp && git clone https://github.com/google/ngx_brotli --depth=1 && cd ngx_brotli && git submodule update --init && export NGX_BROTLI_STATIC_MODULE_ONLY=1 && cd /tmp && git clone https://github.com/nbs-system/naxsi.git && echo 'adding /usr/local/share/GeoIP/GeoIP.dat database' && wget -N https://raw.githubusercontent.com/openbridge/nginx/master/geoip/GeoLiteCity.dat.gz && wget -N https://raw.githubusercontent.com/openbridge/nginx/master/geoip/GeoIP.dat.gz && gzip -d GeoIP.dat.gz && gzip -d GeoLiteCity.dat.gz && mkdir /usr/local/share/GeoIP/ && mv GeoIP.dat /usr/local/share/GeoIP/ && mv GeoLiteCity.dat /usr/local/share/GeoIP/ && chown -R www-data:www-data /usr/local/share/GeoIP/ && curl -fSL http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz -o nginx.tar.gz && mkdir -p /usr/src && tar -zxC /usr/src -f nginx.tar.gz && rm nginx.tar.gz && cd /tmp && git clone https://github.com/openresty/echo-nginx-module.git && wget https://github.com/simpl/ngx_devel_kit/archive/v0.3.1.zip -O dev.zip && wget https://github.com/openresty/set-misc-nginx-module/archive/v0.32.zip -O setmisc.zip && wget https://people.freebsd.org/~osa/ngx_http_redis-0.3.9.tar.gz && wget https://github.com/openresty/redis2-nginx-module/archive/v0.15.zip -O redis.zip && wget https://github.com/openresty/srcache-nginx-module/archive/v0.31.zip -O cache.zip && wget https://github.com/FRiCKLE/ngx_cache_purge/archive/2.3.zip -O purge.zip && tar -zx -f ngx_http_redis-0.3.9.tar.gz && unzip dev.zip && unzip setmisc.zip && unzip redis.zip && unzip cache.zip && unzip purge.zip && cd /usr/src/nginx-$NGINX_VERSION && ./configure $CONFIG --with-debug && make -j$(getconf _NPROCESSORS_ONLN) && mv objs/nginx objs/nginx-debug && mv objs/ngx_http_xslt_filter_module.so objs/ngx_http_xslt_filter_module-debug.so && mv objs/ngx_http_image_filter_module.so objs/ngx_http_image_filter_module-debug.so && mv objs/ngx_stream_geoip_module.so objs/ngx_stream_geoip_module-debug.so && ./configure $CONFIG && make -j$(getconf _NPROCESSORS_ONLN) && make install && rm -rf /etc/nginx/html/ && mkdir /etc/nginx/conf.d/ && mkdir -p /usr/share/nginx/html/ && install -m644 html/index.html /usr/share/nginx/html/ && install -m644 html/50x.html /usr/share/nginx/html/ && install -m755 objs/nginx-debug /usr/sbin/nginx-debug && install -m755 objs/ngx_http_xslt_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_xslt_filter_module-debug.so && install -m755 objs/ngx_http_image_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_image_filter_module-debug.so && install -m755 objs/ngx_stream_geoip_module-debug.so /usr/lib/nginx/modules/ngx_stream_geoip_module-debug.so && ln -s ../../usr/lib/nginx/modules /etc/nginx/modules && strip /usr/sbin/nginx && strip /usr/lib/nginx/modules/.so && mkdir -p /usr/local/bin/ && mkdir -p ${CACHE_PREFIX} && mkdir -p ${CERTS_PREFIX} && cd /etc/pki/tls/ && nice -n +5 openssl dhparam -out /etc/pki/tls/dhparam.pem.default 2048 && apk add --no-cache --virtual .gettext gettext && mv /usr/bin/envsubst /tmp/ && runDeps="$( scanelf --needed --nobanner /usr/sbin/nginx /usr/lib/nginx/modules/.so /tmp/envsubst | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' | sort -u | xargs -r apk info --installed | sort -u )" && apk add --no-cache --virtual .nginx-rundeps $runDeps && apk del .build-deps && apk del .gettext && cd /tmp/naxsi && mv naxsi_config/naxsi_core.rules /etc/nginx/naxsi_core.rules && mv /tmp/envsubst /usr/local/bin/ && rm -rf /tmp/ && rm -rf /usr/src/ && ln -sf /dev/stdout ${LOG_PREFIX}/access.log && ln -sf /dev/stderr ${LOG_PREFIX}/error.log && ln -sf /dev/stdout ${LOG_PREFIX}/blocked.log' returned a non-zero code: 22 Build has failed!

Deploy failed! Error: {"code":22,"message":"The command '/bin/sh -c set -x && CONFIG=\" --prefix=/usr/share/nginx/ --sbin-path=/usr/sbin/nginx --add-module=/tmp/naxsi/naxsi_src --modules-path=/usr/lib/nginx/modules --conf-path=${CONF_PREFIX}/nginx.conf --error-log-path=${LOG_PREFIX}/error.log --http-log-path=${LOG_PREFIX}/access.log --pid-path=${VAR_PREFIX}/nginx.pid --lock-path=${VAR_PREFIX}/nginx.lock --http-client-body-temp-path=${TEMP_PREFIX}/client_temp --http-proxy-temp-path=${TEMP_PREFIX}/proxy_temp --http-fastcgi-temp-path=${TEMP_PREFIX}/fastcgi_temp --http-uwsgi-temp-path=${TEMP_PREFIX}/uwsgi_temp --http-scgi-temp-path=${TEMP_PREFIX}/scgi_temp --user=www-data --group=www-data --with-http_ssl_module --with-pcre-jit --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-threads --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-stream_realip_module --with-stream_geoip_module=dynamic --with-http_slice_module --with-mail --with-mail_ssl_module --with-compat --with-file-aio --with-http_v2_module --add-module=/tmp/ngx_cache_purge-2.3 --add-module=/tmp/ngx_http_redis-0.3.9 --add-module=/tmp/redis2-nginx-module-0.15 --add-module=/tmp/srcache-nginx-module-0.31 --add-module=/tmp/echo-nginx-module --add-module=/tmp/ngx_devel_kit-0.3.1 --add-module=/tmp/set-misc-nginx-module-0.32 --add-module=/tmp/ngx_brotli --with-cc-opt=-Wno-error \" && addgroup -g 82 -S www-data && adduser -u 82 -D -S -h /var/cache/nginx -s /sbin/nologin -G www-data www-data && apk add --no-cache --virtual .build-deps build-base ca-certificates automake autoconf git libtool binutils gnupg cmake go gcc build-base libc-dev make wget gzip openssl-dev musl-dev pcre-dev zlib-dev geoip-dev git linux-headers gnupg libxslt-dev gd-dev unzip && apk add --no-cache --update curl monit wget bash bind-tools rsync geoip openssl tini tar && cd /tmp && git clone https://github.com/google/ngx_brotli --depth=1 && cd ngx_brotli && git submodule update --init && export NGX_BROTLI_STATIC_MODULE_ONLY=1 && cd /tmp && git clone https://github.com/nbs-system/naxsi.git && echo 'adding /usr/local/share/GeoIP/GeoIP.dat database' && wget -N https://raw.githubusercontent.com/openbridge/nginx/master/geoip/GeoLiteCity.dat.gz && wget -N https://raw.githubusercontent.com/openbridge/nginx/master/geoip/GeoIP.dat.gz && gzip -d GeoIP.dat.gz && gzip -d GeoLiteCity.dat.gz && mkdir /usr/local/share/GeoIP/ && mv GeoIP.dat /usr/local/share/GeoIP/ && mv GeoLiteCity.dat /usr/local/share/GeoIP/ && chown -R www-data:www-data /usr/local/share/GeoIP/ && curl -fSL http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz -o nginx.tar.gz && mkdir -p /usr/src && tar -zxC /usr/src -f nginx.tar.gz && rm nginx.tar.gz && cd /tmp && git clone https://github.com/openresty/echo-nginx-module.git && wget https://github.com/simpl/ngx_devel_kit/archive/v0.3.1.zip -O dev.zip && wget https://github.com/openresty/set-misc-nginx-module/archive/v0.32.zip -O setmisc.zip && wget https://people.freebsd.org/~osa/ngx_http_redis-0.3.9.tar.gz && wget https://github.com/openresty/redis2-nginx-module/archive/v0.15.zip -O redis.zip && wget https://github.com/openresty/srcache-nginx-module/archive/v0.31.zip -O cache.zip && wget https://github.com/FRiCKLE/ngx_cache_purge/archive/2.3.zip -O purge.zip && tar -zx -f ngx_http_redis-0.3.9.tar.gz && unzip dev.zip && unzip setmisc.zip && unzip redis.zip && unzip cache.zip && unzip purge.zip && cd /usr/src/nginx-$NGINX_VERSION && ./configure $CONFIG --with-debug && make -j$(getconf _NPROCESSORS_ONLN) && mv objs/nginx objs/nginx-debug && mv objs/ngx_http_xslt_filter_module.so objs/ngx_http_xslt_filter_module-debug.so && mv objs/ngx_http_image_filter_module.so objs/ngx_http_image_filter_module-debug.so && mv objs/ngx_stream_geoip_module.so objs/ngx_stream_geoip_module-debug.so && ./configure $CONFIG && make -j$(getconf _NPROCESSORS_ONLN) && make install && rm -rf /etc/nginx/html/ && mkdir /etc/nginx/conf.d/ && mkdir -p /usr/share/nginx/html/ && install -m644 html/index.html /usr/share/nginx/html/ && install -m644 html/50x.html /usr/share/nginx/html/ && install -m755 objs/nginx-debug /usr/sbin/nginx-debug && install -m755 objs/ngx_http_xslt_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_xslt_filter_module-debug.so && install -m755 objs/ngx_http_image_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_image_filter_module-debug.so && install -m755 objs/ngx_stream_geoip_module-debug.so /usr/lib/nginx/modules/ngx_stream_geoip_module-debug.so && ln -s ../../usr/lib/nginx/modules /etc/nginx/modules && strip /usr/sbin/nginx && strip /usr/lib/nginx/modules/.so && mkdir -p /usr/local/bin/ && mkdir -p ${CACHE_PREFIX} && mkdir -p ${CERTS_PREFIX} && cd /etc/pki/tls/ && nice -n +5 openssl dhparam -out /etc/pki/tls/dhparam.pem.default 2048 && apk add --no-cache --virtual .gettext gettext && mv /usr/bin/envsubst /tmp/ && runDeps=\"$( scanelf --needed --nobanner /usr/sbin/nginx /usr/lib/nginx/modules/.so /tmp/envsubst | awk '{ gsub(/,/, \"\nso:\", $2); print \"so:\" $2 }' | sort -u | xargs -r apk info --installed | sort -u )\" && apk add --no-cache --virtual .nginx-rundeps $runDeps && apk del .build-deps && apk del .gettext && cd /tmp/naxsi && mv naxsi_config/naxsi_core.rules /etc/nginx/naxsi_core.rules && mv /tmp/envsubst /usr/local/bin/ && rm -rf /tmp/ && rm -rf /usr/src/ && ln -sf /dev/stdout ${LOG_PREFIX}/access.log && ln -sf /dev/stderr ${LOG_PREFIX}/error.log && ln -sf /dev/stdout ${LOG_PREFIX}/blocked.log' returned a non-zero code: 22"} The command '/bin/sh -c set -x && CONFIG=" --prefix=/usr/share/nginx/ --sbin-path=/usr/sbin/nginx --add-module=/tmp/naxsi/naxsi_src --modules-path=/usr/lib/nginx/modules --conf-path=${CONF_PREFIX}/nginx.conf --error-log-path=${LOG_PREFIX}/error.log --http-log-path=${LOG_PREFIX}/access.log --pid-path=${VAR_PREFIX}/nginx.pid --lock-path=${VAR_PREFIX}/nginx.lock --http-client-body-temp-path=${TEMP_PREFIX}/client_temp --http-proxy-temp-path=${TEMP_PREFIX}/proxy_temp --http-fastcgi-temp-path=${TEMP_PREFIX}/fastcgi_temp --http-uwsgi-temp-path=${TEMP_PREFIX}/uwsgi_temp --http-scgi-temp-path=${TEMP_PREFIX}/scgi_temp --user=www-data --group=www-data --with-http_ssl_module --with-pcre-jit --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-threads --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-stream_realip_module --with-stream_geoip_module=dynamic --with-http_slice_module --with-mail --with-mail_ssl_module --with-compat --with-file-aio --with-http_v2_module --add-module=/tmp/ngx_cache_purge-2.3 --add-module=/tmp/ngx_http_redis-0.3.9 --add-module=/tmp/redis2-nginx-module-0.15 --add-module=/tmp/srcache-nginx-module-0.31 --add-module=/tmp/echo-nginx-module --add-module=/tmp/ngx_devel_kit-0.3.1 --add-module=/tmp/set-misc-nginx-module-0.32 --add-module=/tmp/ngx_brotli --with-cc-opt=-Wno-error " && addgroup -g 82 -S www-data && adduser -u 82 -D -S -h /var/cache/nginx -s /sbin/nologin -G www-data www-data && apk add --no-cache --virtual .build-deps build-base ca-certificates automake autoconf git libtool binutils gnupg cmake go gcc build-base libc-dev make wget gzip openssl-dev musl-dev pcre-dev zlib-dev geoip-dev git linux-headers gnupg libxslt-dev gd-dev unzip && apk add --no-cache --update curl monit wget bash bind-tools rsync geoip openssl tini tar && cd /tmp && git clone https://github.com/google/ngx_brotli --depth=1 && cd ngx_brotli && git submodule update --init && export NGX_BROTLI_STATIC_MODULE_ONLY=1 && cd /tmp && git clone https://github.com/nbs-system/naxsi.git && echo 'adding /usr/local/share/GeoIP/GeoIP.dat database' && wget -N https://raw.githubusercontent.com/openbridge/nginx/master/geoip/GeoLiteCity.dat.gz && wget -N https://raw.githubusercontent.com/openbridge/nginx/master/geoip/GeoIP.dat.gz && gzip -d GeoIP.dat.gz && gzip -d GeoLiteCity.dat.gz && mkdir /usr/local/share/GeoIP/ && mv GeoIP.dat /usr/local/share/GeoIP/ && mv GeoLiteCity.dat /usr/local/share/GeoIP/ && chown -R www-data:www-data /usr/local/share/GeoIP/ && curl -fSL http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz -o nginx.tar.gz && mkdir -p /usr/src && tar -zxC /usr/src -f nginx.tar.gz && rm nginx.tar.gz && cd /tmp && git clone https://github.com/openresty/echo-nginx-module.git && wget https://github.com/simpl/ngx_devel_kit/archive/v0.3.1.zip -O dev.zip && wget https://github.com/openresty/set-misc-nginx-module/archive/v0.32.zip -O setmisc.zip && wget https://people.freebsd.org/~osa/ngx_http_redis-0.3.9.tar.gz && wget https://github.com/openresty/redis2-nginx-module/archive/v0.15.zip -O redis.zip && wget https://github.com/openresty/srcache-nginx-module/archive/v0.31.zip -O cache.zip && wget https://github.com/FRiCKLE/ngx_cache_purge/archive/2.3.zip -O purge.zip && tar -zx -f ngx_http_redis-0.3.9.tar.gz && unzip dev.zip && unzip setmisc.zip && unzip redis.zip && unzip cache.zip && unzip purge.zip && cd /usr/src/nginx-$NGINX_VERSION && ./configure $CONFIG --with-debug && make -j$(getconf _NPROCESSORS_ONLN) && mv objs/nginx objs/nginx-debug && mv objs/ngx_http_xslt_filter_module.so objs/ngx_http_xslt_filter_module-debug.so && mv objs/ngx_http_image_filter_module.so objs/ngx_http_image_filter_module-debug.so && mv objs/ngx_stream_geoip_module.so objs/ngx_stream_geoip_module-debug.so && ./configure $CONFIG && make -j$(getconf _NPROCESSORS_ONLN) && make install && rm -rf /etc/nginx/html/ && mkdir /etc/nginx/conf.d/ && mkdir -p /usr/share/nginx/html/ && install -m644 html/index.html /usr/share/nginx/html/ && install -m644 html/50x.html /usr/share/nginx/html/ && install -m755 objs/nginx-debug /usr/sbin/nginx-debug && install -m755 objs/ngx_http_xslt_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_xslt_filter_module-debug.so && install -m755 objs/ngx_http_image_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_image_filter_module-debug.so && install -m755 objs/ngx_stream_geoip_module-debug.so /usr/lib/nginx/modules/ngx_stream_geoip_module-debug.so && ln -s ../../usr/lib/nginx/modules /etc/nginx/modules && strip /usr/sbin/nginx && strip /usr/lib/nginx/modules/.so && mkdir -p /usr/local/bin/ && mkdir -p ${CACHE_PREFIX} && mkdir -p ${CERTS_PREFIX} && cd /etc/pki/tls/ && nice -n +5 openssl dhparam -out /etc/pki/tls/dhparam.pem.default 2048 && apk add --no-cache --virtual .gettext gettext && mv /usr/bin/envsubst /tmp/ && runDeps="$( scanelf --needed --nobanner /usr/sbin/nginx /usr/lib/nginx/modules/.so /tmp/envsubst | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' | sort -u | xargs -r apk info --installed | sort -u )" && apk add --no-cache --virtual .nginx-rundeps $runDeps && apk del .build-deps && apk del .gettext && cd /tmp/naxsi && mv naxsi_config/naxsi_core.rules /etc/nginx/naxsi_core.rules && mv /tmp/envsubst /usr/local/bin/ && rm -rf /tmp/ && rm -rf /usr/src/ && ln -sf /dev/stdout ${LOG_PREFIX}/access.log && ln -sf /dev/stderr ${LOG_PREFIX}/error.log && ln -sf /dev/stdout ${LOG_PREFIX}/blocked.log' returned a non-zero code: 22 `

tspicer commented 4 years ago

What was your build command?

synetalsolutions commented 4 years ago

Need to add this to fix the issue ARG NGINX_VERSION=1.19

synetalsolutions commented 4 years ago

after that facing this issue

tspicer commented 4 years ago

Glad you got it. The docs indicate you need to pass a version.

synetalsolutions commented 4 years ago

if i create manually mkdir /usr/src/nginx

after that ./configure not working what will be the solution for that?

tspicer commented 4 years ago

http://nginx.org/en/download.html

I don’t see your version listed.

synetalsolutions commented 4 years ago

Currently using this

'FROM alpine:3.10 MAINTAINER Thomas Spicer (thomas@openbridge.com)

ARG NGINX_VERSION=1.19 ENV VAR_PREFIX=/var/run \ LOG_PREFIX=/var/log/nginx \ TEMP_PREFIX=/tmp \ CACHE_PREFIX=/var/cache \ CONF_PREFIX=/etc/nginx \ CERTS_PREFIX=/etc/pki/tls

RUN set -x \ && CONFIG="\ --prefix=/usr/share/nginx/ \ --sbin-path=/usr/sbin/nginx \ --add-module=/tmp/naxsi/naxsi_src \ --modules-path=/usr/lib/nginx/modules \ --conf-path=${CONF_PREFIX}/nginx.conf \ --error-log-path=${LOG_PREFIX}/error.log \ --http-log-path=${LOG_PREFIX}/access.log \ --pid-path=${VAR_PREFIX}/nginx.pid \ --lock-path=${VAR_PREFIX}/nginx.lock \ --http-client-body-temp-path=${TEMP_PREFIX}/client_temp \ --http-proxy-temp-path=${TEMP_PREFIX}/proxy_temp \ --http-fastcgi-temp-path=${TEMP_PREFIX}/fastcgi_temp \ --http-uwsgi-temp-path=${TEMP_PREFIX}/uwsgi_temp \ --http-scgi-temp-path=${TEMP_PREFIX}/scgi_temp \ --user=www-data \ --group=www-data \ --with-http_ssl_module \ --with-pcre-jit \ --with-http_realip_module \ --with-http_addition_module \ --with-http_sub_module \ --with-http_dav_module \ --with-http_flv_module \ --with-http_mp4_module \ --with-http_gunzip_module \ --with-http_gzip_static_module \ --with-http_random_index_module \ --with-http_secure_link_module \ --with-http_stub_status_module \ --with-http_auth_request_module \ --with-http_xslt_module=dynamic \ --with-http_image_filter_module=dynamic \ --with-http_geoip_module=dynamic \ --with-threads \ --with-stream \ --with-stream_ssl_module \ --with-stream_ssl_preread_module \ --with-stream_realip_module \ --with-stream_geoip_module=dynamic \ --with-http_slice_module \ --with-mail \ --with-mail_ssl_module \ --with-compat \ --with-file-aio \ --with-http_v2_module \ --add-module=/tmp/ngx_cache_purge-2.3 \ --add-module=/tmp/ngx_http_redis-0.3.9 \ --add-module=/tmp/redis2-nginx-module-0.15 \ --add-module=/tmp/srcache-nginx-module-0.31 \ --add-module=/tmp/echo-nginx-module \ --add-module=/tmp/ngx_devel_kit-0.3.1 \ --add-module=/tmp/set-misc-nginx-module-0.32 \ --add-module=/tmp/ngx_brotli \ --with-cc-opt=-Wno-error \ " \ && addgroup -g 82 -S www-data \ && adduser -u 82 -D -S -h /var/cache/nginx -s /sbin/nologin -G www-data www-data \ && apk add --no-cache --virtual .build-deps \ build-base \ ca-certificates \ automake \ autoconf \ git \ libtool \ binutils \ gnupg \ cmake \ go \ gcc \ build-base \ libc-dev \ make \ wget \ gzip \ openssl-dev \ musl-dev \ pcre-dev \ zlib-dev \ geoip-dev \ git \ linux-headers \ gnupg \ libxslt-dev \ gd-dev \ unzip \ && apk add --no-cache --update \ curl \ monit \ wget \ bash \ bind-tools \ rsync \ geoip \ openssl \ tini \ tar \ && cd /tmp \ && git clone https://github.com/google/ngx_brotli --depth=1 \ && cd ngx_brotli && git submodule update --init \ && export NGX_BROTLI_STATIC_MODULE_ONLY=1 \ && cd /tmp \ && git clone https://github.com/nbs-system/naxsi.git \ && echo 'adding /usr/local/share/GeoIP/GeoIP.dat database' \ && wget -N https://raw.githubusercontent.com/openbridge/nginx/master/geoip/GeoLiteCity.dat.gz \ && wget -N https://raw.githubusercontent.com/openbridge/nginx/master/geoip/GeoIP.dat.gz \ && gzip -d GeoIP.dat.gz \ && gzip -d GeoLiteCity.dat.gz \ && mkdir /usr/local/share/GeoIP/ \ && mv GeoIP.dat /usr/local/share/GeoIP/ \ && mv GeoLiteCity.dat /usr/local/share/GeoIP/ \ && chown -R www-data:www-data /usr/local/share/GeoIP/ \ && curl -fSL http://nginx.org/download/nginx-1.9.9.tar.gz -o nginx.tar.gz \ && mkdir -p /usr/src \ && tar -zxC /usr/src -f nginx.tar.gz \ && rm nginx.tar.gz \ && cd /tmp \ && git clone https://github.com/openresty/echo-nginx-module.git \ && wget https://github.com/simpl/ngx_devel_kit/archive/v0.3.1.zip -O dev.zip \ && wget https://github.com/openresty/set-misc-nginx-module/archive/v0.32.zip -O setmisc.zip \ && wget https://people.freebsd.org/~osa/ngx_http_redis-0.3.9.tar.gz \ && wget https://github.com/openresty/redis2-nginx-module/archive/v0.15.zip -O redis.zip \ && wget https://github.com/openresty/srcache-nginx-module/archive/v0.31.zip -O cache.zip \ && wget https://github.com/FRiCKLE/ngx_cache_purge/archive/2.3.zip -O purge.zip \ && tar -zx -f ngx_http_redis-0.3.9.tar.gz \ && unzip dev.zip \ && unzip setmisc.zip \ && unzip redis.zip \ && unzip cache.zip \ && unzip purge.zip \ && cd /usr/src/nginx \ && ./configure $CONFIG --with-debug \ && make -j$(getconf _NPROCESSORS_ONLN) \ && mv objs/nginx objs/nginx-debug \ && mv objs/ngx_http_xslt_filter_module.so objs/ngx_http_xslt_filter_module-debug.so \ && mv objs/ngx_http_image_filter_module.so objs/ngx_http_image_filter_module-debug.so \ && mv objs/ngx_stream_geoip_module.so objs/ngx_stream_geoip_module-debug.so \ && ./configure $CONFIG \ && make -j$(getconf _NPROCESSORS_ONLN) \ && make install \ && rm -rf /etc/nginx/html/ \ && mkdir /etc/nginx/conf.d/ \ && mkdir -p /usr/share/nginx/html/ \ && install -m644 html/index.html /usr/share/nginx/html/ \ && install -m644 html/50x.html /usr/share/nginx/html/ \ && install -m755 objs/nginx-debug /usr/sbin/nginx-debug \ && install -m755 objs/ngx_http_xslt_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_xslt_filter_module-debug.so \ && install -m755 objs/ngx_http_image_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_image_filter_module-debug.so \ && install -m755 objs/ngx_stream_geoip_module-debug.so /usr/lib/nginx/modules/ngx_stream_geoip_module-debug.so \ && ln -s ../../usr/lib/nginx/modules /etc/nginx/modules \ && strip /usr/sbin/nginx \ && strip /usr/lib/nginx/modules/.so \ && mkdir -p /usr/local/bin/ \ && mkdir -p ${CACHE_PREFIX} \ && mkdir -p ${CERTS_PREFIX} \ && cd /etc/pki/tls/ \ && nice -n +5 openssl dhparam -out /etc/pki/tls/dhparam.pem.default 2048 \ && apk add --no-cache --virtual .gettext gettext \ && mv /usr/bin/envsubst /tmp/ \ \ && runDeps="$( \ scanelf --needed --nobanner /usr/sbin/nginx /usr/lib/nginx/modules/.so /tmp/envsubst \ | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ | sort -u \ | xargs -r apk info --installed \ | sort -u \ )" \ && apk add --no-cache --virtual .nginx-rundeps $runDeps \ && apk del .build-deps \ && apk del .gettext \ && cd /tmp/naxsi \ && mv naxsi_config/naxsi_core.rules /etc/nginx/naxsi_core.rules \ && mv /tmp/envsubst /usr/local/bin/ \ && rm -rf /tmp/ \ && rm -rf /usr/src/* \ && ln -sf /dev/stdout ${LOG_PREFIX}/access.log \ && ln -sf /dev/stderr ${LOG_PREFIX}/error.log \ && ln -sf /dev/stdout ${LOG_PREFIX}/blocked.log

COPY conf/ /conf COPY test/ /tmp/test COPY error/ /tmp/error/ COPY check_wwwdata.sh /usr/bin/check_wwwdata COPY check_folder.sh /usr/bin/check_folder COPY check_host.sh /usr/bin/check_host COPY docker-entrypoint.sh /docker-entrypoint.sh RUN chmod +x /docker-entrypoint.sh /usr/bin/check_wwwdata /usr/bin/check_folder /usr/bin/check_host

STOPSIGNAL SIGQUIT

ENTRYPOINT ["/docker-entrypoint.sh"]

CMD ["/usr/sbin/nginx", "-g", "daemon off;"]'

tspicer commented 4 years ago

Is there a reason for using a version that is 4 years old?

synetalsolutions commented 4 years ago

I want to fine tune my php-fpm max_children issues when traffic raise on my website it goes down.

SO i was thinking to use multiple docker to run my website.