Commit Graph

266 Commits

Author SHA1 Message Date
decentral1se f5951add54
Fix variables in print statement 2021-03-18 19:09:34 +01:00
decentral1se 005323ff3c
Add debug for SSH connect on init
Closes https://git.autonomic.zone/coop-cloud/abra/issues/109.
2021-03-18 18:55:04 +01:00
decentral1se 390e918417
Add missing `it` 2021-03-18 18:54:53 +01:00
decentral1se 87b71cb9d4
Show connection details on `abra server ls`
Closes https://git.autonomic.zone/coop-cloud/abra/issues/110.
2021-03-18 18:46:33 +01:00
decentral1se 6e61c08b2c
Handle undeployed state for version output summary
Closes https://git.autonomic.zone/coop-cloud/abra/issues/104.
2021-03-18 17:20:54 +01:00
decentral1se 54b6acc46c
Fix output for stack name 2021-03-18 17:19:43 +01:00
decentral1se e5e98d536a
Add --force for undeploy 2021-03-18 17:18:35 +01:00
decentral1se 8df91de3af
Add --force to deploy command
Closes https://git.autonomic.zone/coop-cloud/abra/issues/105.
2021-03-18 14:12:18 +01:00
decentral1se 7557966c98
Add debug logging for STACK_NAME 2021-03-17 14:12:59 +01:00
decentral1se d68444be9e
Mark release 2021-03-17 12:54:29 +01:00
3wc 8b4141670c Include git digest in dev `version` output
Re: #100
2021-03-16 12:54:42 +02:00
decentral1se 23c852125d
Listen to shellcheck and do things 2021-03-16 10:13:15 +01:00
decentral1se b04bfea1c7
Use local marker and scan services only once 2021-03-16 08:38:11 +01:00
decentral1se bc0ef0d6fc
Fix deployments when versions are missing 2021-03-16 07:32:31 +01:00
decentral1se 58b13d7528
Use app type naming and use yellow 2021-03-16 06:22:32 +01:00
decentral1se b0fca49ecb
Generalise top level deploy output 2021-03-16 06:19:52 +01:00
decentral1se 79dacf557e
Implement edge-case handling for versioning 2021-03-16 06:19:37 +01:00
decentral1se d6caf03301
Spacing for readability 2021-03-16 05:58:08 +01:00
decentral1se 9b90712d28
Look up image name and show it also 2021-03-16 05:57:01 +01:00
decentral1se 1dd3fe6fcd
Use COMPOSE var here 2021-03-16 05:56:52 +01:00
decentral1se 3b59adfe34
Vendor yq program 2021-03-16 05:47:13 +01:00
decentral1se 00c8a988e1
Fix parsing of stack_name/service concatenation 2021-03-16 05:04:05 +01:00
decentral1se 524fb6a44c
Use STACK_NAME instead of Gitea 2021-03-15 18:56:26 +01:00
decentral1se e99bedf9e4
WIP version output summary which handles services
See https://git.autonomic.zone/coop-cloud/organising/issues/47.
2021-03-15 18:30:37 +01:00
decentral1se bcc15ecdb0
Support dev upgrades on the CLI also 2021-03-15 17:03:01 +01:00
3wc 8cb6617a0f Automatically truncate suggested app name
Ref #83
2021-03-14 03:33:33 +02:00
3wc 1a649c56cb Docs & comments 2021-03-14 03:33:22 +02:00
3wc fd655274f8 Bomb out with Bash < 4
Ref #96
2021-03-14 03:24:13 +02:00
decentral1se 946d1a068d
Drop current version handling logic for deploy
New logic coming soon.

