65ba113696
Lower Docker req to 19, make sure we test locally
...
Ref #15
``` $ docker --version
Docker version 19.03.11, build 42e35e6
```
But abra works. So I think 19 might be sufficient?
Also, wondering if we should add `DOCKER_CONTEXT=default` to that check,
to make sure we're not querying a remote server. (Semi-related question
- should we also check remote Docker versions?)
2021-03-21 15:39:50 +02:00
36dd6b5eff
Simplify require_foo
commands
2021-03-20 23:17:05 +02:00
2f1f51bad1
Check for docker version
...
Closes https://git.autonomic.zone/coop-cloud/abra/issues/15 .
2021-03-20 22:00:02 +01:00
bada24f3f6
Add warning to README too
2021-03-20 21:44:26 +01:00
2d5afd8149
Bump warning to the top and use emojis
2021-03-20 21:43:35 +01:00
dfb949eecc
Specify and wrap
2021-03-20 21:42:04 +01:00
49771980a6
Add changes warning
2021-03-20 21:41:27 +01:00
7e31184bd6
Add add version check command
...
Closes https://git.autonomic.zone/coop-cloud/abra/issues/108 .
2021-03-20 21:35:28 +01:00
49226f1640
Change warning to reflect version check scenarioj
2021-03-20 21:35:13 +01:00
4251c32b30
Re-word new app language to emphasise config editing
...
See https://git.autonomic.zone/coop-cloud/abra/issues/111#issuecomment-4407 .
2021-03-20 21:24:38 +01:00
ece5385a38
Merge branch 'fix-subcommand-select' into main
...
Fix merge conflict in docopt generation + change log entry.
2021-03-20 21:18:34 +01:00
35d5df14aa
Fix subcommand selection..
...
..by sorting the list of subcommand function names in descending order
of how many '_' are in them. This means that `abra app <app> version`
will always be matched before `abra version`.
Ref #108
2021-03-20 19:07:02 +02:00
1c437b99eb
Fix status checking
2021-03-18 20:10:42 +01:00
9580b2dd7d
Add entry
2021-03-18 19:46:43 +01:00
f382765f29
Show correct status for missing contexts
...
Closes https://git.autonomic.zone/coop-cloud/abra/issues/99 .
2021-03-18 19:45:30 +01:00
f5951add54
Fix variables in print statement
2021-03-18 19:09:34 +01:00
2b4efc2c61
Quote that
2021-03-18 18:57:00 +01:00
8ab854c822
Add log entry
2021-03-18 18:55:44 +01:00
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
390e918417
Add missing it
2021-03-18 18:54:53 +01:00
c5ccfa0fa1
Add entry
2021-03-18 18:47:13 +01:00
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
89bd18a76b
Add change log entries
2021-03-18 17:21:16 +01:00
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
54b6acc46c
Fix output for stack name
2021-03-18 17:19:43 +01:00
e5e98d536a
Add --force for undeploy
2021-03-18 17:18:35 +01:00
8df91de3af
Add --force to deploy command
...
Closes https://git.autonomic.zone/coop-cloud/abra/issues/105 .
2021-03-18 14:12:18 +01:00
7557966c98
Add debug logging for STACK_NAME
2021-03-17 14:12:59 +01:00
fa5d3ae3a1
Document release process
2021-03-17 12:59:09 +01:00
d68444be9e
Mark release
2021-03-17 12:54:29 +01:00
f7bc8efabe
Update to latest when upgrading
2021-03-17 12:53:02 +01:00
f5284ba725
Point to installer for hacking
2021-03-17 12:50:02 +01:00
293d3ff558
Merge pull request 'Show git digest in abra version
if we're running a development version' ( #103 ) from digest-version into main
...
Reviewed-on: https://git.autonomic.zone/coop-cloud/abra/pulls/103
2021-03-17 12:48:45 +01:00
c00319ab01
Update CHANGELOG
2021-03-16 12:55:47 +02:00
8b4141670c
Include git digest in dev version
output
...
Re: #100
2021-03-16 12:54:42 +02:00
23c852125d
Listen to shellcheck and do things
2021-03-16 10:13:15 +01:00
b4eae2e5e5
Add missing quote
2021-03-16 09:24:21 +01:00
9e953319cf
Get label parsing done correctly
2021-03-16 09:23:13 +01:00
0814fa9146
Add export to the output also
2021-03-16 09:04:42 +01:00
0e1b6c858b
Add change log entry
2021-03-16 08:58:12 +01:00
28618bd3ac
Add packager helper script
2021-03-16 08:57:05 +01:00
b04bfea1c7
Use local marker and scan services only once
2021-03-16 08:38:11 +01:00
bc0ef0d6fc
Fix deployments when versions are missing
2021-03-16 07:32:31 +01:00
16c91fedd1
Add newline back
2021-03-16 07:00:23 +01:00
9f5945094c
Document new dev update command
2021-03-16 06:59:35 +01:00
76513a1f35
Add change log entry
2021-03-16 06:51:35 +01:00
86eb8d7fde
Handle existing files use-case for dev installer
...
Closes https://git.autonomic.zone/coop-cloud/abra/issues/98 .
2021-03-16 06:51:10 +01:00
e31b3d3173
Add change log entry
2021-03-16 06:25:29 +01:00
58b13d7528
Use app type naming and use yellow
2021-03-16 06:22:32 +01:00
b0fca49ecb
Generalise top level deploy output
2021-03-16 06:19:52 +01:00
79dacf557e
Implement edge-case handling for versioning
2021-03-16 06:19:37 +01:00
d6caf03301
Spacing for readability
2021-03-16 05:58:08 +01:00
9b90712d28
Look up image name and show it also
2021-03-16 05:57:01 +01:00
1dd3fe6fcd
Use COMPOSE var here
2021-03-16 05:56:52 +01:00
29953c17d9
Add change log entry
2021-03-16 05:48:08 +01:00
3b59adfe34
Vendor yq program
2021-03-16 05:47:13 +01:00
00c8a988e1
Fix parsing of stack_name/service concatenation
2021-03-16 05:04:05 +01:00
524fb6a44c
Use STACK_NAME instead of Gitea
2021-03-15 18:56:26 +01:00
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
0d98c442a2
Add change log entry
2021-03-15 17:04:14 +01:00
bcc15ecdb0
Support dev upgrades on the CLI also
2021-03-15 17:03:01 +01:00
a617629a7a
Lowercase that
2021-03-15 16:54:54 +01:00
f7ae400eb3
Use makefile for releasing installer
2021-03-15 16:54:33 +01:00
7141d364e1
Zomg lol fix my typo
2021-03-15 10:07:17 +01:00
057ce223f1
Fix link
2021-03-15 10:06:50 +01:00
7511b25e47
Update installation docs, release new installer
...
[ci skip]
2021-03-15 10:35:06 +02:00
62b447d61f
Update changelog
...
[ci skip]
2021-03-14 14:40:57 +02:00
88d2a75575
Add --dev to installer, to grab git version
2021-03-14 14:39:11 +02:00
8cb6617a0f
Automatically truncate suggested app name
...
Ref #83
2021-03-14 03:33:33 +02:00
1a649c56cb
Docs & comments
2021-03-14 03:33:22 +02:00
fd655274f8
Bomb out with Bash < 4
...
Ref #96
2021-03-14 03:24:13 +02:00
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
e8651976ca
Only load apps once, exciting 2× speed increase
2021-03-13 20:15:54 +02:00
af52ba1fec
Clean-up 🧹
2021-03-12 13:13:17 +02:00
499c08c374
Update CHANGELOG
2021-03-12 13:10:50 +02:00
08281891a1
Add --type filter to abra <app> ls
2021-03-12 13:10:35 +02:00
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
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
040374e781
List volumes/secrets when removing
2021-03-05 12:53:21 +01:00
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
7434b67c34
Fix parens and ignore quote warning
2021-03-04 16:59:36 +01:00
17306a753b
Support volume and secret removal
2021-03-04 16:55:24 +01:00
2e3f4cabd8
Warn if unable to find version
2021-03-04 16:40:35 +01:00
cf2308cdd7
Point to script
2021-03-04 16:31:18 +01:00
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
d6195ad6d7
Undercore -
values in the domain too
2021-03-04 16:19:55 +01:00
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
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
dd9c485c66
Fix wording and wrap
2021-03-04 15:48:53 +01:00
99ab5bf369
Sort commands listing
2021-03-04 15:38:09 +01:00
25a0afed65
Fix indentation and, document local options only
2021-03-04 15:35:18 +01:00
44e22db11b
Add change log entry
2021-03-04 13:27:32 +01:00
3321010089
Add change log README entry
2021-03-04 13:24:13 +01:00
e04c4626f2
Update change log
2021-03-04 13:22:57 +01:00
65ce949e03
Bail out if versions match
...
Closes https://git.autonomic.zone/coop-cloud/abra/issues/87 .
2021-03-04 13:20:58 +01:00
5931cbd791
Only throw away error but keep stdout
2021-03-04 13:20:45 +01:00
0bbff91722
Add service rollback
...
Closes https://git.autonomic.zone/coop-cloud/abra/issues/76 .
2021-03-04 13:10:51 +01:00
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
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
544c4e86ba
Capture output for version checking
...
Closes https://git.autonomic.zone/coop-cloud/abra/issues/85 .
2021-03-03 16:56:47 +01:00
516309b478
Show command to run
2021-03-03 16:54:01 +01:00
dfd7e29a30
Give spacing to blocks
2021-03-03 16:51:25 +01:00
bb30fa28da
Fix wording
2021-03-03 16:50:59 +01:00
044de5824b
Drop whitespace
2021-03-03 16:49:58 +01:00
00cdce7bd2
Update CHANGELOG
...
[ci skip]
2021-03-02 20:34:35 +02:00
f163d4b0fa
Add script to auto-generate app catalogue
2021-03-02 20:33:14 +02:00
e0032fb74a
Add change log entry
2021-03-02 13:07:00 +01:00
152dfe9349
Support basic version checking
...
Closes https://git.autonomic.zone/coop-cloud/abra/issues/82 .
2021-03-02 13:06:56 +01:00
5a95ae97a0
Add changelog entry
2021-03-02 12:06:14 +01:00
98e674b8e8
Add version and digest showing
...
See https://git.autonomic.zone/coop-cloud/abra/issues/82 .
2021-03-02 12:04:25 +01:00
b655cf20be
Make README less vague
...
Closes https://git.autonomic.zone/coop-cloud/abra/issues/79 .
2021-03-02 11:53:55 +01:00
5bc702bf96
Propagate new version around
2021-03-01 11:44:58 +01:00
4bd842db66
Mark new release of abra
2021-03-01 11:41:44 +01:00
a8f7faddb9
Fix typo
2021-03-01 11:38:31 +01:00
e5b2a426f0
Add shared backup helpers
2021-02-24 17:03:28 +02:00
29b22fe162
Display subcommand help with -h/--help
...
Closes #78
2021-02-11 15:02:37 +02:00
c082645da0
Remove test commit
2021-02-09 08:35:52 +01:00
156d5d8fba
Merge pull request 'abra-commands.sh → abra.sh, make configs type-level' ( #77 ) from move-configs into main
...
Reviewed-on: https://git.autonomic.zone/coop-cloud/abra/pulls/77
2021-02-09 08:31:45 +01:00
d2cdb11fcc
Tweak INFO messages, update CHANGELOG
2021-02-08 13:43:39 +02:00
cef06a82a6
abra-commands.sh → abra.sh
2021-01-30 16:10:40 +02:00
9a630a0440
Prevent accidental cd
when loading app vars
2021-01-30 16:10:40 +02:00
1c6651b18b
Fix secret generate
help
...
[ci skip]
2021-01-30 16:10:13 +02:00
5f7df4694f
Test failed drone build
2021-01-29 14:02:26 +02:00
7feeab24ec
Add RocketChat notifications for failed builds
2021-01-29 13:44:55 +02:00
1a6688cfbf
Merge branch 'debug_logging' into main
2021-01-24 21:51:59 +02:00
f90e1d154c
Add container IDs to debug log
2021-01-24 19:11:22 +02:00
6cc265e931
Tweak info/debug output
2021-01-24 19:11:22 +02:00
854ae23f60
Initial --verbose / --debug
2021-01-24 19:11:22 +02:00
43e7672725
Prevent accidental cd
when loading app vars
2021-01-24 19:11:11 +02:00
4e913c426d
Follow same style
2021-01-09 20:07:16 +01:00
8a08de51e4
Alert on missing secrets, re-add . → _ STACK_NAME
2021-01-09 15:07:39 +02:00
1c7a51bce1
Merge pull request 'App backup & restore' ( #72 ) from backup_restore into main
...
Reviewed-on: https://git.autonomic.zone/coop-cloud/abra/pulls/72
2021-01-09 12:36:50 +01:00
5d84cef63c
app restore
2021-01-09 13:36:32 +02:00
eda5198904
Add scaffolding for per-app backup
commands
...
See #70
2021-01-09 13:36:32 +02:00
a4a3dccd66
Add global --skip-check / --skip-update commands
2021-01-09 13:36:32 +02:00
a2d249e3a1
Fix abra app ls
with *
server
2021-01-02 00:34:44 +02:00
dc83baea12
Remove tab
2021-01-01 22:44:21 +01:00
d6b4a4744f
Fix abra app ls
for app → type
2021-01-01 23:00:20 +02:00
6ba2657dc1
Use short hash convention
2021-01-01 18:59:19 +01:00
ac6b805cbf
Follow parens convention
2021-01-01 18:57:39 +01:00
d4e52a9de3
Merge pull request 'Make secret generation more robust' ( #73 ) from simplify-secret-logic into main
...
Reviewed-on: https://git.autonomic.zone/coop-cloud/abra/pulls/73
2021-01-01 18:55:47 +01:00
aa59c1ad43
Make secret generation more robust
...
Closes https://git.autonomic.zone/coop-cloud/abra/issues/68 .
2021-01-01 18:54:41 +01:00
36f1d679ae
Merge pull request 'Merging auto functionality into generate command' ( #64 ) from app-auto-merge into main
...
Reviewed-on: https://git.autonomic.zone/coop-cloud/abra/pulls/64
2021-01-01 17:32:30 +01:00
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
9a17817cc8
Tiny tweak to abra help
advice
2021-01-01 17:57:36 +02:00
b2e3292453
Add version
subcommand to CHANGELOG
2021-01-01 17:55:45 +02:00
13fafb5929
Fix typo and link to commit
2021-01-01 14:18:30 +01:00
114f99ae2e
Update CHANGELOG
2021-01-01 15:11:04 +02:00
fff4b10a41
Gettin some help_
...
See #50
2021-01-01 15:09:49 +02:00
ab1353603d
Use homebrewed image for CI too
2021-01-01 13:49:19 +01:00
1600b6277f
Use the One True Way for testing
...
Closes https://git.autonomic.zone/coop-cloud/abra/issues/71 .
2021-01-01 13:48:14 +01:00
b79e35f982
Merge pull request 'Add per-subcommand help using abra help <subcommand>
' ( #61 ) from command_help_2 into main
...
Reviewed-on: https://git.autonomic.zone/coop-cloud/abra/pulls/61
2021-01-01 13:13:29 +01:00
703dbe0a0f
Merge branch 'main' into command_help_2
2021-01-01 13:09:57 +01:00
7abb0191e1
Use upstream CI image
...
See https://git.autonomic.zone/coop-cloud/docker-dind-bats-kcov .
2021-01-01 12:26:50 +01:00
886ae5b7f2
Fix help function names
2021-01-01 01:46:09 +02:00
5411c85793
Don't require weird app_ls format for abra help
2021-01-01 01:42:17 +02:00
caa315e361
Add per-subcommand help
2021-01-01 01:13:17 +02:00
e6b24fe65c
Change -v option to version
subcommand
2021-01-01 01:10:03 +02:00
81782bb5f0
make test → test_local, test_docker, test_dind
...
test_local: run `bats tests/`. Requires `bats`.
test_docker: run docker and install bats in it.
Both of these options require that your local Docker daemon is running
in swarm mode.
test_dind: starts a Docker daemon and runs tests in that. Requires sudo
2020-12-31 22:10:52 +02:00
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
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
fac45f276e
Add entry
2020-12-31 18:11:22 +01:00
44d3ac3a1c
Support pwqgen/pwgen checking
...
Closes https://git.autonomic.zone/coop-cloud/abra/issues/66 .
2020-12-31 18:10:13 +01:00
5da9f26076
Remove old function
...
Follow on from 3936d6afc0
.
2020-12-31 18:06:20 +01:00
4e99cf1ded
Add log entry
2020-12-31 16:57:10 +01:00
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
b6928959cb
Fix test target path
2020-12-31 13:50:10 +01:00
8ddb290683
Further update to tests for #47
2020-12-31 14:34:52 +02:00
2cb1134a54
Use _
now
2020-12-31 13:26:25 +01:00
c4b1ac482e
Update change log
2020-12-31 13:22:26 +01:00
29cc392dff
Prompt on app .. config
if $EDITOR is un-set
...
Closes #41
2020-12-31 12:52:44 +02:00
8839bd4595
Fix server
bash completion
...
Ref #45
2020-12-31 11:47:14 +02:00
0179f600f5
Change -v option to version
subcommand
2020-12-31 11:47:12 +02:00
15f0233351
Merge pull request '<domain> → <app>, APP → TYPE' ( #60 ) from domain_to_app into main
...
Reviewed-on: https://git.autonomic.zone/coop-cloud/abra/pulls/60
2020-12-30 22:22:11 +01:00
bbaacb7b9f
Update tests for app-name
2020-12-30 21:56:52 +02:00
6761574d74
Add "app name" concept, and rename APP → TYPE
...
Ref #47
2020-12-30 21:26:17 +02:00
8384af8b95
First foray into <domain> → <app>
2020-12-30 13:47:41 +02:00
b9e97688d6
... and update docopt
2020-12-30 13:43:17 +02:00
1055805c8d
Merge duplicate run
commands
...
Closes #57
2020-12-30 13:33:57 +02:00
678906cb39
Merge pull request 'Use set -a/+a and docker env file formats' ( #55 ) from use-set-a into main
...
Reviewed-on: https://git.autonomic.zone/coop-cloud/abra/pulls/55
2020-12-30 11:23:30 +01:00
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
e911ab246b
Merge pull request 'Merge logs/multilogs and avoid multitail external' ( #56 ) from merge-logging into main
...
Reviewed-on: https://git.autonomic.zone/coop-cloud/abra/pulls/56
2020-12-30 11:21:46 +01:00