feat: add OCI container image for k3s deployment
This commit is contained in:
parent
2b9a3975a3
commit
c65e6da3d3
2 changed files with 27 additions and 2 deletions
|
|
@ -6,12 +6,36 @@ in
|
||||||
flake.packages = forAllSystems (system:
|
flake.packages = forAllSystems (system:
|
||||||
let
|
let
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||||
in {
|
|
||||||
# Hermes agent with messaging platform support (Discord, Slack, Telegram)
|
# Hermes agent with messaging platform support (Discord, Slack, Telegram)
|
||||||
default = inputs.hermes-agent.packages.${system}.default.override {
|
hermesMessaging = inputs.hermes-agent.packages.${system}.default.override {
|
||||||
extraDependencyGroups = [ "messaging" ];
|
extraDependencyGroups = [ "messaging" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# OCI container image for k3s deployment
|
||||||
|
hermesImage = pkgs.dockerTools.buildLayeredImage {
|
||||||
|
name = "hermes-speckl/sme";
|
||||||
|
tag = "latest";
|
||||||
|
created = "now";
|
||||||
|
contents = [
|
||||||
|
hermesMessaging
|
||||||
|
pkgs.cacert
|
||||||
|
pkgs.tzdata
|
||||||
|
pkgs.bash
|
||||||
|
pkgs.coreutils
|
||||||
|
];
|
||||||
|
config = {
|
||||||
|
Entrypoint = [ "/bin/hermes" "gateway" "run" ];
|
||||||
|
Env = [
|
||||||
|
"PATH=/bin"
|
||||||
|
"SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
default = hermesMessaging;
|
||||||
|
docker-image = hermesImage;
|
||||||
|
|
||||||
speckl-config = pkgs.writeTextDir "speckl-config.yaml" ''
|
speckl-config = pkgs.writeTextDir "speckl-config.yaml" ''
|
||||||
# Speckl SME — generated config
|
# Speckl SME — generated config
|
||||||
# Override via services.hermes-speckl.settings
|
# Override via services.hermes-speckl.settings
|
||||||
|
|
|
||||||
1
result
Symbolic link
1
result
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
/nix/store/wmr5qjizys6dsbsrgvydc0c7ijx4inra-hermes-agent-0.13.0
|
||||||
Loading…
Add table
Add a link
Reference in a new issue