This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/finsys/hawser](https://github.com/Finsys/hawser) | patch | `0.2.42` → `0.2.45` | --- > ⚠️ **Warning** > > Some dependencies could not be looked up. Check the warning logs for more information. --- ### Release Notes <details> <summary>Finsys/hawser (ghcr.io/finsys/hawser)</summary> ### [`v0.2.45`](https://github.com/Finsys/hawser/releases/tag/v0.2.45) [Compare Source](https://github.com/Finsys/hawser/compare/v0.2.44...v0.2.45) #### Changelog - [`82a86a1`](82a86a16e3) feat: hash-verified file deletion sync and stack dir cleanup ([#​966](https://github.com/Finsys/hawser/issues/966), [#​1162](https://github.com/Finsys/hawser/issues/1162)) - [`0997f71`](0997f7161d) fix: log client disconnect in events stream at debug level - [`f38f847`](f38f847ca8) fix: stack removal deletes only files explicitly listed by dockhand - [`2c1675f`](2c1675f16b) fix: use ln -sf so newer docker-compose packages work ### [`v0.2.44`](https://github.com/Finsys/hawser/releases/tag/v0.2.44) [Compare Source](https://github.com/Finsys/hawser/compare/v0.2.43...v0.2.44) #### Changelog - [`3cbc419`](3cbc419eee) fix: use clean env for compose subprocess to prevent inherited .env override ([#​1113](https://github.com/Finsys/hawser/issues/1113)) ### [`v0.2.43`](https://github.com/Finsys/hawser/releases/tag/v0.2.43) [Compare Source](https://github.com/Finsys/hawser/compare/v0.2.42...v0.2.43) #### Changelog - Bump Go to 1.26 in go.mod, CI workflows, and Dockerfile.dev - Bump docker-compose to 5.1.4-r0 in Dockerfile - Expand token security documentation with generation examples ([#​60](https://github.com/Finsys/hawser/issues/60)) - Remove unused edge /info endpoint </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNTAuMSIsInVwZGF0ZWRJblZlciI6IjQzLjE1MC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: #3 Co-authored-by: Renovate Bot <renovate@jfreudenberger.de> Co-committed-by: Renovate Bot <renovate@jfreudenberger.de>
48 lines
1.4 KiB
Nix
48 lines
1.4 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.services.hawser;
|
|
in {
|
|
options.services.hawser = {
|
|
enable = lib.mkEnableOption "hawser, the agent for Dockhand";
|
|
agentName = lib.mkOption {
|
|
description = "Name of the hawser agent";
|
|
default = config.networking.hostName;
|
|
type = lib.types.str;
|
|
};
|
|
dockhandServerUrl = lib.mkOption {
|
|
description = "Websocket endpoint the hawser agent can use to connect to dockhand.";
|
|
example = "wss://your-dockhand.example.com/api/hawser/connect";
|
|
type = lib.types.str;
|
|
};
|
|
tokenSecretFile = lib.mkOption {
|
|
description = "Agenix secret containing the token as environment variable TOKEN";
|
|
type = lib.types.anything;
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
virtualisation.oci-containers.containers = {
|
|
hawser = {
|
|
image = "ghcr.io/finsys/hawser:0.2.45@sha256:ba4682fd350a4b16e1a1048817edf1054ee91f0556fef63805e447f6746fa157";
|
|
volumes = [
|
|
"/var/run/docker.sock:/var/run/docker.sock"
|
|
];
|
|
environment = {
|
|
STACKS_DIR = "/opt/hawser-stacks";
|
|
DOCKHAND_SERVER_URL = cfg.dockhandServerUrl;
|
|
AGENT_NAME = cfg.agentName;
|
|
};
|
|
environmentFiles = [
|
|
cfg.tokenSecretFile.path
|
|
];
|
|
extraOptions = [
|
|
''--mount=type=volume,source=hawser-data,target=/opt/hawser-stacks,volume-driver=local''
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|