Hack that hack together

This commit is contained in:
Luke Murphy 2021-02-14 15:03:09 +01:00
parent 06fe2a46e7
commit a4f9306990
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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`]

1
abra.sh Normal file
View File

@ -0,0 +1 @@
envsubst < compose.yml > compose.yml