Skip to content

Nginx images for local and production environments.

License

Notifications You must be signed in to change notification settings

wayofdev/docker-nginx

Repository files navigation


Logo Logo


Build Status Latest Version Docker Pulls Software License Commits since latest release

Docker Image: Nginx

This image is used together with wayofdev/docker-php-dev and other WOD images, to create local development environment for our projects.

Screenshot

⚙️ Development

To install dependencies and start development you can check contents of our Makefile

→ Requirements

For testing purposes we use goss and dgoss, follow installation instructions on their official README


→ Building locally

Generating distributable Dockerfiles from yaml source code:

$ make generate

Building default image:

$ git clone git@github.com:wayofdev/docker-nginx.git
$ cd docker-nginx
$ make build

To build image, test it and then clean temporary files run:

$ make

Building all images:

$ make build IMAGE_TEMPLATE=dev-alpine
$ make build IMAGE_TEMPLATE=k8s-alpine

🧪 Testing

Testing default image:

$ make test

To test all images:

$ make test IMAGE_TEMPLATE=dev-alpine
$ make test IMAGE_TEMPLATE=k8s-alpine

→ Code quality tools

Run yamllint to validate all yaml files in project:

$ make lint-yaml

Run hadolint to validate created Dockerfiles:

$ make lint-docker

Run ansible-lint to validate project files:

$ make lint-ansible

🤝 License

Licence


🙆🏼‍♂️ Author Information

This repository was created in 2022 by lotyp / wayofdev.


🫡 Contributors

Supporters