Commit f94b359
SAM: support SAM CLI version 1.x (#1169)
- Since SAM CLI 1.0 we can no longer assume PID=1 (because more
processes are used to bootstrap the app in Docker). So use
`processName=dotnet` instead of `processId=1`.
"For VSCode there will (currently) always be single `dotnet` executable
running."
ref aws/aws-toolkit-jetbrains#1886
ref e1e6e5f
ref 60a2eab
Testing:
- For each of SAM CLI 0.45.0, SAM CLI 1.0.0
- For each of nodejs12.x, python3.7, dotnet2.1
- Set the `aws.samcli.location` to point to new/old sam binary.
- Verify that `Run Locally` works
- Verify that `Debug Locally` works.
With sam 0.45.0, the Toolkit pulls these Docker images:
Fetching lambci/lambda:dotnetcore2.1 Docker container image
Fetching lambci/lambda:nodejs12.x Docker container image
Fetching lambci/lambda:python3.7 Docker container image
With sam 1.0.0, the Toolkit pulls these Docker images:
Fetching amazon/aws-sam-cli-emulation-image-dotnetcore2.1:latest Docker container image
Fetching amazon/aws-sam-cli-emulation-image-nodejs10.x:latest Docker container image
Fetching amazon/aws-sam-cli-emulation-image-nodejs12.x:latest Docker container image
Fetching amazon/aws-sam-cli-emulation-image-python3.7:latest Docker container image
Per aws/aws-sam-cli#2066 , the new docker
images are named like:
amazon/aws-sam-cli-build-image-<runtime>
amazon/aws-sam-cli-emulation-image-<runtime>
Notes:
- Elected not to include `justMyCode:false` in the dotnet config.
- In a test of nodejs12.x, saw this error (transient, went away after retry):
docker.errors.ImageNotFound: 404 Client Error: Not Found ("No such image: amazon/aws-sam-cli-emulation-image-nodejs12.x:latest")
Co-authored-by: Hunter Werlla <[email protected]>1 parent 72c9893 commit f94b359
File tree
3 files changed
+9
-3
lines changed- .changes/next-release
- src
- lambda/local
3 files changed
+9
-3
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments