From 7f744598f5232ba4c5f1c458d7911785ca67311d Mon Sep 17 00:00:00 2001 From: "m.nabokikh" Date: Sat, 30 Jan 2021 14:54:17 +0400 Subject: [PATCH] Add detailed description to docker-entrypoint.sh Signed-off-by: m.nabokikh --- docker-entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 739af9a3..def2baa4 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,6 +1,11 @@ #!/bin/sh -e ### Usage: /docker-entrypoint.sh +### * If command equals to "serve", config file for serving will be preprocessed using gomplate and saved to tmp dir. +### Example: docker-entrypoint.sh serve config.yaml = dex serve /tmp/dex-config.yaml-ABCDEFG +### * If command is not in the list of known dex commands, it will be executed bypassing entrypoint. +### Example: docker-entrypoint.sh echo "Hello!" = echo "Hello!" + command=$1 case "$command" in