Commit Graph

44 Commits

Author SHA1 Message Date
358490e939 refactor: deploy output wording 2023-09-23 09:14:45 +02:00
2db172ea5a Further changes to messages. 2023-08-04 19:22:48 +00:00
2077658f6a Attempt to replace the deploy completed message. 2023-08-04 19:22:48 +00:00
502e26b534 Change message when starting to poll for deployment status. 2023-08-04 19:22:48 +00:00
e22b692ada Add os hook for interrupt signal while waiting for service to converge. 2023-08-04 19:22:48 +00:00
31ec322c55 feat(deploy): set timeout via label (!290)
Solves coop-cloud/organising#437

A timeout can be specified globally for a recipe using this label:
`coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}`. This sets the default timeout to 120s. An app specific timeout can be set using the env `TIMEOUT`.

Co-authored-by: Moritz <moritz.m@local-it.org>
Reviewed-on: coop-cloud/abra#290
2023-04-14 14:44:18 +00:00
e76ed771df feat: kadabra, the app auto-updater (!268)
coop-cloud/organising#236

Autoupdater `kadabra` is ready for testing.
It should run on the server, check for available minor/patch updates and automatically upgrade the apps.

Co-authored-by: Moritz <moritz.m@local-it.org>
Reviewed-on: coop-cloud/abra#268
2023-02-08 18:53:04 +00:00
7c1a97be72 refactor!: consolidate SSH handling
Closes coop-cloud/organising#389.
Closes coop-cloud/organising#341.
Closes coop-cloud/organising#326.
Closes coop-cloud/organising#380.
Closes coop-cloud/organising#360.
2023-02-02 08:37:14 +00:00
c47aa49373 fix: improved missing context message 2023-01-24 10:48:53 +01:00
b089109c94 fix: more robust docker context problem handling
See coop-cloud/organising#325
See coop-cloud/organising#340
2023-01-23 14:56:34 +01:00
d3e127e5c8 fix: retain backwards compat with TYPE/RECIPE change 2022-03-11 19:37:50 +01:00
e9cfb076c6 fix: strip length modifiers
See coop-cloud/organising#297.
2022-03-11 16:40:10 +01:00
bfeda40e34 fix: catch more ssh failure modes with help 2022-02-03 13:43:11 +01:00
58e98f490d refactor!: type -> recipes 2022-01-27 12:06:32 +01:00
13e582349c fix: correctly override with ~/.ssh/config if failing to connect 2022-01-19 13:28:57 +01:00
66d5453248 docs: recommend more helper commands for deploy timeout 2022-01-03 16:33:28 +01:00
ba9abcb0d7 fix: increase converge timeout 2022-01-03 16:33:18 +01:00
7a0d18ceb6 fix: show unknown insteaf of empty for missing version 2022-01-01 17:23:21 +01:00
abd094387f fix: use scale for restarting
The other approach wasn't working. Duplicating containers on restart.
You'd end up with 2 containers per restart...
2022-01-01 17:22:35 +01:00
a556ca625b fix: handle StackName / Name correctly 2022-01-01 17:22:19 +01:00
5cacd09a04 refactor: remove old/non-urgen/resolved FIXMEs 2021-12-28 01:35:40 +01:00
6a98024a2b refactor: drop old/upstream TODOs 2021-12-28 01:31:50 +01:00
fefb042716 fix: shorter timeout on deploy 2021-12-24 02:26:02 +01:00
ab8db8df64 feat: deploy --no-converge-checks & finish app errors 2021-12-24 02:23:46 +01:00
e839f100df fix: move that back, still wrong but less wrong 2021-12-24 01:32:42 +01:00
41a757b7ed fix: only show when success is for sure 2021-12-24 00:44:50 +01:00
fc29ca6fce refactor: less quotes 2021-12-24 00:25:45 +01:00
ec7223146b docs: better timeout error 2021-12-21 23:48:32 +01:00
f5caf5587a refactor: fix log style and add recipe context 2021-12-19 23:08:03 +01:00
3fb43ffa2c Revert "fix: match exact on filtering" [ci skip]
This reverts commit 2bc2f8630b.

This breaks other stuff. Reverting!
2021-12-09 14:12:16 +01:00
2bc2f8630b fix: match exact on filtering 2021-12-06 01:26:04 +01:00
748d607ddc fix: better converge output
Closes coop-cloud/organising#263.
2021-11-26 21:24:15 +01:00
fdf4fc6737 fix: ensure validation takes place
Part of coop-cloud/organising#243 (comment).
2021-11-21 15:00:04 +01:00
e589709cb0 fix: attempt to include IdentityFile if available
This is part of trying to debug:

    coop-cloud/organising#250

And also part of:

    coop-cloud/docs.coopcloud.tech#27

Where I now try to specify the same logic as `ssh -i <my-key-path>` in
the underlying connection logic. This should help with being more
explicit about what key is being used via the SSH config file.
2021-11-18 21:16:10 +01:00
915083b426 fix: time out on 60 sec + of converge checks
See coop-cloud/organising#246.
2021-11-14 23:15:35 +01:00
f78a04109c fix: clarify when deploy done [ci skip] 2021-11-10 09:15:52 +01:00
b67ad02f87 feat: rudimentary deploy status checking
See coop-cloud/organising#209.
2021-11-10 09:06:55 +01:00
edb427a7ae feat: implement host key checking
Closes coop-cloud/organising#237.
2021-11-08 15:37:23 +01:00
f9726b6643 WIP: temporarily avoid SSH host key checking
Closes coop-cloud/organising#234.
Closes coop-cloud/organising#142.
2021-11-05 12:33:32 +01:00
de7054fd74 fix: use x-platform code for pdeathsig
This might cause the macosx build not to fail, I hope.

See https://github.com/docker/cli/tree/v20.10.10/cli/connhelper/commandconn
2021-11-03 09:57:35 +01:00
e37b49201f fix: use IdleConnTimeout/ConnectTimeout
This is an attempt to set sensible timeouts on abra connections. This
might not be the last word on this but it seems that SSH connections now
bail out correctly and other kinds of commands don't explode (e.g.
logs).

Closes coop-cloud/organising#222.
Closes coop-cloud/organising#218.
2021-11-02 15:49:11 +01:00
a458a5d9f7 docs: mark upstreams for all upstreams 2021-10-21 19:54:43 +02:00
963f8dcc73 fix: recover tests from overzealous cleanup 2021-10-21 19:40:26 +02:00
dc04cf5ff7 chore: migrate all upstream code to own dir 2021-10-21 19:35:13 +02:00