From e08f31cdab9c21401b978691095383e0ce059ed7 Mon Sep 17 00:00:00 2001 From: Darasimi Ajewole <35644954+Darasimi-Ajewole@users.noreply.github.com> Date: Tue, 13 May 2025 01:25:55 +0100 Subject: [PATCH 1/9] Added notes for hotreloading lambda functions with rancher desktop windows setup --- .../integrations/rancher-desktop/index.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/content/en/user-guide/integrations/rancher-desktop/index.md b/content/en/user-guide/integrations/rancher-desktop/index.md index 7f3ce06611..760133fccd 100644 --- a/content/en/user-guide/integrations/rancher-desktop/index.md +++ b/content/en/user-guide/integrations/rancher-desktop/index.md @@ -159,3 +159,20 @@ services: Finally, start the services using `docker compose up` or `nerdctl compose up`, depending on your configuration. This will launch your LocalStack instance configured to interact with Rancher Desktop. + +### 📝 Note on Hot Reloading Lambdas in Windows (WSL2) + +If you're using hot reloading for Lambda functions, make sure your Lambda handler paths are specified using **WSL2-compatible paths**. + +For example, instead of using a Windows-style path like: + +```bash +C:\Users\myuser\projects\lambda\handler.py +``` + +Use the corresponding WSL-style path: +``` +/mnt/c/Users/myuser/projects/lambda/handler.py +``` + +This ensures that LocalStack can properly mount and watch your Lambda code inside the container when running under WSL2. From dbe7f5ce0ab8d36fac5e16b3d3667377fe0d0d0a Mon Sep 17 00:00:00 2001 From: Quetzalli Date: Thu, 5 Jun 2025 06:13:25 -0700 Subject: [PATCH 2/9] remove emoji --- content/en/user-guide/integrations/rancher-desktop/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/user-guide/integrations/rancher-desktop/index.md b/content/en/user-guide/integrations/rancher-desktop/index.md index 760133fccd..2d8dbbf47d 100644 --- a/content/en/user-guide/integrations/rancher-desktop/index.md +++ b/content/en/user-guide/integrations/rancher-desktop/index.md @@ -160,7 +160,7 @@ services: Finally, start the services using `docker compose up` or `nerdctl compose up`, depending on your configuration. This will launch your LocalStack instance configured to interact with Rancher Desktop. -### 📝 Note on Hot Reloading Lambdas in Windows (WSL2) +### Hot Reloading Lambdas in Windows (WSL2) If you're using hot reloading for Lambda functions, make sure your Lambda handler paths are specified using **WSL2-compatible paths**. From 941d5e3f19b9962f1d14cb6ad2f206d65f11aa79 Mon Sep 17 00:00:00 2001 From: Quetzalli Date: Thu, 5 Jun 2025 06:16:41 -0700 Subject: [PATCH 3/9] fix linting error --- content/en/user-guide/integrations/rancher-desktop/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/user-guide/integrations/rancher-desktop/index.md b/content/en/user-guide/integrations/rancher-desktop/index.md index 2d8dbbf47d..285b3d9921 100644 --- a/content/en/user-guide/integrations/rancher-desktop/index.md +++ b/content/en/user-guide/integrations/rancher-desktop/index.md @@ -171,7 +171,7 @@ C:\Users\myuser\projects\lambda\handler.py ``` Use the corresponding WSL-style path: -``` +```bash /mnt/c/Users/myuser/projects/lambda/handler.py ``` From 6371fe35259d440950af9d15487c5a32d4f64ac0 Mon Sep 17 00:00:00 2001 From: Quetzalli Date: Thu, 5 Jun 2025 06:17:06 -0700 Subject: [PATCH 4/9] code lines need a blank space before --- content/en/user-guide/integrations/rancher-desktop/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/en/user-guide/integrations/rancher-desktop/index.md b/content/en/user-guide/integrations/rancher-desktop/index.md index 285b3d9921..641aa36bcb 100644 --- a/content/en/user-guide/integrations/rancher-desktop/index.md +++ b/content/en/user-guide/integrations/rancher-desktop/index.md @@ -171,6 +171,7 @@ C:\Users\myuser\projects\lambda\handler.py ``` Use the corresponding WSL-style path: + ```bash /mnt/c/Users/myuser/projects/lambda/handler.py ``` From 186d89625900a561c8ae8d2b2b7f3672bfdc76ba Mon Sep 17 00:00:00 2001 From: Darasimi Ajewole <35644954+Darasimi-Ajewole@users.noreply.github.com> Date: Wed, 11 Jun 2025 00:58:11 +0100 Subject: [PATCH 5/9] Update index.md --- .../en/user-guide/lambda-tools/hot-reloading/index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/content/en/user-guide/lambda-tools/hot-reloading/index.md b/content/en/user-guide/lambda-tools/hot-reloading/index.md index 09754e347b..1ff20f739c 100644 --- a/content/en/user-guide/lambda-tools/hot-reloading/index.md +++ b/content/en/user-guide/lambda-tools/hot-reloading/index.md @@ -40,6 +40,17 @@ Therefore, filesystem changes persist between code changes for invocations dispa If using Docker Desktop on macOS, you might need to allow [file sharing](https://docs.docker.com/desktop/settings/mac/#file-sharing) for your target folders. MacOS may prompt you to grant Docker access to your target folders. +**WSL2-compatible paths required with Rancher Desktop on Windows:** +Make sure your Lambda handler paths are specified using **WSL2-compatible paths**. For example, instead of using a Windows-style path like: +```bash +C:\Users\myuser\projects\lambda\handler.py +``` +Use the corresponding WSL-style path: +```bash +/mnt/c/Users/myuser/projects/lambda/handler.py +``` +This ensures that LocalStack can properly mount and watch your Lambda code inside the container when running under WSL2. + **Layer limit with hot reloading for layers:** When hot reloading is active for a Lambda layer (Pro), the function can use at most one layer. From df4344d599d153481f80b2609ef09094b071e0a6 Mon Sep 17 00:00:00 2001 From: Darasimi Ajewole <35644954+Darasimi-Ajewole@users.noreply.github.com> Date: Wed, 11 Jun 2025 00:59:56 +0100 Subject: [PATCH 6/9] Updating formatting --- content/en/user-guide/lambda-tools/hot-reloading/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/user-guide/lambda-tools/hot-reloading/index.md b/content/en/user-guide/lambda-tools/hot-reloading/index.md index 1ff20f739c..179228a845 100644 --- a/content/en/user-guide/lambda-tools/hot-reloading/index.md +++ b/content/en/user-guide/lambda-tools/hot-reloading/index.md @@ -41,7 +41,7 @@ If using Docker Desktop on macOS, you might need to allow [file sharing](https:/ MacOS may prompt you to grant Docker access to your target folders. **WSL2-compatible paths required with Rancher Desktop on Windows:** -Make sure your Lambda handler paths are specified using **WSL2-compatible paths**. For example, instead of using a Windows-style path like: +Make sure your Lambda handler paths are specified using WSL2-compatible paths. For example, instead of using a Windows-style path like: ```bash C:\Users\myuser\projects\lambda\handler.py ``` From cb5b540d6477bdb7a50c649a16daf0fc5a9c8f09 Mon Sep 17 00:00:00 2001 From: Darasimi Ajewole <35644954+Darasimi-Ajewole@users.noreply.github.com> Date: Wed, 11 Jun 2025 01:01:37 +0100 Subject: [PATCH 7/9] Move to a more appropriate location --- .../integrations/rancher-desktop/index.md | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/content/en/user-guide/integrations/rancher-desktop/index.md b/content/en/user-guide/integrations/rancher-desktop/index.md index 641aa36bcb..7f3ce06611 100644 --- a/content/en/user-guide/integrations/rancher-desktop/index.md +++ b/content/en/user-guide/integrations/rancher-desktop/index.md @@ -159,21 +159,3 @@ services: Finally, start the services using `docker compose up` or `nerdctl compose up`, depending on your configuration. This will launch your LocalStack instance configured to interact with Rancher Desktop. - -### Hot Reloading Lambdas in Windows (WSL2) - -If you're using hot reloading for Lambda functions, make sure your Lambda handler paths are specified using **WSL2-compatible paths**. - -For example, instead of using a Windows-style path like: - -```bash -C:\Users\myuser\projects\lambda\handler.py -``` - -Use the corresponding WSL-style path: - -```bash -/mnt/c/Users/myuser/projects/lambda/handler.py -``` - -This ensures that LocalStack can properly mount and watch your Lambda code inside the container when running under WSL2. From c4ecea8f1d447615d50cc56a3a65db340ee5987e Mon Sep 17 00:00:00 2001 From: Quetzalli Date: Tue, 24 Jun 2025 21:07:31 -0700 Subject: [PATCH 8/9] Apply suggestions from code review --- content/en/user-guide/lambda-tools/hot-reloading/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/user-guide/lambda-tools/hot-reloading/index.md b/content/en/user-guide/lambda-tools/hot-reloading/index.md index 179228a845..fe8025d225 100644 --- a/content/en/user-guide/lambda-tools/hot-reloading/index.md +++ b/content/en/user-guide/lambda-tools/hot-reloading/index.md @@ -41,7 +41,7 @@ If using Docker Desktop on macOS, you might need to allow [file sharing](https:/ MacOS may prompt you to grant Docker access to your target folders. **WSL2-compatible paths required with Rancher Desktop on Windows:** -Make sure your Lambda handler paths are specified using WSL2-compatible paths. For example, instead of using a Windows-style path like: +Make sure your Lambda handler paths are specified using WSL2-compatible paths. For example, instead of using a Windows-style path such as: ```bash C:\Users\myuser\projects\lambda\handler.py ``` From 343db5609de8cefcd65ae73485966cfbaf18e972 Mon Sep 17 00:00:00 2001 From: Quetzalli Date: Wed, 25 Jun 2025 17:53:52 -0700 Subject: [PATCH 9/9] fixed linting error --- content/en/user-guide/lambda-tools/hot-reloading/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/user-guide/lambda-tools/hot-reloading/index.md b/content/en/user-guide/lambda-tools/hot-reloading/index.md index fe8025d225..f746517cf3 100644 --- a/content/en/user-guide/lambda-tools/hot-reloading/index.md +++ b/content/en/user-guide/lambda-tools/hot-reloading/index.md @@ -42,13 +42,17 @@ MacOS may prompt you to grant Docker access to your target folders. **WSL2-compatible paths required with Rancher Desktop on Windows:** Make sure your Lambda handler paths are specified using WSL2-compatible paths. For example, instead of using a Windows-style path such as: + ```bash C:\Users\myuser\projects\lambda\handler.py ``` + Use the corresponding WSL-style path: + ```bash /mnt/c/Users/myuser/projects/lambda/handler.py ``` + This ensures that LocalStack can properly mount and watch your Lambda code inside the container when running under WSL2. **Layer limit with hot reloading for layers:**