Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch latest changes from the original repo #1

Open
wants to merge 256 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
256 commits
Select commit Hold shift + click to select a range
1fe92b8
Updated mainline nginx to 1.15.7 and njs to 0.2.6.
thresheek Nov 27, 2018
b71469a
Updated stable nginx to 1.14.2 and njs to 0.2.6.
thresheek Dec 5, 2018
baa050d
Updated mainline nginx to 1.15.8 and njs to 0.2.7.
thresheek Dec 25, 2018
2364fdc
Update to Alpine 3.9
J0WI Jan 29, 2019
7890fc2
Updated mainline nginx to 1.15.9 and njs to 0.2.8
thresheek Feb 27, 2019
97b6511
Updated mainline nginx to 1.15.10 and njs to 0.3.0
thresheek Mar 26, 2019
7d7c67f
Updated mainline nginx to 1.15.11
thresheek Apr 9, 2019
e5123ee
Updated mainline nginx to 1.15.12 and njs to 0.3.1
thresheek Apr 16, 2019
0501f0b
alpine: use nginx.org-provided packages.
thresheek Mar 11, 2019
42b9a87
mainline: get rid of duplication in variables versions
thresheek Apr 23, 2019
9a052e0
Updated stable nginx to 1.16.0
thresheek Apr 23, 2019
61973ac
Updated generate-stackbrew-library.sh
thresheek Apr 23, 2019
6f41f97
Updated generate-stackbrew-library.sh to use new versioning scheme
thresheek Apr 23, 2019
9674d10
Updated mainline nginx to 1.17.0 and njs to 0.3.2
thresheek May 21, 2019
c308ce3
Updated njs for stable images to 0.3.2
thresheek May 21, 2019
b749353
Made the UID/GID consistent throughout the variants.
thresheek Jun 4, 2019
0e47be3
Remove dash from su command
alessfg Jun 6, 2019
c10dfd0
Change tabs to spaces
alessfg Jun 6, 2019
1ebbaf6
stable alpine: ping to revision 417 of http://hg.nginx.org/pkg-oss.
thresheek Jun 7, 2019
011ca42
Fetch Alpine package over https
J0WI Jun 20, 2019
17c4abd
Fix typo in README.md
surjikal Jun 30, 2019
976f38e
Remove curl dependency from Alpine varaint
J0WI Jun 24, 2019
f9fbfcb
Updated nginx to 1.17.1 and njs to 0.3.3
thresheek Jul 1, 2019
5abbd4a
Update Alpine to 3.10
J0WI Jun 20, 2019
7956a3f
Upgrade to Debian Buster
J0WI Jul 10, 2019
c817e28
Updated mainline nginx to 1.17.2
thresheek Jul 23, 2019
952de68
Updated nginx to 1.17.3 and njs to 0.3.4
defanator Aug 15, 2019
f5a5bc9
Updated stable nginx to 1.16.1 and njs to 0.3.4
bdossantos Aug 15, 2019
e3bbc11
Updated njs to 0.3.5
defanator Aug 15, 2019
0ad6faa
alpine: bump pkg-oss revision to fetch njs 0.3.5 sources
thresheek Aug 27, 2019
23a9904
Updated mainline nginx to 1.17.4
thresheek Sep 24, 2019
fe97d69
Updated nginx to 1.17.5 and njs to 0.3.6
defanator Oct 22, 2019
7413661
alpine: forced installing nginx packages from our repos
thresheek Nov 13, 2019
a973c22
Updated nginx to 1.17.6 and njs to 0.3.7
thresheek Nov 19, 2019
0f2f331
Updated mainline nginx to 1.17.7
thresheek Jan 9, 2020
5971de3
Updated nginx to 1.17.8 and njs to 0.3.8
thresheek Jan 21, 2020
f7738ed
Updated njs to 0.3.8 in stable nginx
thresheek Jan 21, 2020
5c15613
Updated nginx to 1.17.9 and njs to 0.3.9
thresheek Mar 4, 2020
594ce7a
Update nginx to 1.17.10 and Alpine to 3.11
J0WI Apr 14, 2020
cab4f85
Updated stable nginx to 1.18.0
choyri Apr 22, 2020
b6120b1
Updated generate-stackbrew-library.sh
choyri Apr 22, 2020
abef566
Listen on ipv6 by default
thresheek Apr 21, 2020
87f9340
Provide curl inside images to simplify service discovery registration
thresheek Apr 21, 2020
70e4486
Updated njs to 0.4.0
thresheek Apr 23, 2020
8ec60b8
Update supported architectures (fix #405)
J0WI Apr 30, 2020
1acd7f6
Reduced the number of layers in debian-based images
thresheek May 25, 2020
e36b4f5
Introduced entrypoint
thresheek May 26, 2020
47f11ab
Enable ipv6 listens on the containers where ipv6 is detected
thresheek May 26, 2020
cd98e75
Run envsubst on container start to make templating easier
thresheek May 26, 2020
6c7dde5
Updated mainline nginx to 1.19.0 and njs to 0.4.1
thresheek May 26, 2020
41e6b2c
ipv6-listen: deal with edge cases and fixes
thresheek May 28, 2020
383bbaa
20-env-subst: guard against whitespaces in file/folder names
thresheek May 29, 2020
0b607f3
docker-entrypoint: multiple changes
thresheek Jun 1, 2020
2ef3fa6
ipv6-listen: detect if default.conf is writable
thresheek Jun 2, 2020
d8cbd8e
Use /bin/sh in shebang instead of /usr/bin/env
TimWolla Jun 12, 2020
a86ccdc
Add NGINX_ENTRYPOINT_QUIET_LOGS environment variable
alexandresalome Jun 8, 2020
172571e
ipv6 listen: put r/o filesystem alert to stderr
thresheek Jun 17, 2020
6086122
Reworded entrypoint scripts error messages to avoid confusion
thresheek Jun 17, 2020
3dcf654
Fixed typo introduced in 172571e53c1c6dacc86bcef2b09abf91c451bd69
thresheek Jun 18, 2020
ea63c8e
Updated mainline nginx to 1.19.1 and njs to 0.4.2
thresheek Jul 10, 2020
a88587d
Updated njs to 0.4.2 for stable images
thresheek Jul 10, 2020
793319d
Made all entrypoint scripts honour NGINX_ENTRYPOINT_QUIET_LOGS in full
thresheek Jul 10, 2020
9774b52
Update nginx to 1.19.2 and njs to 0.4.3 on mainline images
thresheek Aug 13, 2020
dded647
Updated njs to 0.4.3 on stable images
thresheek Aug 13, 2020
aa41dde
Moved mainline alpine images to 3.12
thresheek Aug 13, 2020
0dc809f
Update nginx version to 1.19.3
Oct 5, 2020
5488180
Updated njs to 0.4.4 on stable images
thresheek Oct 5, 2020
a4208f8
Fix typo in 10-listen-on-ipv6-by-default.sh
gurdiga Aug 31, 2020
aebdace
Update nginx to 1.19.4
J0WI Nov 3, 2020
deff8fb
Fixed njs package versioning
thresheek Nov 5, 2020
d5f4d23
Bump 1.18.0 PKG_RELEASE from 1 to 2
paskal Nov 10, 2020
c84a1a2
Lower the severity of logging messages on ipv6-enabling script.
thresheek Nov 11, 2020
4a6623a
Fixed stable alpine builds on non-amd64
thresheek Nov 12, 2020
56a20ba
Added update script and template to make changes management easier
thresheek Nov 18, 2020
4370fa1
Renegerated targets via update.sh
thresheek Nov 18, 2020
f836ba8
Updated generate-stackbrew-library.sh to pick up naming changes
thresheek Nov 18, 2020
08d37de
debian: don't build arm64 packages since nginx.org provides them now
thresheek Nov 18, 2020
3fb70dd
Use SIGQUIT instead of SIGTERM for graceful shutdown of nginx
pscheid92 Nov 24, 2020
c411fde
Updated mainline nginx to 1.19.5
thresheek Nov 24, 2020
3d618e3
Added a script to simplify images mirroring to AWS ECR
thresheek Dec 4, 2020
14e7394
10-liste-on-ipv6-by-default: use "info" instead of error
thresheek Dec 15, 2020
41156d8
Updated mainline nginx to 1.19.6 and njs to 0.5.0
thresheek Dec 15, 2020
fc5d895
Provided a way to install third-party modules in a sane manner
thresheek Nov 2, 2020
734e1de
Alpine 3.13
J0WI Jan 29, 2021
5c93520
docker-entrypoint: use natural sort for scripts to launch
thresheek Feb 1, 2021
2f28591
README: mentioned nginx.org changelog
thresheek Feb 1, 2021
2b06409
Introduced an entrypoint script to autotune the number of worker proc…
thresheek Nov 25, 2020
fa2213a
Updated nginx to 1.19.7 and njs to 0.5.1 for mainline
thresheek Feb 16, 2021
e559b4d
modules: Added a hack to make build system fetch a requested nginx ve…
thresheek Feb 17, 2021
636b7e3
Updated and improved third-party modules documentation
thresheek Mar 2, 2021
dcaaf66
Updated mainline nginx to 1.19.8 and njs to 0.5.2
thresheek Mar 9, 2021
d1ed2dd
Made 30-tune-worker-processes.sh more robust and error-prone.
thresheek Mar 11, 2021
e7bab21
modules: use the same workaround for Alpine as we had for Debian
thresheek Mar 12, 2021
511c0fe
modules: check out an explicit pkg-oss tag.
thresheek Mar 30, 2021
0f300ed
Updated mainline nginx to 1.19.9 and njs to 0.5.3
thresheek Mar 30, 2021
e129306
modules: strip debian version from PKG_RELEASE
thresheek Apr 7, 2021
464886a
Updated mainline nginx to 1.19.10
thresheek Apr 13, 2021
010bcbf
Alpine template: nginx.org now provides aarch64 packages.
thresheek Apr 20, 2021
ab8516e
Updated stable nginx to 1.20.0
thresheek Apr 20, 2021
1612733
generate-stackbrew-library.sh: bump stable to 1.20
thresheek Apr 21, 2021
be61420
sync-awsecr.sh: bump stable to 1.20
thresheek May 11, 2021
f3fe494
Updated nginx to 1.20.1 and 1.21.0
thresheek May 25, 2021
fe33fad
modules/Dockerfile.alpine: added coreutils to use proper tr
thresheek Jun 2, 2021
6a9fffa
third party: fixed builds with non-alphanumeric characters in module …
thresheek Jun 2, 2021
1c123ec
modules: updated the list of supported modules
thresheek Jun 2, 2021
4fb9623
modules: Dockerfile.alpine: set SETFATTR=true to skip setfattr.
thresheek Jul 2, 2021
f958fba
Updated nginx to 1.21.1 and njs to 0.6.1 on mainline builds.
thresheek Jul 6, 2021
75bc83e
Updated nginx to 1.21.2 and njs to 0.6.2 on mainline builds.
choyri Sep 6, 2021
d496baf
Updated nginx mainline to 1.21.3
Exagone313 Sep 7, 2021
abc9db0
Update mainline base image to Debian Bullseye
lucacome Sep 20, 2021
4afdc5e
Lint update.sh
lucacome Sep 21, 2021
7be6b74
Fix typo
RobertHeim Oct 20, 2021
328e0f3
Alpine: don't depend on mercurial to fetch packaging sources.
thresheek Oct 22, 2021
2decc81
Update nginx mainline to 1.21.4, njs to 0.7.0
lucacome Nov 2, 2021
9fcda7c
Alpine: verify the checksum of pkg-oss tarball
thresheek Nov 9, 2021
57f73af
Made curl fail on non-200 responses.
thresheek Nov 9, 2021
fe1fff5
Remove i386 from packages built by upstream for Debian
lucacome Nov 11, 2021
ef8e991
Remove deprecated sks-keyservers for debian.
PMExtra Nov 11, 2021
09a6385
Moved stable nginx builds to Debian 11 "Bullseye" and Alpine Linux 3.14.
thresheek Nov 15, 2021
b0e153a
Updated stable nginx to 1.20.2 and njs to 0.7.0.
thresheek Nov 16, 2021
930c2e2
Update mainline base image to Alpine 3.15
lucacome Nov 30, 2021
d07b71b
Changed build dependencies to pcre2
thresheek Dec 24, 2021
3a71051
Update nginx mainline to 1.21.5, njs to 0.7.1
lucacome Dec 29, 2021
5caf453
Updated the pkg-oss tarball checksum.
thresheek Dec 29, 2021
0156112
Updated mainline Dockerfiles to pick up latest changes.
thresheek Dec 29, 2021
d660ee4
Updated pkg-oss check sum (the tag was updated on hg.nginx.org).
thresheek Jan 25, 2022
135978e
Updated Dockerfiles.
thresheek Jan 25, 2022
6f0396c
Update nginx mainline to 1.21.6, njs to 0.7.2
shmux8 Jan 25, 2022
92973a3
Revert pcre2-related changes to the stable alpine images.
thresheek Jan 25, 2022
d039609
Bump njs revisions for mainline and stable.
thresheek May 17, 2022
6e580a6
Updated stable nginx to 1.22.0 and njs to 0.7.4.
thresheek May 25, 2022
40923d1
update.sh: be a bit more BSD-friendly.
thresheek May 25, 2022
b18fb32
Updated Dockerfiles.
thresheek May 25, 2022
8801813
generate-stackbrew-library.sh: updated stable version.
thresheek May 25, 2022
7ff24ba
Update mainline to Alpine 3.16
jnoordsij May 26, 2022
04226fe
Update NGINX to 1.23, NJS to 0.7.5
lucacome Jun 21, 2022
d4a47bc
Moved stable to njs 0.7.5.
thresheek Jun 22, 2022
3e472ae
generate-stackbrew-library.sh: updated mainline version.
thresheek Jun 22, 2022
a563dda
sync-awsecr.sh: bumped mainline/stable.
thresheek Jun 27, 2022
3581b67
modules: added xslscript.pl to debian-based image.
thresheek Jun 29, 2022
f3d86e9
Updated NGINX to 1.23.1, NJS to 0.7.6
thresheek Jul 19, 2022
1dca42f
Introduced alpine-slim image variant.
thresheek Sep 9, 2022
6675128
Source entrypoint files with .envsh extension
JuniorJPDJ Jul 19, 2022
6b94dda
docker-entrypoint: don't close fd 3.
eriksjolund Sep 11, 2022
4680ae8
30-tune-worker-processes.sh: cgroups2 workaround
rockdrilla Sep 9, 2022
0d38d49
Better ENV variables handling.
dfndr-1 Sep 13, 2022
ed42652
Updated entrypoints changed with the recent commits.
thresheek Sep 13, 2022
34f8bab
feat: add optional filter for environment variables passed to envsubst
karlderkaefer Sep 15, 2022
9897369
Updated entrypoints changed with the previous commit.
thresheek Sep 27, 2022
cc7ca22
docker-entrypoint.sh: Use a portable source command.
thresheek Sep 27, 2022
7e0541f
20-envsubst-on-templates.sh: use awk to get environment.
thresheek Sep 28, 2022
fef5123
Updated NGINX to 1.22.1, 1.23.2, NJS to 0.7.7.
thresheek Oct 19, 2022
2f944f8
Update mainline to Alpine 3.17
jnoordsij Nov 23, 2022
456bf33
Update stable to Alpine 3.17
jnoordsij Nov 23, 2022
b87bbb8
Based alpine and alpine-perl variants off slim one.
thresheek Nov 4, 2022
436c6e3
Based perl variants off default ones.
thresheek Nov 4, 2022
914af51
Regenerated after last commits.
thresheek Nov 4, 2022
f273683
Fixed Alpine signing key checksum check.
thresheek Nov 30, 2022
ce83222
Updated njs to 0.7.9.
thresheek Nov 30, 2022
4785a60
Regenerated after last commits.
thresheek Nov 30, 2022
564ae3c
generate-stackbrew-library.sh: build alpine-slim on all arches.
thresheek Dec 13, 2022
5ce65c3
Updated mainline NGINX to 1.23.3.
thresheek Dec 13, 2022
38e2690
Debian-based dockerfiles: don't depend on deprecated apt-key.
thresheek Jan 9, 2023
761fffe
Regenerated after last commit.
thresheek Jan 9, 2023
1bacdf4
adds the Code of Conduct file
dwmcallister Mar 1, 2023
beac75e
Added distribution versions to generated tags.
thresheek Feb 15, 2023
73a5aca
Updated mainline nginx to 1.23.4.
thresheek Mar 28, 2023
7f1ef35
Updated njs for stable to 0.7.11.
thresheek Mar 28, 2023
1a8d87b
Updated stable nginx to 1.24.0.
thresheek Apr 11, 2023
b053826
20-envsubst-on-templates.sh: added stream templating.
iain-henderson May 18, 2023
ee6b833
Bump NGINX mainline to 1.25.0, NJS to 0.7.12
lucacome May 23, 2023
123ef33
Updated pkgosschecksum to fetch sources for 1.25.0 builds.
thresheek May 24, 2023
3591b5e
Updated mainline entrypoints after b053826f5ddc6cccd43ada260c80777443…
thresheek May 24, 2023
0cfc938
Bumped mainline version to 1.25 in auxiliary scripts.
thresheek May 24, 2023
2b0c285
Added a local resolver entrypoint script.
thresheek May 25, 2023
9f5b41a
Added alpine-slim to sync script.
thresheek May 26, 2023
526d1db
update.sh: copy *.envsh to target directories.
thresheek May 30, 2023
10fa7fc
Updated entrypoints and dockerfiles after recent commits.
thresheek May 30, 2023
b3fc0e6
Add no-network option
J0WI Jun 2, 2023
1d46d90
Updated mainline nginx to 1.25.1.
thresheek Jun 13, 2023
dc87ccb
Moved mainline nginx to Debian 12 "Bookworm".
thresheek Jun 13, 2023
4ac589e
Debian: move to groupadd/useradd.
thresheek Jun 13, 2023
5673d69
fix unbound variable issue in local resolver entrypoint script
euven Jun 7, 2023
7870605
Updated entrypoints and dockerfiles after recent commits.
thresheek Jun 13, 2023
14607f5
Added Github CI and functional tests.
thresheek Jun 13, 2023
5d6be2e
Updated README.md
thresheek Jun 14, 2023
7c10a4a
Updated Alpine to 3.18
thresheek Jun 17, 2023
3e71631
Updated njs to 0.8.0.
thresheek Jul 11, 2023
4d700b9
Update Dockerfile to work with other version of nginx
rptmat57 Jul 10, 2023
46a0d48
Update Dockerfile to work with other version of nginx
rptmat57 Jul 10, 2023
c300144
modules: use NGINX_FROM_IMAGE to specify which image to start with.
thresheek Jul 13, 2023
00edc58
CI: Added a test for modules builds.
thresheek Jul 13, 2023
22e65b3
Documented a way to redefined base modules image.
thresheek Jul 13, 2023
a4d9a5c
Updated the modules versions.
thresheek Jul 13, 2023
2879b26
fix: address Alpine bug and shell linter warnings
alessfg Aug 2, 2023
3aac9b1
docs: Add community related docs
alessfg Jul 24, 2023
321a13a
Updated mainline nginx to 1.25.2.
thresheek Aug 15, 2023
4b0d808
Alpine: check if length of $tempDir is non-zero.
thresheek Aug 28, 2023
4bf0763
Updated mainline nginx to 1.25.3 and njs to 0.8.2.
thresheek Oct 24, 2023
6cb3307
Replace COPY with bind mount in Alpine modules example
jnoordsij Jan 8, 2024
7399d22
Replace COPY with bind mount in default modules example
jnoordsij Jan 8, 2024
5b37ab0
Use Docker BuildKit for modules test buils
jnoordsij Jan 9, 2024
610fb56
Add requirement of BuildKit to modules README
jnoordsij Jan 9, 2024
77dafa6
use apt-get instead of apt in modules/Dockerfile
netsandbox Jan 13, 2023
5b7624a
use "-o pipefail" for RUN commands in modules Dockerfiles
netsandbox Jan 13, 2023
75d5e98
Add IPv6 support for local-resolvers substitution script
serverwentdown Jan 4, 2024
418a6ea
Add tests
serverwentdown Jan 4, 2024
a06a168
CI: added templates-resolver-ipv6 to the test runs.
thresheek Feb 6, 2024
e230e12
CI: fixed templates-resolver-ipv6 tests.
thresheek Feb 6, 2024
1f22761
Updated mainline nginx to 1.25.4 and njs to 0.8.3.
thresheek Feb 14, 2024
e161146
Specify architecture to pull in the sync script.
thresheek Mar 8, 2024
67270a2
Specify distribution versions tags in sync script.
thresheek Mar 8, 2024
6f3d62b
generate-stackbrew-library.sh: simplify.
thresheek Mar 8, 2024
9cb2788
Added an otel module image variant.
thresheek Dec 12, 2023
29d5001
Updated mainline to 1.25.5.
oxpa Apr 16, 2024
308c492
Update mainline to Alpine 3.19
jnoordsij Dec 7, 2023
b7a3296
Keep repo key registered in alpine, and simplify Dockerfiles
orgads Mar 21, 2024
ed439d2
Updated stable nginx to 1.26.0 and moved to bookworm.
thresheek Apr 23, 2024
435f9c2
generate-stackbrew-library: moved stable to 1.26
thresheek Apr 23, 2024
56cb1dd
sync-awsecr: moved stable to 1.26.
thresheek Apr 23, 2024
3fb7e2e
Introduce NJS_RELEASE to hold the version for njs package release.
thresheek Apr 23, 2024
33588b1
Updated remaining Dockerfiles after b7a32965681.
thresheek Apr 23, 2024
23bcf12
Debian: updated GPG keys dir.
thresheek Apr 23, 2024
66c0f94
Updated dockerfiles after 23bcf128302
thresheek Apr 23, 2024
5bf2e65
Updated GPG key dirs in templates missed in 23bcf128302
thresheek Apr 23, 2024
3142ac3
Updated the modules list and versions.
thresheek Apr 30, 2024
9abe4ae
Bump njs releases to hopefully fix builds on arm32v5
thresheek May 3, 2024
b5e8310
Updated nginx versions to 1.26.1 and 1.27.0
thresheek May 29, 2024
3180cdb
Regenerated after last commits
thresheek May 29, 2024
94a27ac
Fixed failure to build packages from source on recent Alpine versions
thresheek Jun 20, 2024
1717492
Tests: temporarily remove ipv6 check
thresheek Jun 20, 2024
a6f7d14
Updated GPG keys used to sign packages
thresheek Jun 21, 2024
0eef651
Updated nginx versions to current
Aug 14, 2024
e78cf70
Run update.sh to pick up changes after previous commit.
Aug 14, 2024
ab376cc
Update mainline to Alpine 3.20
jnoordsij May 22, 2024
2396849
Alpine: install curl on architectures we build from source.
thresheek Aug 14, 2024
1c99bf1
Update stable to Alpine 3.20
jnoordsij May 29, 2024
8f11e7e
Use Alpine-related commit for detecting version in generate-stackbrew…
jnoordsij Aug 15, 2024
d92a4f0
Use Alpine-related commit for detecting version in sync-awsecr.sh
thresheek Aug 15, 2024
8b08a26
15-local-resolvers: strip trailing whitespace
thresheek Aug 16, 2024
479f90a
modules/Dockerfile.alpine: install curl
thresheek Aug 17, 2024
f0fc31f
Use packaging sources to build packages on non-mainstream architectures.
thresheek Aug 16, 2024
829c3fb
modules: pkg-oss moved to GitHub.
thresheek Sep 4, 2024
d8e9176
pkg-oss moved to GitHub.
thresheek Sep 4, 2024
d3ac5b0
update.sh: minor wording changes to accomodate for latest changes.
thresheek Sep 4, 2024
6a4c0cb
Updated mainline to 1.27.2.
oxpa Oct 2, 2024
d21b4f2
Updated mainline nginx to 1.27.3.
thresheek Nov 26, 2024
9bef259
Add riscv64 support
mengzhuo Aug 15, 2024
da92b32
Added a CI job to sync images to AWS ECR Public.
thresheek Dec 11, 2024
767c5b4
CI: bump docker-library/bashbrew to contemporary version
thresheek Dec 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: ""
assignees: ""
---

### Describe the bug

A clear and concise description of what the bug is.

### To reproduce

Steps to reproduce the behavior:

1. Deploy the NGINX Docker image using ...
2. View output/logs/configuration on ...
3. See error

### Expected behavior

A clear and concise description of what you expected to happen.

### Your environment

- Version/release of Docker and method of installation (e.g. Docker Desktop / Docker Server)
- Version/tag of the NGINX Docker image (e.g. `nginx:alpine`)
- Target deployment platform (e.g. OpenShift / Kubernetes / Docker Compose / etc...)

### Additional context

Add any other context about the problem here.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: ""
assignees: ""
---

### Is your feature request related to a problem? Please describe

A clear and concise description of what the problem is. Ex. I'm always frustrated when ...

### Describe the solution you'd like

A clear and concise description of what you want to happen.

### Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

### Additional context

Add any other context or screenshots about the feature request here.
12 changes: 12 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
### Proposed changes

Describe the use case and detail of the change. If this PR addresses an issue on GitHub, make sure to include a link to that issue using one of the [supported keywords](https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue) here in this description (not in the title of the PR).

### Checklist

Before creating a PR, run through this checklist and mark each as complete:
- [ ] I have read the [`CONTRIBUTING`](https://github.com/nginxinc/docker-nginx/blob/master/CONTRIBUTING.md) document
- [ ] I have run `./update.sh` and ensured all entrypoint/Dockerfile template changes have been applied to the relevant image entrypoint scripts & Dockerfiles
- [ ] If applicable, I have added tests that prove my fix is effective or that my feature works
- [ ] If applicable, I have checked that any relevant tests pass after adding my changes
- [ ] I have updated any relevant documentation
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: GitHub CI

on:
pull_request:
push:
schedule:
- cron: 0 10 * * Mon

defaults:
run:
shell: 'bash -Eeuo pipefail -x {0}'

jobs:

generate-jobs:
name: Generate Jobs
runs-on: ubuntu-latest
outputs:
strategy: ${{ steps.generate-jobs.outputs.strategy }}
steps:
- uses: actions/checkout@v3
- uses: docker-library/[email protected]
- id: generate-jobs
name: Generate Jobs
run: |
strategy="$(GITHUB_REPOSITORY=nginx "$BASHBREW_SCRIPTS/github-actions/generate.sh")"
strategy="$(GITHUB_REPOSITORY=nginx "$BASHBREW_SCRIPTS/github-actions/munge-i386.sh" -c <<<"$strategy")"
echo "strategy=$strategy" >> "$GITHUB_OUTPUT"
jq . <<<"$strategy" # sanity check / debugging aid

test:
needs: generate-jobs
strategy: ${{ fromJson(needs.generate-jobs.outputs.strategy) }}
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Prepare Environment
run: ${{ matrix.runs.prepare }}
- name: Pull Dependencies
run: ${{ matrix.runs.pull }}
- name: Build ${{ matrix.name }}
run: ${{ matrix.runs.build }}
- name: History ${{ matrix.name }}
run: ${{ matrix.runs.history }}
- name: Test ${{ matrix.name }}
run: ${{ matrix.runs.test }}
- name: '"docker images"'
run: ${{ matrix.runs.images }}
44 changes: 44 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Sync DockerHub with AWS ECR

on:
workflow_dispatch:
schedule:
- cron: 23 20 * * *

defaults:
run:
shell: 'bash -Eeuo pipefail -x {0}'

jobs:
sync-awsecr:
name: Sync Docker Hub to AWS ECR Public
runs-on: ubuntu-24.04
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
with:
role-to-assume: ${{ secrets.AWS_ROLE_PUBLIC_ECR }}
aws-region: us-east-1

- name: Login to Amazon ECR Public
id: login-ecr-public
uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1
with:
registry-type: public

- name: Login to Docker Hub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build, tag, and push docker image to Amazon ECR Public
run: |
./sync-awsecr.sh > sync-real.sh
chmod +x sync-real.sh
./sync-real.sh
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.bak
11 changes: 11 additions & 0 deletions .test/config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
imageTests+=(
[nginx]='
ipv6
static
templates
templates-resolver
templates-resolver-ipv6
workers
modules
'
)
2 changes: 2 additions & 0 deletions .test/tests/ipv6/expected-std-out.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h1>Welcome to nginx!</h1>
10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
52 changes: 52 additions & 0 deletions .test/tests/ipv6/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#!/bin/bash

[ "$DEBUG" ] && set -x

set -eo pipefail

# check if we have ipv6 available
if [ ! -f "/proc/net/if_inet6" ]; then
exit 0
fi

dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"

image="$1"

clientImage='buildpack-deps:buster-curl'
# ensure the clientImage is ready and available
if ! docker image inspect "$clientImage" &> /dev/null; then
docker pull "$clientImage" > /dev/null
fi

cid="$(docker run -d "$image")"
trap "docker rm -vf $cid > /dev/null" EXIT

_request() {
local method="$1"
shift

local proto="$1"
shift

local url="${1#/}"
shift

if [ "$(docker inspect -f '{{.State.Running}}' "$cid" 2>/dev/null)" != 'true' ]; then
echo >&2 "$image stopped unexpectedly!"
( set -x && docker logs "$cid" ) >&2 || true
false
fi

docker run --rm \
--link "$cid":nginx \
"$clientImage" \
curl -fsSL -X"$method" --connect-to '::nginx:' "$@" "$proto://example.com/$url"
}

. "$HOME/oi/test/retry.sh" '[ "$(_request GET / --output /dev/null || echo $?)" != 7 ]'

# Check that we can request /
_request GET http '/index.html' | grep '<h1>Welcome to nginx!</h1>'

docker logs $cid 2>&1 | grep "Enabled listen on IPv6"
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@

user nginx;
worker_processes 1;
worker_processes auto;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
load_module modules/ndk_http_module.so;
load_module modules/ngx_http_echo_module.so;
load_module modules/ngx_http_set_misc_module.so;

error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
}


http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
Expand All @@ -21,12 +22,13 @@ http {

access_log /var/log/nginx/access.log main;

sendfile on;
#tcp_nopush on;

keepalive_timeout 65;

#gzip on;
server {
listen 80 default_server;
location /hello {
set $raw "hello";
set_sha1 $digest $raw;

include /etc/nginx/conf.d/*.conf;
echo $digest;
}
}
}
71 changes: 71 additions & 0 deletions .test/tests/modules/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#!/bin/bash

set -eo pipefail

dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"

echo $dir

image="$1"

case "$image" in
*-perl)
;;
*)
echo >&2 "skipping non-leaf image: $image"
exit
;;
esac

dockerfile="Dockerfile"
case "$image" in
*alpine*)
dockerfile="$dockerfile.alpine"
;;
esac

clientImage='buildpack-deps:buster-curl'
# ensure the clientImage is ready and available
if ! docker image inspect "$clientImage" &> /dev/null; then
docker pull "$clientImage" > /dev/null
fi

# Create an instance of the container-under-test
modulesImage="$("$HOME/oi/test/tests/image-name.sh" librarytest/nginx-template "$image")"
docker build --build-arg NGINX_FROM_IMAGE="$image" --build-arg ENABLED_MODULES="ndk set-misc echo" -t "$modulesImage" -f "modules/$dockerfile" "$GITHUB_WORKSPACE/modules"

serverImage="${modulesImage}-sme"
"$HOME/oi/test/tests/docker-build.sh" "$dir" "$serverImage" <<EOD
FROM $modulesImage
COPY dir/nginx.conf.sme /etc/nginx/nginx.conf
EOD

cid="$(docker run -d "$serverImage")"
trap "docker rm -vf $cid > /dev/null" EXIT

_request() {
local method="$1"
shift

local proto="$1"
shift

local url="${1#/}"
shift

if [ "$(docker inspect -f '{{.State.Running}}' "$cid" 2>/dev/null)" != 'true' ]; then
echo >&2 "$image stopped unexpectedly!"
( set -x && docker logs "$cid" ) >&2 || true
false
fi

docker run --rm \
--link "$cid":nginx \
"$clientImage" \
curl -fsSL -X"$method" --connect-to '::nginx:' "$@" "$proto://example.com/$url"
}

. "$HOME/oi/test/retry.sh" '[ "$(_request GET / --output /dev/null || echo $?)" != 7 ]'

# Check that we can request /
_request GET http '/hello' | grep 'aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d'
46 changes: 46 additions & 0 deletions .test/tests/static/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/bin/bash

[ "$DEBUG" ] && set -x

set -eo pipefail

dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"

image="$1"

clientImage='buildpack-deps:buster-curl'
# ensure the clientImage is ready and available
if ! docker image inspect "$clientImage" &> /dev/null; then
docker pull "$clientImage" > /dev/null
fi

# Create an instance of the container-under-test
cid="$(docker run -d "$image")"
trap "docker rm -vf $cid > /dev/null" EXIT

_request() {
local method="$1"
shift

local proto="$1"
shift

local url="${1#/}"
shift

if [ "$(docker inspect -f '{{.State.Running}}' "$cid" 2>/dev/null)" != 'true' ]; then
echo >&2 "$image stopped unexpectedly!"
( set -x && docker logs "$cid" ) >&2 || true
false
fi

docker run --rm \
--link "$cid":nginx \
"$clientImage" \
curl -fsSL -X"$method" --connect-to '::nginx:' "$@" "$proto://example.com/$url"
}

. "$HOME/oi/test/retry.sh" '[ "$(_request GET / --output /dev/null || echo $?)" != 7 ]'

# Check that we can request /
_request GET http '/index.html' | grep '<h1>Welcome to nginx!</h1>'
Loading