From a9e12cf9598c20931168bf2996a848d5fb754526 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Tue, 7 Apr 2020 12:06:49 +0200 Subject: [PATCH] Proof out post-extra and pre-req --- DESIGN.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/DESIGN.md b/DESIGN.md index 6e0937f..6aa1ce2 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -31,11 +31,31 @@ flexibility. So, advanced application packagers can leverage Ansible if they need it and for simple applications or pre-packaged applications, the work will already be done. +## Pre-requisites + +On the Dokku host. + +```bash +$ dokku plugin:install https://github.com/decentral1se/dokku-ansible-deploy.git +$ dokku plugin:install-dependencies +$ dokku ansible-deploy:vault-password $APP # add per-app vault password for secrets decrypting +``` + +In the application repository (still to be implemented). + +```bash +$ echo "TODO" +``` + ## Triggers ### post-extract -TODO. +1. Check if there is a `deploy.d` folder in the application repository +1. If not, just output a message about skipping and stop execution +1. If so, create an internal deploy folder (e.g. `$DOKKU_LIB_ROOT/data/deploy.d/$APP`) +1. Copy over all application deploy files to the internal folder (e.g. `cp -r "$TMPDIR/deploy.d/." "$DOKKU_LIB_ROOT/data/deploy.d/$APP"`) +1. Generate a vault password file and set correct permissions for protection ### pre-deploy