See https://git.autonomic.zone/coop-cloud/organising/issues/47#issuecomment-4231.
2021-03-13 20:23:53 +01:00
3wc e8651976ca Only load apps once, exciting 2× speed increase 2021-03-13 20:15:54 +02:00
3wc af52ba1fec Clean-up 🧹 2021-03-12 13:13:17 +02:00
3wc 08281891a1 Add --type filter to `abra <app> ls` 2021-03-12 13:10:35 +02:00
decentral1se 5bce042922
First steps to enable abra-hetzner
See https://git.autonomic.zone/coop-cloud/abra/issues/88.
2021-03-10 23:28:59 +01:00
decentral1se 3276c9fe47
Always choose the default IPv4 address for init'ing
Closes https://git.autonomic.zone/coop-cloud/abra/issues/91.
2021-03-10 22:23:38 +01:00
Luke Murphy 040374e781
List volumes/secrets when removing 2021-03-05 12:53:21 +01:00
Luke Murphy 621c8cd5c4
Fix volume/secret deletion logic
- Fix escaping of quotes
- Dont delete things unless options are passed
2021-03-04 19:21:38 +01:00
Luke Murphy 7434b67c34
Fix parens and ignore quote warning 2021-03-04 16:59:36 +01:00
Luke Murphy 17306a753b
Support volume and secret removal 2021-03-04 16:55:24 +01:00
Luke Murphy 2e3f4cabd8
Warn if unable to find version 2021-03-04 16:40:35 +01:00
Luke Murphy eec49d6dd1
Guard against length errors in app names
Closes https://git.autonomic.zone/coop-cloud/abra/issues/83.
2021-03-04 16:25:21 +01:00
Luke Murphy d6195ad6d7
Undercore `-` values in the domain too 2021-03-04 16:19:55 +01:00
Luke Murphy fd04c5a6e9
Support branch selection for app repo clones
Closes https://git.autonomic.zone/coop-cloud/abra/issues/80.
2021-03-04 16:01:56 +01:00
Luke Murphy 1c9d7282b2
Revert "Sort commands listing"
This reverts commit 99ab5bf369.

