A small helper container to initialize dynamic pods.
Usage
The container uses the following environment variables:
TARGET_DIR : the target directory to extract files to. Defaults to /
TEMPLATE_DIR : template directory whose contents will be copied to TARGET_DIR. Ignored if empty
PATCHES : a space-separated list of archive-file urls. These archives will be extracted to TARGET_DIR. Ignored if empty
Example
This is an example k8s Pod configuration which will copy all contents from /template to /app and extract the provided archives to /app.
Note the shared volume temp-app-data which is necessary for the init-container's changes in /app to be persistent for the main application container.