Skip to content

Instantly share code, notes, and snippets.

View alexeyp0708's full-sized avatar

Alexey Pakhomov alexeyp0708

View GitHub Profile
@alexeyp0708
alexeyp0708 / createFromTpl.sh
Last active March 21, 2024 17:00
Creates a configuration file from a template where environment variables are replaced with values. See command `createFromTpl.sh -h`
#!/bin/sh
# Some of the code was borrowed from the NGINX docker image
# https://github.com/nginxinc/docker-nginx/blob/master/mainline/debian/20-envsubst-on-templates.sh
set -e
ME=$(basename "$0")
entrypoint_log() {