From 7c2d44c706c97291dedbda3bc5af00e93418cc27 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 3 Nov 2017 19:38:55 +0000 Subject: [PATCH] first commit --- builder.sh | 13 +++++++++++++ builder.shback | 21 +++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100755 builder.sh create mode 100755 builder.shback diff --git a/builder.sh b/builder.sh new file mode 100755 index 0000000..8519b5d --- /dev/null +++ b/builder.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +COMMIT_ID=$(git log -n 1 --pretty=format:%H -- nginx/) +LAST_COMMIT_ID=$(git log -n 1 --pretty=format:%H --) + +if [ "$COMMIT_ID" == "$LAST_COMMIT_ID" ]; then + echo "nginx build image" + docker build -t registry.dryusdan.fr/dryusdan/reverse-nginx --build-arg NGINX_CONF="--prefix=/nginx --sbin-path=/usr/local/sbin/nginx --http-log-path=/nginx/log/nginx_access.log --error-log-path=/nginx/log/nginx_error.log --pid-path=/nginx/run/nginx.pid --lock-path=/nginx/run/nginx.lock --user=reverse --group=reverse --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-http_stub_status_module --with-threads --with-pcre-jit --with-ipv6 --without-http_ssi_module --without-http_scgi_module --without-http_uwsgi_module --without-http_geo_module --without-http_autoindex_module --without-http_split_clients_module --without-http_memcached_module --without-http_empty_gif_module --add-module=/tmp/headers-more-nginx-module --without-http_browser_module" github.com/xataz/docker-reverse-nginx + docker push registry.dryusdan.fr/dryusdan/reverse-nginx + docker rmi registry.dryusdan.fr/dryusdan/reverse-nginx +else + echo "nginx image is recent. No build" +fi diff --git a/builder.shback b/builder.shback new file mode 100755 index 0000000..52db932 --- /dev/null +++ b/builder.shback @@ -0,0 +1,21 @@ +#!/bin/sh +docker build -t registry.dryusdan.fr/dryusdan/nginx:ipv6 \ + --build-arg NGINX_MODULES=" \ + --with-http_ssl_module \ + --with-http_v2_module \ + --with-http_gzip_static_module \ + --with-http_stub_status_module \ + --with-file-aio \ + --with-threads \ + --with-pcre-jit \ + --with-ipv6 \ + --without-http_ssi_module \ + --without-http_scgi_module \ + --without-http_uwsgi_module \ + --without-http_geo_module \ + --without-http_autoindex_module \ + --without-http_split_clients_module \ + --without-http_memcached_module \ + --without-http_empty_gif_module \ + --without-http_browser_module " \ +github.com/Wonderfall/dockerfiles.git#master:boring-nginx