Sign inSign up

binhnv/base

By binhnv

•Updated over 7 years ago

A base Docker image

Image
0

644

binhnv/base repository overview

⁠docker-base

This is an extension of Phusion Docker Base Image⁠. Some added features are:

  • Custom init script to add new environment variables
  • Init scripts to render Jinja2 template files.
  • Kerberos client, Python 3 Pip and Dockerize⁠

⁠How to use this image

As the name suggests, this image should be used as a base image to build other Docker images as normal.

⁠Template

By default, at startup and before any user's service started, the system look at ${MY_TEMPLATE_DIR} directory and

  • Finds any files with .zip extension and unpack each one of them to that directory
  • Finds recursively all files with .j2 extension, render each of them using Jinja2 template engine and save result to output file. The output file path is the result of joining root directory (/) with the relative path of template file from ${MY_TEMPLATE_DIR} directory. Here is an example
Input FileOutput File
${MY_TEMPLATE_DIR}/foo.tpl.j2/foo.tpl
${MY_TEMPLATE_DIR}/usr/local/app/file.conf.j2/usr/local/app/file.conf
${MY_TEMPLATE_DIR}/usr/local/app/bar.confNONE - File doesnt have .j2 extension is ignored

The above behavior can be turn off by set MY_TEMPLATE_ENABLE environment variable to "false"

Tag summary

Content type

Image

Digest

Size

125.6 MB

Last updated

over 7 years ago

docker pull binhnv/base