Use short app names

This commit is contained in:
Luke Murphy 2021-03-02 07:31:52 +01:00
parent f284e7e11c
commit 7adea254ed
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 16 additions and 11 deletions

View File

@ -87,23 +87,25 @@ In order to have your Co-op cloud installation automagically provision SSL certi
$ abra app new --server example.com --domain traefik.example.com traefik $ abra app new --server example.com --domain traefik.example.com traefik
``` ```
We can then choose `traefik` as the app name.
You will want to take a look at your generated configuration and tweak the `LETS_ENCRYPT_EMAIL` value: You will want to take a look at your generated configuration and tweak the `LETS_ENCRYPT_EMAIL` value:
```bash ```bash
$ abra app traefik.example.com config $ abra app traefik config
``` ```
This is the required environment variables that you can configure and are injected into the app configuration when deployed. This is the required environment variables that you can configure and are injected into the app configuration when deployed.
``` ```
$ abra app traefik.example.com deploy $ abra app traefik deploy
``` ```
We can then check that everything came up as expected. We can then check that everything came up as expected.
```bash ```bash
$ abra app traefik.example.com ps # status check $ abra app traefik ps # status check
$ abra app traefik.example.com logs # logs watch $ abra app traefik logs # logs watch
``` ```
## Deploy Nextcloud ## Deploy Nextcloud
@ -116,10 +118,12 @@ Let's create a new Nextcloud app.
$ abra app new --server example.com --domain cloud.example.com nextcloud $ abra app new --server example.com --domain cloud.example.com nextcloud
``` ```
We can then choose `nextcloud` as the app name.
And we need to generate secrets for the app: database connection password, root password and admin password. And we need to generate secrets for the app: database connection password, root password and admin password.
```bash ```bash
$ abra app cloud.example.com secret generate --all $ abra app nextcloud secret generate --all
``` ```
!!! warning !!! warning
@ -132,24 +136,25 @@ $ abra app cloud.example.com secret generate --all
Then we can deploy the Nextcloud. Then we can deploy the Nextcloud.
```bash ```bash
$ abra app cloud.example.com deploy $ abra app nextcloud deploy
``` ```
And once again, we can watch to see that things come up correctly. And once again, we can watch to see that things come up correctly.
```bash ```bash
$ abra app nextcloud.example.com ps # status check $ abra app nextcloud ps # status check
$ abra app nextcloud.example.com logs # logs watch $ abra app nextcloud logs # logs watch
``` ```
!!! note !!! note
Since Nextcloud takes some time to come up live, you can run the `ps` command under `watch` like so. Since Nextcloud takes some time to come up live, you can run the `ps`
command under `watch` like so.
```bash ```bash
$ watch abra app nextcloud.example.com ps $ watch abra app nextcloud ps
``` ```
And you can wait until you see that all containers have the "Running" state. And you can wait until you see that all containers have the "Running" state.
Your Traefik instance should now detect that a new app is coming up and generate SSL certificates for it. Your `traefik` instance will detect that a new app is coming up and generate SSL certificates for it.