Woops, they cannot be sorted this way. Ignore me.
2021-03-04 15:50:27 +01:00
Luke Murphy dd9c485c66
Fix wording and wrap 2021-03-04 15:48:53 +01:00
Luke Murphy 99ab5bf369
Sort commands listing 2021-03-04 15:38:09 +01:00
Luke Murphy 25a0afed65
Fix indentation and, document local options only 2021-03-04 15:35:18 +01:00
Luke Murphy 65ce949e03
Bail out if versions match
Closes https://git.autonomic.zone/coop-cloud/abra/issues/87.
2021-03-04 13:20:58 +01:00
Luke Murphy 5931cbd791
Only throw away error but keep stdout 2021-03-04 13:20:45 +01:00
Luke Murphy 0bbff91722
Add service rollback
Closes https://git.autonomic.zone/coop-cloud/abra/issues/76.
2021-03-04 13:10:51 +01:00
Luke Murphy 7f5e753dfd
Re-factor version output logic and fix bug
It was showing empty strings for deployed versions it could not find.
Now, it will not change messages to output if it can not detect the
versions deployed (containers dont have the tag).
2021-03-04 13:10:00 +01:00
Luke Murphy d3776f4424
Warn on secret storage after generation
Closes https://git.autonomic.zone/coop-cloud/abra/issues/75.
2021-03-03 17:20:24 +01:00
Luke Murphy 544c4e86ba
Capture output for version checking
Closes https://git.autonomic.zone/coop-cloud/abra/issues/85.
2021-03-03 16:56:47 +01:00
Luke Murphy 516309b478
Show command to run 2021-03-03 16:54:01 +01:00
Luke Murphy dfd7e29a30
Give spacing to blocks 2021-03-03 16:51:25 +01:00
Luke Murphy bb30fa28da
Fix wording 2021-03-03 16:50:59 +01:00
Luke Murphy 152dfe9349
Support basic version checking
Closes https://git.autonomic.zone/coop-cloud/abra/issues/82.
2021-03-02 13:06:56 +01:00
Luke Murphy 98e674b8e8
Add version and digest showing
See https://git.autonomic.zone/coop-cloud/abra/issues/82.
2021-03-02 12:04:25 +01:00
Luke Murphy 5bc702bf96
Propagate new version around 2021-03-01 11:44:58 +01:00
3wc e5b2a426f0 Add shared backup helpers 2021-02-24 17:03:28 +02:00
3wc 29b22fe162 Display subcommand help with -h/--help
Closes #78
2021-02-11 15:02:37 +02:00
3wc d2cdb11fcc Tweak INFO messages, update CHANGELOG 2021-02-08 13:43:39 +02:00
3wc cef06a82a6 abra-commands.sh → abra.sh 2021-01-30 16:10:40 +02:00
3wc 9a630a0440 Prevent accidental `cd` when loading app vars 2021-01-30 16:10:40 +02:00
3wc 1c6651b18b Fix `secret generate` help
[ci skip]
2021-01-30 16:10:13 +02:00
3wc f90e1d154c Add container IDs to debug log 2021-01-24 19:11:22 +02:00
3wc 6cc265e931 Tweak info/debug output 2021-01-24 19:11:22 +02:00
3wc 854ae23f60 Initial --verbose / --debug 2021-01-24 19:11:22 +02:00
3wc 43e7672725 Prevent accidental `cd` when loading app vars 2021-01-24 19:11:11 +02:00
3wc 8a08de51e4 Alert on missing secrets, re-add . → _ STACK_NAME 2021-01-09 15:07:39 +02:00
3wc 5d84cef63c `app restore` 2021-01-09 13:36:32 +02:00
3wc eda5198904 Add scaffolding for per-app `backup` commands
See #70
2021-01-09 13:36:32 +02:00
3wc a4a3dccd66 Add global --skip-check / --skip-update commands 2021-01-09 13:36:32 +02:00
3wc a2d249e3a1 Fix `abra app ls` with `*` server 2021-01-02 00:34:44 +02:00
3wc d6b4a4744f Fix `abra app ls` for app → type 2021-01-01 23:00:20 +02:00
Luke Murphy aa59c1ad43
Make secret generation more robust
Closes https://git.autonomic.zone/coop-cloud/abra/issues/68.
2021-01-01 18:54:41 +01:00
Luke Murphy f5c8ee1136
Merge auto/generate and use --secrets
Closes https://git.autonomic.zone/coop-cloud/abra/issues/58.
2021-01-01 17:31:21 +01:00
3wc 9a17817cc8 Tiny tweak to `abra help` advice 2021-01-01 17:57:36 +02:00
3wc fff4b10a41 Gettin some help_
See #50
2021-01-01 15:09:49 +02:00
3wc 886ae5b7f2 Fix help function names 2021-01-01 01:46:09 +02:00
3wc 5411c85793 Don't require weird app_ls format for abra help 2021-01-01 01:42:17 +02:00
3wc caa315e361 Add per-subcommand help 2021-01-01 01:13:17 +02:00
3wc e6b24fe65c Change -v option to `version` subcommand 2021-01-01 01:10:03 +02:00
Luke Murphy 406b9e374e
Only output length if using it
Closes https://git.autonomic.zone/coop-cloud/abra/issues/67.
2020-12-31 18:16:01 +01:00
Luke Murphy ce0e0e893c
Use plain usage only when erroring out
Closes https://git.autonomic.zone/coop-cloud/abra/issues/65.
2020-12-31 18:12:01 +01:00
Luke Murphy 44d3ac3a1c
Support pwqgen/pwgen checking
Closes https://git.autonomic.zone/coop-cloud/abra/issues/66.
2020-12-31 18:10:13 +01:00
Luke Murphy 5da9f26076
Remove old function
Follow on from 3936d6afc0.
2020-12-31 18:06:20 +01:00
Luke Murphy 55324524ca
Don't cut since `export ...` isn't in the env file
Closes https://git.autonomic.zone/coop-cloud/abra/issues/69.
2020-12-31 16:55:33 +01:00
3wc 29cc392dff Prompt on `app .. config` if $EDITOR is un-set
Closes #41
2020-12-31 12:52:44 +02:00
3wc 0179f600f5 Change -v option to `version` subcommand 2020-12-31 11:47:12 +02:00
3wc 6761574d74 Add "app name" concept, and rename APP → TYPE
Ref #47
2020-12-30 21:26:17 +02:00
3wc 8384af8b95 First foray into <domain> → <app> 2020-12-30 13:47:41 +02:00
3wc b9e97688d6 ... and update docopt 2020-12-30 13:43:17 +02:00
3wc 1055805c8d Merge duplicate `run` commands
Closes #57
2020-12-30 13:33:57 +02:00
Luke Murphy 11c50ae98d
Use set -a/+a and docker env file formats
Closes https://git.autonomic.zone/coop-cloud/abra/issues/40.
2020-12-30 11:22:58 +01:00
decentral1se 34775f306b Merge branch 'main' into merge-logging 2020-12-30 11:21:03 +01:00
Luke Murphy 375a4dd29d
Re-add require_app_latest for custom commands
Revision of 67cce192df.

See https://git.autonomic.zone/coop-cloud/abra/pulls/54#issuecomment-2300.
2020-12-30 11:19:55 +01:00
Luke Murphy 3936d6afc0
Merge logs/multilogs and avoid multitail external 2020-12-29 23:22:46 +01:00
Luke Murphy 67cce192df
Don't do more cloning that necessary 2020-12-29 17:06:49 +01:00
Luke Murphy 3a9e141b24
Pull latest changes
Closes https://git.autonomic.zone/coop-cloud/abra/issues/42.
2020-12-29 17:06:32 +01:00
Luke Murphy ebfe7ca4e8
Suppress output of clone and do better logging 2020-12-29 17:05:30 +01:00