the examples are meant to build the following nginx containers
- docker
- vault
the following certs either in certs/ or in your vault secret
- repo access
- certs/nginx-repo.crt
- certs/nginx-repo.key
- default tls cert to use
- certs/nginx-default.crt
- certs/nginx-default.key
if you don't have a default cert you can run:
. init.sh
new_cert myhost.domain.com
if you don't have a vault you can run: local-vault
. init.sh
menu
#build_nginx [registry] [type] [tag] [secret]
build_nginx registry.domain.com/nginx-plus latest mynginx-secret
includes:
- pre-commit
- go
- docker
- terraform
- terraform-docs
don't forget to add your git user config
git config --global user.name "myuser"
git config --global user.email "myuser@domain.com"
checking for secrets as well as linting is performed by git pre-commit with the module requirements handled in the devcontainer.
testing pre-commit hooks:
# test pre commit manually
pre-commit run -a -v
# use it from a helper
. init.sh
pre_commit