[@aws-cdk/aws-lambda-nodejs] Parcel v2 but Docker still needed
See original GitHub issueThe Question
According to docs https://docs.aws.amazon.com/cdk/api/latest/docs/aws-lambda-nodejs-readme.html if using Parcel v2, docker will not be necessary during build.
After adding parcel v2 and running the build in codepipeline, i still get the message that docker is required. In fact cause of lack of permission, i am getting Cannot connect to the Docker daemon at unix:///var/run/docker.sock
But why is docker needed with Parcel v2? Or did i read the docs wrong?
Environment
- CDK CLI Version: 1.61.0
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:22 (11 by maintainers)
Top Results From Across the Web
aws-lambda-nodejs-webpack - npm
CDK Construct to build Node.js AWS lambdas using webpack. Latest version: 3.1.0, last published: 2 years ago.
Read more >aws-lambda-nodejs-rollup v1.1.3 - npm.io
This means it mounts your whole Node.js project (not just the lambda code) inside Docker before running a bundler like Parcel. This is...
Read more >AWS CDK - aws-lambda-nodejs Module (updated)
I've updated the code samples to conform with the new api but the benchmarks haven't moved significantly. Next Steps. This module is still...
Read more >aws-lambda-nodejs-rollup - npm package - Snyk
This means it mounts your whole Node.js project (not just the lambda code) inside Docker before running a bundler like Parcel. This is...
Read more >@aws-cdk/aws-lambda-nodejs | Yarn - Package Manager
@aws-cdk/aws-lambda-nodejs. owner aws348.6kApache-2.01.182.0TS vulns ... packages that contain only the code and dependencies needed to run the function.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve been watching for this issue because I’ve also been having trouble with the “local parcel” feature under Windows 10.
On my Mac, Docker-based builds work reliably but they’re very slow. Installing Parcel as per the instructions enabled faster “local parcel” as expected.
On my work Windows 10 PC, Docker-based builds have been intermittently failing with various different errors since CDK 1.58 and I’ve been hoping to use the “local parcel” to avoid those issues. However, even with CDK 1.64 and having parcel 2.0.0-beta.1 installed locally, it still tries to build with Docker.
Both computers have Node 12.8.4 and Docker 19.03.12.
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.