From a4f9306990091812ab132750b4b181f572298dbc Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 14 Feb 2021 15:03:09 +0100 Subject: [PATCH] Hack that hack together --- .env.sample | 6 ++++-- README.md | 7 +++++++ abra.sh | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 abra.sh diff --git a/.env.sample b/.env.sample index 42f6370..b18f7cf 100644 --- a/.env.sample +++ b/.env.sample @@ -1,6 +1,8 @@ -TYPE=${REPO_NAME_KEBAB} +TYPE=container -DOMAIN=${REPO_NAME_KEBAB}.example.com +DOMAIN=example.com LETS_ENCRYPT_ENV=production PORT=5000 + +IMAGE=foo/bar:latest diff --git a/README.md b/README.md index 065c894..fdbcfa3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,14 @@ # container +> status: experimental + Deploy a single container. +Because docker swarm refuses to allow end-users to substitute the image name +with env vars, this app uses an absolutely heinous hack of +[envsubst](https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html)'ing +the compose.file with the incoming env vars. + ## Basic usage 1. Set up Docker Swarm and [`abra`] diff --git a/abra.sh b/abra.sh new file mode 100644 index 0000000..16c3211 --- /dev/null +++ b/abra.sh @@ -0,0 +1 @@ +envsubst < compose.yml > compose.yml