update 1.24.0

This commit is contained in:
ElevenNotes
2023-04-26 09:15:34 +02:00
parent 7c05bc5b41
commit 33bd88a672
9 changed files with 73 additions and 94 deletions

View File

@@ -1,6 +1,6 @@
# :: Build
FROM alpine:latest as nginx
ENV NGINX_VERSION 1.22.1
ENV NGINX_VERSION 1.24.0
ENV ADD_MODULE_HEADERS_MORE_NGINX_VERSION 0.33
RUN set -ex; \
@@ -100,10 +100,10 @@
USER root
# :: prepare
RUN set -ex; \
mkdir -p /nginx; \
mkdir -p /nginx/etc; \
mkdir -p /nginx/www; \
RUN set -ex; \
mkdir -p /nginx; \
mkdir -p /nginx/etc; \
mkdir -p /nginx/www; \
mkdir -p /nginx/ssl; \
mkdir -p /nginx/cache; \
mkdir -p /nginx/run;
@@ -124,7 +124,7 @@
adduser --uid 1000 -D -S -h /nginx -s /sbin/nologin -G nginx nginx;
# :: copy root filesystem changes
COPY ./rootfs /
COPY ./rootfs /
# :: docker -u 1000:1000 (no root initiative)
RUN set -ex; \
@@ -136,8 +136,8 @@
VOLUME ["/nginx/etc", "/nginx/www", "/nginx/ssl"]
# :: Monitor
RUN set -ex; chmod +x /usr/local/bin/healthcheck.sh
HEALTHCHECK CMD /usr/local/bin/healthcheck.sh || exit 1
RUN set -ex; chmod +x /usr/local/bin/healthcheck.sh
HEALTHCHECK CMD /usr/local/bin/healthcheck.sh || exit 1
# :: Start
RUN set -ex; chmod +x /usr/local/bin/entrypoint.sh

View File

@@ -6,7 +6,7 @@
# :: Builder
FROM arm32v7/alpine:latest as nginx
COPY --from=builder qemu-arm-static /usr/bin
ENV NGINX_VERSION 1.22.1
ENV NGINX_VERSION 1.24.0
ENV ADD_MODULE_HEADERS_MORE_NGINX_VERSION 0.33
RUN set -ex; \

View File

@@ -6,7 +6,7 @@
# :: Builder
FROM arm64v8/alpine:latest as nginx
COPY --from=builder qemu-aarch64-static /usr/bin
ENV NGINX_VERSION 1.22.1
ENV NGINX_VERSION 1.24.0
ENV ADD_MODULE_HEADERS_MORE_NGINX_VERSION 0.33
RUN set -ex; \

View File

@@ -1,4 +0,0 @@
#!/bin/bash
curl -Lo manifest-tool https://github.com/estesp/manifest-tool/releases/download/v0.9.0/manifest-tool-linux-amd64
chmod +x manifest-tool
./manifest-tool push from-spec multi-arch-manifest.yaml

View File

@@ -1,16 +0,0 @@
image: 11notes/nginx:stable
manifests:
- image: 11notes/nginx:amd64-1.22.1
platform:
architecture: amd64
os: linux
- image: 11notes/nginx:arm64v8-1.22.1
platform:
architecture: arm64
os: linux
variant: v8
- image: 11notes/nginx:arm32v7-1.22.1
platform:
architecture: arm
os: linux
variant: v7

View File

@@ -1,9 +1,9 @@
server {
listen 8080 default_server;
server_name _;
root /nginx/www/default;
listen 8080 default_server;
server_name _;
root /nginx/www/default;
location / {
try_files $uri /index.html;
}
location / {
try_files $uri /index.html;
}
}

View File

@@ -1,62 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<title>11notes/nginx:stable</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inconsolata" />
<head>
<title>11notes/nginx:stable</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inconsolata" />
<style>
html,
body {
height: 100%;
}
html,
body {
height: 100%;
}
body {
margin: 0;
}
body {
margin: 0;
}
.container {
height: 100%;
padding: 0;
margin: 0;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.container {
height: 100%;
padding: 0;
margin: 0;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.content {
align-self: center;
}
.content {
align-self: center;
}
.text {
font-size:1em; cursor:default;
font-family:'Inconsolata';
}
.comment {
font-size:1em; cursor:default;
font-family:'Inconsolata';
color:darkgreen;
font-style:italic;
}
.text {
font-size:1em; cursor:default;
font-family:'Inconsolata';
}
.comment {
font-size:1em; cursor:default;
font-family:'Inconsolata';
color:darkgreen;
font-style:italic;
}
</style>
</head>
<body>
<div class="container">
<div class="content">
<div class="text">
docker run --name nginx \<br />
&emsp;-v volume-etc:/nginx/etc \<br />
&emsp;-v volume-www:/nginx/www \<br />
&emsp;-v volume-ssl:/nginx/ssl:ro \<br />
&emsp;-d 11notes/nginx:[tag]
</div>
</div>
</div>
</body>
</head>
<body>
<div class="container">
<div class="content">
<div class="text">
docker run --name nginx \<br />
&emsp;-v volume-etc:/nginx/etc \<br />
&emsp;-v volume-www:/nginx/www \<br />
&emsp;-v volume-ssl:/nginx/ssl:ro \<br />
&emsp;-d 11notes/nginx:[tag]
</div>
</div>
</div>
</body>
</html>

View File

@@ -1,8 +1,8 @@
#!/bin/ash
if [ -z "$1" ]; then
set -- "nginx" \
-g \
'daemon off;'
fi
if [ -z "$1" ]; then
set -- "nginx" \
-g \
'daemon off;'
fi
exec "$@"
exec "$@"

View File

@@ -1,2 +1,2 @@
#!/bin/sh
curl --max-time 5 -kILs --fail http://localhost:8080
curl --max-time 5 -kILs --fail http://localhost:8080