Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions nix/apps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
pkgs.kind
pkgs.kubectl
pkgs.docker-client
pkgs.nix
];
inheritPath = false;
text = ''
Expand All @@ -137,6 +138,15 @@
ln -s ${functionsPkg} _output/functions

crossplane project run "$@"

# When running via nix.sh, the cluster lives inside the container's
# Docker daemon and would vanish when the container exits. Drop into
# a dev shell so the user can interact with it before exiting.
if [ "''${NIX_SH_CONTAINER:-}" = "1" ]; then
echo ""
echo "Entering development shell (exit to stop)..."
exec nix develop
fi
'';
}
);
Expand Down
Loading