Commit Graph

265 Commits

Author SHA1 Message Date
Brian Picciano
56f38ad451 Refactor how tests are organized 2023-09-01 20:24:42 +02:00
Brian Picciano
a77617ae96 Add test for network creation 2023-09-01 17:20:03 +02:00
Brian Picciano
ae70278a9f Add --keep-tmp flag to test script 2023-09-01 17:19:48 +02:00
Brian Picciano
0b486d5d27 Allow setting tun name in daemon config 2023-09-01 16:45:21 +02:00
Brian Picciano
d2d25d3621 Set XDG variables on a per-test basis 2023-09-01 16:18:23 +02:00
Brian Picciano
bc798acffa Have tests each create a separate tmpdir, and cd into it 2023-08-31 22:07:36 +02:00
Brian Picciano
48675ee095 Fix output of error logs in verbose testing 2023-08-31 21:46:56 +02:00
Brian Picciano
aa0d489e88 Add verbose flag to test shell script 2023-08-30 20:08:40 +02:00
Brian Picciano
2876b56afb Fix how revision is embedded so that AppImage isn't always recompiled 2023-08-30 18:24:09 +02:00
Brian Picciano
e66f67da4a Super basic testing framework 2023-08-30 18:16:19 +02:00
Brian Picciano
3d6ed8604a Add ability to sign nebula public keys, and show nebula network info
The new commands are:

- `isle admin create-nebula-cert`
- `isle nebula show`

Between these two commands it's possible, with some effort, to get a
nebula mobile client hooked up to an isle server.
2023-08-27 16:09:03 +02:00
Brian Picciano
661e2b28cb Move go code into 'go' tld, to make organization clearer 2023-08-25 15:19:31 +02:00
Brian Picciano
b5e8ad274e Add AGPLv3 license 2023-08-25 14:16:52 +02:00
Brian Picciano
633c7147b1 Fix create host docs 2023-08-13 16:37:37 +02:00
Brian Picciano
6480f6c843 Fix global shared bucket name to conform to S3 naming standards 2023-08-13 16:14:59 +02:00
Brian Picciano
fafd711b1b Fix doc generation, remove cryptic references from plantuml 2023-08-13 15:51:06 +02:00
Brian Picciano
9fa32749b9 Remove old cryptic references completely, fuck it 2023-08-13 15:43:33 +02:00
Brian Picciano
b7fb1d9c0a Complete in-code changes required by rename 2023-08-07 22:12:51 +02:00
Brian Picciano
3d7651208f Perform all in-code renames which don't affect actual functionality 2023-08-05 23:53:17 +02:00
Brian Picciano
2b9601f031 Renaming in AppDir and documentation 2023-08-05 16:56:34 +02:00
Brian Picciano
4e3847ea84 cryptic-io org has been renamed to micropelago 2023-07-06 17:51:38 +02:00
Brian Picciano
257b961459 Gateway doc 2023-04-24 21:31:59 +02:00
Brian Picciano
a1b3ff71b3 Use entrypoint directly as AppRun
This removes the intermediate bash script which was running, which
_potentially_ fixes #2.

