rabin преди 7 години
родител
ревизия
bf6bebdf8e
променени са 3 файла, в които са добавени 34 реда и са изтрити 0 реда
  1. 15 0
      src/docker/build/web/nginx/concat/Dockerfile
  2. 18 0
      src/docker/build/web/nginx/concat/nginx.sh
  3. 1 0
      src/docker/core.conf

+ 15 - 0
src/docker/build/web/nginx/concat/Dockerfile

@@ -0,0 +1,15 @@
+FROM docker.dever.cc/os/alpine:latest
+
+MAINTAINER Rabin "https://github.com/shemic"
+ENV NGINX_VERSION=1.13.2
+
+RUN apk add --no-cache --update git curl pcre-dev openssl-dev gcc g++ make && \
+	curl -O http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz && \
+	tar -zxvf nginx-${NGINX_VERSION}.tar.gz && \
+	rm -rf nginx-${NGINX_VERSION}.tar.gz && \
+	git clone https://github.com/alibaba/nginx-http-concat && \
+	cd nginx-${NGINX_VERSION} && \
+	./configure --add-module=/nginx-http-concat --prefix=/var/lib/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/run/nginx/nginx.pid --lock-path=/run/nginx/nginx.lock --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --user=nginx --group=nginx --with-http_dav_module --with-http_ssl_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_v2_module --with-http_auth_request_module --with-mail --with-mail_ssl_module && \
+	make && make install && \
+
+	apk del git curl gcc g++ make

+ 18 - 0
src/docker/build/web/nginx/concat/nginx.sh

@@ -0,0 +1,18 @@
+#!/usr/bin/env sh
+set -e
+
+start_nginx()
+{
+	#exec nginx
+	process_start nginx
+}
+
+stop_nginx()
+{
+    nginx -s stop
+}
+
+monit_nginx()
+{
+	process_monit nginx
+}

+ 1 - 0
src/docker/core.conf

@@ -27,6 +27,7 @@ golang				= dev/golang
 
 ;web
 nginx				= web/nginx
+nginx_concat		= web/nginx/concat
 openresty			= web/openresty
 
 ;iot