You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Vladimir Zorin ffa9c08267
continuous-integration/drone/push Build is passing Details
Add djot lua module
3 months ago
apk Initial commit 3 months ago
scripts Add djot lua module 3 months ago
src Incorporate redstats into the package bundle 3 months ago
.drone.yml Initial commit 3 months ago
Dockerfile Incorporate redstats into the package bundle 3 months ago
README.md Add djot lua module 3 months ago
supervisor.lua Initial commit 3 months ago

README.md

Openresty alpine-based docker image with bells & whistles

Build Status Release

Description

Dockerfile + APKBUILD files to build an opinionated openresty container image. Openresty is built from sources (see apk directory). For the list of included/excluded nginx modules, see openresty APKBUILD file. The resulting image will also include the following Lua modules:

  • inspect
  • pgmoon
  • libcidr-ffi
  • redstats
  • djot
  • lua-resty-http
  • lua-resty-session
  • lua-resty-jwt
  • lua-resty-jit-uuid

Usage

There is a builtin nginx config. Nginx is configured to include every *.conf file from /etc/nginx/conf.d/ (files from this dir included above nginx http config block) and /etc/nginx/vhosts/ directories, so you can just mount a host directory with your virtual host configs to containerrs /etc/nginx/vhosts directory.

If NGINX_VHOST_TEMPLATES environment variable is defined, before actually starting nginx, the entrypoint script looks for files with .tmpl extension in the NGINX_VHOST_TEMPLATES directory.

Each .tmpl file gets rendered by the entrypoint script, and the output goes to the file with the same name, but .conf extension under /etc/nginx/vhosts/ dir. For example, if NGINX_VHOST_TEMPLATES is set to /templates and you have /templates/first.tmpl template file, the rendered content will be in the /etc/nginx/vhosts/first.conf file.

Every occurrence of {{ENV_VAR_NAME}} in a template is replaced with the value of the corresponding environment variable. Its pretty much the same what envsubst does, but gettext alpine package adds 7Mb to the image. Besides, you cant change the capture pattern in envsubst.

Origin

The origin repository is located at git.deviant.guru. Github copy is a mirror.