Since that bash script is no longer setting PATH, the daemon must
manually create the binary path for each sub-process anyway.
2023-04-23 16:30:47 +02:00
Brian Picciano
57f63750f3 Fix appimagetool build 2023-04-12 01:58:52 +02:00
Brian Picciano
1180540ce3 Make sure we can use nix cache for non-cross-compiling 2023-03-25 17:05:29 +01:00
Brian Picciano
3a3bd56295 Implement release script 2023-03-25 15:58:20 +01:00
Brian Picciano
e9190e4dbb Allow injecting bootstrap again, plus some additions to version 2023-02-15 15:09:31 +01:00
Brian Picciano
94c6ad8774 Fix up some TODOs 2023-02-15 14:58:47 +01:00
Brian Picciano
8e800951a6 Remove sources from flake, everything is defined in default.nix now
This includes re-adding the garage build ourselves, rather than using
their flake.
2023-02-15 13:56:22 +01:00
Brian Picciano
b7d49bff5b Allow building from either flake or nix-build 2023-02-15 12:04:56 +01:00
Brian Picciano
1354c96ba9 Accidentally left flake building garage rather than full appimage 2023-01-29 19:08:16 +01:00
Brian Picciano
a8856fba99 Update docs a bit in light of the new architectures 2023-01-29 19:01:58 +01:00
Brian Picciano
1379291c1e Got flake set up for cross-compilation, but it still doesn't work 2023-01-29 18:57:55 +01:00
Brian Picciano
05f9064d10 Update nixpkgs, add appimagetool for other archs 2023-01-29 15:31:11 +01:00
Brian Picciano
5061fb5670 Update appimagetool-ing to something which can theoretically be used on other architectures 2023-01-28 22:57:06 +01:00
Brian Picciano
17fb9bbd77 Add a flake.nix
I spent some time trying to get compilation on non-x86_64 systems
possibly working, but we're currently limited by AppImage, which doesn't
want to work properly.
2023-01-28 20:43:09 +01:00
Brian Picciano
1dc22701cd Write rpc_port file to garage meta dir
This file is then used in later startups when determining the rpc port,
thus preventing the user from changing the port by accident.
2023-01-17 20:31:22 +01:00
Brian Picciano
ca003eaf85 Improve version sub-cmd output 2022-11-22 12:57:27 +01:00
Brian Picciano
e96fccae1b Upgrade to garage v0.8.0, plus a commit to fix panics
We were encountering panics (see
https://git.deuxfleurs.fr/Deuxfleurs/garage/issues/414). The new garage
commit is simply 0.8.0 plus the fix for that issue.
2022-11-22 12:51:24 +01:00
Brian Picciano
0a6516b44e Add release target in nix 2022-11-16 17:45:13 +01:00
Brian Picciano
03ab15902c Update docs for storage allocs in daemon.yml 2022-11-16 17:30:55 +01:00
Brian Picciano
53194614df Switch to using camelCase for logs 2022-11-16 17:27:42 +01:00
Brian Picciano
2181da14a1 Added some debug logging, ultimately not needed 2022-11-16 17:25:55 +01:00
Brian Picciano
b498ee271d Don't divide layout capacity by 100
See discussion in
https://git.deuxfleurs.fr/Deuxfleurs/garage/issues/414. Apparently the
capacity is only relative to that of other instances in the layout, it
has no absolute value of its own. We can say it corresponds to GB for
ease-of-use, but garage doesn't see it that way.
2022-11-16 15:51:13 +01:00
Brian Picciano
877e519821 Apply garage layout prior to putting bootstrap 2022-11-15 20:11:47 +01:00
Brian Picciano
b1fa3be970 Fix garage mc not getting default secret key set correctly 2022-11-13 20:14:16 +01:00
Brian Picciano
739e88d6c9 Add secret ability to specify zone 2022-11-13 20:09:03 +01:00
Brian Picciano
da100c6170 Fix garage Wait method not sleeping properly between tries 2022-11-13 16:49:23 +01:00
Brian Picciano
629a8ec9b2 Improve logging, introduce log levels
I switched to using mlog for logging, as opposed to writing directly to
Stderr. This gives us control over log levels, as well as coordination
so that we don't have multiple go-routines writing to stderr at the same
time.
2022-11-13 16:45:42 +01:00
Brian Picciano
90a30bef5e Fix startup sequence for daemon
Putting bootstrap host data into garage, and applying garage layout
diff, no longer happen simultaneously in the background. This was
causing some weird non-determinism in the startup which wasn't really
breaking anything, but made the logs harder to debug.

This also potentially fixes `waitForGarageAndNebula`, which was
neglecting to wait for nebula if there were allocations defined.
2022-11-13 14:55:25 +01:00