Commit Graph

151 Commits

Author SHA1 Message Date
decentral1se fdf4fc6737
fix: ensure validation takes place
Part of coop-cloud/organising#243 (comment).
2021-11-21 15:00:04 +01:00
decentral1se 304b70639f
fix: only check catalogue once 2021-11-19 15:50:29 +01:00
decentral1se fc51cf7775
docs: improve wording [ci skip] 2021-11-19 15:29:54 +01:00
decentral1se 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
decentral1se 56c3e070f5
fix: log what keys are loaded with the ssh-agent
Closes coop-cloud/organising#249.
2021-11-18 20:04:57 +01:00
decentral1se 1f6e4fa4a3
fix: ensure to init/commit the new recipe repo
Part of coop-cloud/organising#247.
2021-11-15 18:55:13 +01:00
decentral1se 4a245c3e02
fix: ensure .git repo exists
Part of coop-cloud/organising#247.
2021-11-15 18:55:13 +01:00
decentral1se 915083b426
fix: time out on 60 sec + of converge checks
See coop-cloud/organising#246.
2021-11-14 23:15:35 +01:00
decentral1se 486a1717e7
fix: dont attempt to clone is local repo is there
See coop-cloud/organising#247.
2021-11-14 22:54:55 +01:00
decentral1se 9122c0a9b8
fix: ensure domain/server resolve to same ipv4
See coop-cloud/organising#227 (comment).
2021-11-14 22:47:18 +01:00
decentral1se 85ff04202f
fix: ensure ipv4 is present for app deploys
See coop-cloud/organising#227.
2021-11-13 23:04:58 +01:00
decentral1se f78a04109c
fix: clarify when deploy done [ci skip] 2021-11-10 09:15:52 +01:00
decentral1se b67ad02f87
feat: rudimentary deploy status checking
See coop-cloud/organising#209.
2021-11-10 09:06:55 +01:00
decentral1se cd361237e7
Revert "Revert "test: remove broken tests for client""
This reverts commit 59031595ea.

Argh, reverted this by accident, heres another one!
2021-11-09 18:25:28 +01:00
decentral1se 59031595ea
Revert "test: remove broken tests for client"
This reverts commit 17a5f1529a.
2021-11-09 17:58:31 +01:00
decentral1se 6f26b51f3e
fix: only check host keys on requested hosts
See coop-cloud/organising#242.
2021-11-09 17:44:13 +01:00
knoflook 17a5f1529a
test: remove broken tests for client 2021-11-09 13:03:33 +01:00
decentral1se edb427a7ae
feat: implement host key checking
Closes coop-cloud/organising#237.
2021-11-08 15:37:23 +01:00
decentral1se 2b9395be1a
feat: make sync use wizard mode
Some bugs squashed while testing this extensively.
2021-11-06 23:40:22 +01:00
decentral1se 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
decentral1se 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
decentral1se e4e606efb0
feat: catalogue generate now rate limits
Closes coop-cloud/organising#231.
2021-11-03 06:53:38 +01:00
decentral1se 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
decentral1se fc2deda1f6
Revert "fix: drop copy/pasta, keep timeouts"
This reverts commit a170e26e27.

