2019-12-15 12:10:37 +01:00
|
|
|
# minimal nginx
|
|
|
|
|
2020-07-04 12:30:43 +02:00
|
|
|

|
|
|
|
|
2025-02-07 18:48:14 +01:00
|
|
|
Nginx docker image with a minimal set of modules. The image is based on the official Nginx image and it is built from source.
|
2019-12-15 12:10:37 +01:00
|
|
|
|
|
|
|
Current modules:
|
|
|
|
|
2020-07-04 12:30:43 +02:00
|
|
|
- stream
|
|
|
|
- http_ssl_module
|
|
|
|
- http_v2_module
|
|
|
|
- http_stub_status_module
|
2019-12-15 12:10:37 +01:00
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
Edit [conf.env](conf.env)
|
|
|
|
|
|
|
|
```bash
|
2019-12-15 17:57:44 +01:00
|
|
|
NGINX_VERSION=x.xx.x # Nginx version to build from
|
2019-12-15 12:10:37 +01:00
|
|
|
DOCKER_IMAGE=dcarrillo/nginx # Docker image
|
|
|
|
```
|
|
|
|
|
|
|
|
## Build
|
|
|
|
|
|
|
|
Build locally:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./build.sh
|
|
|
|
```
|
|
|
|
|
2023-03-16 20:35:42 +01:00
|
|
|
Build locally and upload the image to a registry (you must be logged in to the registry)
|
2019-12-15 12:10:37 +01:00
|
|
|
|
|
|
|
```bash
|
|
|
|
./build.sh --push
|
|
|
|
```
|
|
|
|
|
2023-03-16 20:35:42 +01:00
|
|
|
Build locally, tag the image as latest and upload it to a registry (you must be logged in to the registry)
|
2019-12-15 12:10:37 +01:00
|
|
|
|
|
|
|
```bash
|
|
|
|
./build.sh --push --latest
|
|
|
|
```
|
|
|
|
|
|
|
|
## Testing
|
|
|
|
|
|
|
|
Prerequisites:
|
|
|
|
|
2022-07-25 20:47:36 +02:00
|
|
|
- docker
|
|
|
|
- openssl
|
|
|
|
- curl
|
2019-12-15 12:10:37 +01:00
|
|
|
|
|
|
|
```bash
|
|
|
|
# build local image
|
|
|
|
./build.sh
|
|
|
|
|
|
|
|
# run tests
|
|
|
|
./tests/test.sh
|
|
|
|
```
|