1.16.0-debian-9-r3 release

This commit is contained in:
Bitnami Bot
2019-05-02 16:14:24 +00:00
parent b3cae7c100
commit e2e5fb287c
7 changed files with 84 additions and 13 deletions

View File

@@ -9,20 +9,26 @@ ENV BITNAMI_PKG_CHMOD="-R g+rwX" \
# Install required system packages and dependencies
RUN install_packages libc6 libpcre3 libssl1.1 zlib1g
RUN . ./libcomponent.sh && component_unpack "nginx" "1.16.0-0" --checksum b08c5b2a428e2e54726d47e290102496780db1ddd4a0a67bed82da6c34e56784
RUN . ./libcomponent.sh && component_unpack "nginx" "1.16.0-1" --checksum c8e9546c7521b136863423c35d748ddc66bb59d65a157501df2c57254c2df3f8
RUN ln -sf /dev/stdout /opt/bitnami/nginx/logs/access.log
RUN ln -sf /dev/stderr /opt/bitnami/nginx/logs/error.log
RUN chmod -R g+rwX /opt/bitnami/nginx/conf
COPY rootfs /
RUN /postunpack.sh
ENV BITNAMI_APP_NAME="nginx" \
BITNAMI_IMAGE_VERSION="1.16.0-debian-9-r2" \
BITNAMI_IMAGE_VERSION="1.16.0-debian-9-r3" \
NAMI_PREFIX="/.nami" \
NGINX_ENABLE_CUSTOM_PORTS="no" \
NGINX_HTTPS_PORT_NUMBER="" \
NGINX_HTTP_PORT_NUMBER="" \
PATH="/opt/bitnami/nginx/sbin:$PATH"
VOLUME [ "/app", "/certs" ]
EXPOSE 8080 8443
VOLUME [ "/app" "/certs" ]
WORKDIR /app
USER 1001
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "/run.sh" ]

View File

@@ -5,5 +5,3 @@ services:
image: 'bitnami/nginx:1.16'
ports:
- '80:8080'
environment:
- NGINX_HTTP_PORT_NUMBER=8080

View File

@@ -111,7 +111,7 @@ nginx_config_http_port() {
local http_port=${1:-8080}
debug "Configuring default HTTP port..."
# TODO: find an appropriate NGINX parser to avoid 'sed calls'
sed -i -E "s/(listen\s+)[0-9]{1,5};/\1${http_port};/g" ${NGINX_CONFDIR}/nginx.conf
sed -i -E "s/(listen\s+)[0-9]{1,5};/\1${http_port};/g" "${NGINX_CONFDIR}/nginx.conf"
}
########################
@@ -180,7 +180,7 @@ nginx_initialize() {
else
# The "user" directive makes sense only if the master process runs with super-user privileges
# TODO: find an appropriate NGINX parser to avoid 'sed calls'
sed -i -E "s/(^user)/# \1/g" ${NGINX_CONFDIR}/nginx.conf
sed -i -E "s/(^user)/# \1/g" "${NGINX_CONFDIR}/nginx.conf"
fi
debug "Updating 'nginx.conf' based on user configuration..."

View File

@@ -0,0 +1,5 @@
{
"enableCustomPorts": "{{$global.env.NGINX_ENABLE_CUSTOM_PORTS}}",
"httpPort": "{{$global.env.NGINX_HTTP_PORT_NUMBER}}",
"httpsPort": "{{$global.env.NGINX_HTTPS_PORT_NUMBER}}"
}

View File

@@ -0,0 +1,64 @@
# based on http://brainspl.at/nginx.conf.txt
{{#if NGINX_DAEMON_USER}}{{#if NGINX_DAEMON_GROUP}}
user {{NGINX_DAEMON_USER}} {{NGINX_DAEMON_GROUP}};
{{/if}}{{/if}}
worker_processes auto;
error_log "{{NGINX_LOGDIR}}/error.log";
pid "{{NGINX_TMPDIR}}/nginx.pid";
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
add_header X-Frame-Options SAMEORIGIN;
client_body_temp_path "{{NGINX_TMPDIR}}/client_body" 1 2;
proxy_temp_path "{{NGINX_TMPDIR}}/proxy" 1 2;
fastcgi_temp_path "{{NGINX_TMPDIR}}/fastcgi" 1 2;
scgi_temp_path "{{NGINX_TMPDIR}}/scgi" 1 2;
uwsgi_temp_path "{{NGINX_TMPDIR}}/uwsgi" 1 2;
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log "{{NGINX_LOGDIR}}/access.log";
# no sendfile on OSX
sendfile on;
tcp_nopush on;
tcp_nodelay off;
#keepalive_timeout 0;
keepalive_timeout 65;
gzip on;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_proxied any;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
include "{{NGINX_CONFDIR}}/vhosts/*.conf";
# HTTP Server
server {
# port to listen on. Can also be set to an IP:PORT
listen {{NGINX_HTTP_PORT_NUMBER}};
location /status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
}
}

View File

@@ -46,8 +46,8 @@ Non-root container images add an extra layer of security and are generally recom
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/containers/how-to/understand-rolling-tags-containers/).
* [`1.16-ol-7`, `1.16.0-ol-7-r2` (1.16/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-nginx/blob/1.16.0-ol-7-r2/1.16/ol-7/Dockerfile)
* [`1.16-debian-9`, `1.16.0-debian-9-r2`, `1.16`, `1.16.0`, `1.16.0-r2`, `latest` (1.16/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-nginx/blob/1.16.0-debian-9-r2/1.16/debian-9/Dockerfile)
* [`1.16-ol-7`, `1.16.0-ol-7-r1` (1.16/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-nginx/blob/1.16.0-ol-7-r1/1.16/ol-7/Dockerfile)
* [`1.16-debian-9`, `1.16.0-debian-9-r3`, `1.16`, `1.16.0`, `1.16.0-r3`, `latest` (1.16/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-nginx/blob/1.16.0-debian-9-r3/1.16/debian-9/Dockerfile)
* [`1.16-rhel-7`, `0.0.0-rhel-7-r0` (1.16/rhel-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-nginx/blob/0.0.0-rhel-7-r0/1.16/rhel-7/Dockerfile)
# Get this image

View File

@@ -5,5 +5,3 @@ services:
image: 'bitnami/nginx:1.16'
ports:
- '80:8080'
environment:
- NGINX_HTTP_PORT_NUMBER=8080