Add remote-docker-compose
parent
9e2ac0a65e
commit
c650f86a1b
17
flake.nix
17
flake.nix
|
@ -26,10 +26,25 @@
|
|||
}"
|
||||
'';
|
||||
};
|
||||
remote-docker-compose = pkgs.writeShellApplication {
|
||||
name = "remote-docker-compose";
|
||||
runtimeInputs = [ to-docker-compose ];
|
||||
text = ''
|
||||
host=$1
|
||||
shift
|
||||
cmd="docker compose -f - $*"
|
||||
# shellcheck disable=SC2029
|
||||
to-docker-compose | ssh "$host" "$cmd"
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [ jsonnet to-docker-compose ];
|
||||
buildInputs = with pkgs; [
|
||||
jsonnet
|
||||
to-docker-compose
|
||||
remote-docker-compose
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue