docker-nginx/README.md

58 lines
842 B
Markdown
Raw Permalink Normal View History

2019-12-15 11:10:37 +00:00
# minimal nginx
2020-07-04 10:30:43 +00:00
![build](https://github.com/dcarrillo/docker-nginx/workflows/CI/badge.svg)
2019-12-15 11:10:37 +00:00
Nginx docker image with a minimal set of modules.
Current modules:
2020-07-04 10:30:43 +00:00
- stream
- http_ssl_module
- http_v2_module
- http_stub_status_module
2019-12-15 11:10:37 +00:00
## Configuration
Edit [conf.env](conf.env)
```bash
NGINX_VERSION=x.xx.x # Nginx version to build from
2019-12-15 11:10:37 +00:00
DOCKER_IMAGE=dcarrillo/nginx # Docker image
```
## Build
Build locally:
```bash
./build.sh
```
Build locally and upload the image to a registry (you must be logged in to the registry)
2019-12-15 11:10:37 +00:00
```bash
./build.sh --push
```
Build locally, tag the image as latest and upload it to a registry (you must be logged in to the registry)
2019-12-15 11:10:37 +00:00
```bash
./build.sh --push --latest
```
## Testing
Prerequisites:
- docker
- openssl
- curl
2019-12-15 11:10:37 +00:00
```bash
# build local image
./build.sh
# run tests
./tests/test.sh
```