Proof out post-extra and pre-req

This commit is contained in:
Luke Murphy 2020-04-07 12:06:49 +02:00
parent 71ded3907c
commit a9e12cf959
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -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 need it and for simple applications or pre-packaged applications, the work will
already be done. 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 ## Triggers
### post-extract ### 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 ### pre-deploy