Attempting to add more nuanced timeout logic.
2021-11-02 15:18:17 +01:00
decentral1se 7f176d8e2f
fix: ensure logging for status checks
Closes coop-cloud/organising#226.
2021-11-02 15:15:52 +01:00
decentral1se 3b77607f36
fix: better error messages for missing repos 2021-11-02 13:36:40 +01:00
decentral1se d56400eea8
fix: bail out on unstage changes for plain --force 2021-10-26 10:52:26 +02:00
decentral1se 066b2b9373
fix: stream output from remote ssh commands 2021-10-26 01:30:10 +02:00
decentral1se aec11bda28
fix: add ssh conn time outs 2021-10-26 00:33:18 +02:00
decentral1se 8e3f90a7f3
fix: server inputs handling + better logging 2021-10-25 23:48:49 +02:00
decentral1se 3d46ce6db2
refactor: more seamless SSH connections 2021-10-25 11:13:41 +02:00
decentral1se 9e0d77d5c6
refactor: better SSH connection details handling 2021-10-25 10:42:39 +02:00
decentral1se 8772217f41
fix: working provisioning post chaos testing 2021-10-25 10:06:16 +02:00
decentral1se 9a0e12258a
feat: provision docker installation 2021-10-24 23:15:38 +02:00
decentral1se a458a5d9f7
docs: mark upstreams for all upstreams 2021-10-21 19:54:43 +02:00
decentral1se 963f8dcc73
fix: recover tests from overzealous cleanup 2021-10-21 19:40:26 +02:00
decentral1se dc04cf5ff7
chore: migrate all upstream code to own dir 2021-10-21 19:35:13 +02:00
decentral1se 80921c9f55
fix: remove cruft + readme pass + document forks 2021-10-21 18:35:24 +02:00
decentral1se a170e26e27
fix: drop copy/pasta, keep timeouts 2021-10-21 15:42:50 +02:00
decentral1se 7a5ad65178
fix: load timeout before other opts 2021-10-21 15:06:03 +02:00
decentral1se 74bcb99c70
fix: use this weird default
Closes coop-cloud/organising#207.
2021-10-19 22:43:43 +02:00
decentral1se 597b4b586e
WIP: domain listing with Gandi
Rethinking the interface already.
2021-10-18 22:16:29 +02:00
decentral1se 7ea3df45d4
WIP: dns support via libdns 2021-10-18 20:35:43 +02:00
decentral1se d1e42752e2
fix: set connection timeouts + clean up bad contexts
Closes coop-cloud/organising#205.
2021-10-18 10:48:43 +02:00
decentral1se 9526d1fde6
fix: ensure we have version checked out on deploy 2021-10-18 09:30:43 +02:00
decentral1se 62cc7ef92d
feat: upgrade/downgrade support chaos mode 2021-10-18 08:57:25 +02:00
decentral1se 2f9b11f389
feat: support deploying with chaos mode 2021-10-18 08:14:06 +02:00
decentral1se 6d42e72f16
fix: allow for client creation on default context
See coop-cloud/organising#206.
2021-10-17 23:50:44 +02:00
knoflook dc040a0b38
chore: change test context names 2021-10-16 13:26:03 +02:00
knoflook e6e2e5214f
test: add tests for pkg/client/client.go 2021-10-16 13:04:57 +02:00
knoflook 61452b5f32
docs: add README.md to document testing 2021-10-16 12:26:43 +02:00
knoflook 78460ac0ba
test: increatse client/context.go coverage to 90% 2021-10-16 11:41:41 +02:00
decentral1se ae32b1eed2
fix: standardise checkout options 2021-10-14 12:17:58 +02:00
decentral1se d0828c4d8d
fix: teach app version command to read new versions 2021-10-14 11:29:57 +02:00
decentral1se 37022bf0c8
feat: make deploy only deploy
See coop-cloud/organising#127.
2021-10-13 16:51:04 +02:00
decentral1se a9af0b3627
fix: let gofmt do its magic 2021-10-12 10:34:10 +02:00
3wc a0b4886eba WIP: default to compose.yml instead of all of 'em 2021-10-12 10:25:37 +02:00
decentral1se 84489495dc
fix: load STACK_NAME if not present 2021-10-12 09:03:48 +02:00
decentral1se a8683dc38a
refactor: better formatting 2021-10-12 08:59:14 +02:00
decentral1se e2128ea5b6
fix: check key existance correctly 2021-10-12 08:55:42 +02:00
decentral1se 4a01e411be
refactor: handle STACK_NAME override in one place 2021-10-12 01:14:14 +02:00
decentral1se c764243f3a
fix: manage multiple version showing edge cases 2021-10-08 10:50:48 +02:00
decentral1se dde8afcd43
feat: support version/upgrade listing
Closes coop-cloud/organising#130.
2021-10-08 09:51:47 +02:00
decentral1se 7368cabc49
fix: format output correctly 2021-10-05 20:24:52 +02:00
decentral1se 8bfd76fd04
feat: generate versions for catalogue also
Closes coop-cloud/organising#179.
2021-10-05 20:14:00 +02:00
decentral1se c616907b71
feat: teach recipe sync to understand new versions
Closes coop-cloud/organising#177.
2021-10-05 10:28:09 +02:00
decentral1se 8cc0a350e6
fix: pass sample env when loading recipe
Closes coop-cloud/organising#176.
2021-10-02 23:00:09 +02:00
decentral1se 48290aa316
fix: make server path creation more robust 2021-10-02 22:30:08 +02:00
decentral1se 09f49cdc76
chore: fix tests 2021-10-01 12:57:34 +02:00
3wc 7c4cdc530c fix: don't crash if no abra.sh 2021-10-01 11:40:19 +02:00
3wc 49781c7e3f fix: ignore "env" files which don't end in .env 2021-10-01 11:40:19 +02:00
decentral1se b1147cd136
feat: add x-platform progress bars for long loads
Closes coop-cloud/organising#150.
2021-09-22 07:48:17 +02:00
decentral1se 95a9013658
fix: use appFiles to determine server list 2021-09-20 22:43:30 +02:00
decentral1se 700f022790
WIP: use repo metadata not existing catalogue 2021-09-20 09:38:51 +02:00
decentral1se fdd46a4d98
chore: run formatter 2021-09-17 07:38:38 +02:00
decentral1se e00920643e
WIP: implement async recipe cloning
See coop-cloud/organising#159.
2021-09-16 16:28:11 +02:00
3wc 754fe81e01 feat: add templating during `.. app new`
Closes coop-cloud/organising#168
2021-09-16 15:09:35 +02:00
decentral1se 8e111dc32f
fix: use correct debug function 2021-09-16 09:48:28 +02:00
decentral1se 20ecdb8061
fix: log which compose files are being loaded
See coop-cloud/organising#167.
2021-09-16 09:45:02 +02:00
decentral1se f87aad4688
fix: list all servers
Closes coop-cloud/organising#166.
2021-09-16 09:26:12 +02:00
decentral1se 6794236b77
feat: support service completion
Closes coop-cloud/organising#165.
2021-09-16 09:10:05 +02:00
decentral1se 6c9bb89a10
refactor: use our usual initialisation 2021-09-16 09:09:51 +02:00
decentral1se 6c115926e3
fix: load sample env for new apps
Closes coop-cloud/organising#170.
2021-09-16 08:40:48 +02:00
decentral1se b6fe86f2ad
fix: use correct args for debug log inputs 2021-09-14 16:14:09 +02:00
decentral1se d290a4ec0b
WIP: the beginning of catalogue generation
See coop-cloud/organising#159.
2021-09-14 16:00:15 +02:00
decentral1se 9fcdc45851
feat: debug logging
Closes coop-cloud/organising#164.
2021-09-11 11:45:26 +02:00
decentral1se 3c3d8dc0e7
WIP: add first run at app rollback command
See coop-cloud/organising#146.
2021-09-10 11:49:29 +02:00
knoflook cf2653fef8
refactor: drop unused function, rename GetAppsNames 2021-09-08 13:43:55 +02:00
knoflook 4c216fdf40
feat: auto-complete app and recipe names 2021-09-07 16:57:39 +02:00
decentral1se b477bf8ece
fix: get app new working again 2021-09-07 08:12:37 +02:00
decentral1se 87f0985ebb
fix: clone also the main branch
Closes coop-cloud/go-abra#65.
2021-09-07 08:12:17 +02:00
decentral1se 448dadd292
fix: sort versions correctly
Closes coop-cloud/go-abra#44.
2021-09-06 16:51:42 +02:00
decentral1se 9862cf17a9
refactor: rename to RecipeMeta 2021-09-06 01:47:59 +02:00
decentral1se 356c8f8c4e
refactor: construct recipe struct proper 2021-09-06 01:41:16 +02:00
decentral1se 6a1ecd0f85
refactor: consolidate recipe in-place editing functions 2021-09-06 01:34:28 +02:00
decentral1se b5d8fb1270
refactor: create compose package 2021-09-06 01:15:59 +02:00
decentral1se a0625bf133
refactor: centralise recipe validation 2021-09-06 00:45:13 +02:00
decentral1se 691a2c7a50
tests: fix App struct 2021-09-06 00:34:49 +02:00
decentral1se d4333c2dc0
refactor: use app getting instead of boilerplate 2021-09-05 23:17:35 +02:00
decentral1se d82f854ebd
test: fix test suite to understand pkg/ directory 2021-09-05 21:39:12 +02:00