question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[@aws-cdk/aws-lambda-nodejs] Parcel v2 but Docker still needed

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:22 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
nsutcliffe-speedlinecommented, Sep 24, 2020

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.

0reactions
github-actions[bot]commented, Oct 7, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found