-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NodejsFunction: support buildx and docker-container driver #29659
Comments
We can't debug your code from an external repo but looking at your provided error messages:
Looks like
I am guessing this might be the permission issue. Instead of looking at your linked code from the external repo, are you able to provide a minimal code snippet that reproduces this issue here? Simplifying the code would help us address the root cause easier. |
The repo is hosted under an AWS github organisation. Also I am not providing any Dockerfile, its using the Dockerfile provided with
|
If that error only happens from https://github.com/awslabs/data-solutions-framework-on-aws please submit a ticket to that repo for their visibility. If you believes it still happens in aws-cdk-lib please provide a minimal code snippet here so we can reproduce it. |
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. |
@pahud i am one the maintainer the repo I mention. The issues is not with the repo, but happens on how CDK pull the docker image, which I have no control on, because I do not specify that image. |
I had this same error when to bundling a NodejsFunction via docker in GitHub Actions. The issue was that Docker Buildx defaults to using the Fortunately, Docker has provided a way to configure the builder to load the images by default: The workaround is to configure the builder with the @lmouhib check your Docker builder configuration to see what driver its using. A solution that could be implemented by the CDK team would be to call |
You generally don't have to specify CDK at this moment does not fully support |
Unsure who you were replying to, but we use GitHub actions for deployment, and have a re-usable action that configures docker with buildx. Using the standard So while the legacy-builder / docker driver don't require an explicit |
Yeah I think NodejsFunction at this moment does not allow users to specify additional build arguments like We welcome any pull requests for that. Making this a p2 feature request and please help us prioritize with 👍 . |
docker login
and docker exited with status 125
I have not tested the work around proposed. However, the reason for using |
Describe the bug
NodeJsFunction fail the build during
cdk synth
when usingPython
. I am not providing my ownDockerfile
. The implementation is in this repo. Below is the log for the failur.Expected Behavior
The cdk synth should succeed
Current Behavior
CDK synth fail
Reproduction Steps
I can link
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.128.0
Framework Version
No response
Node.js Version
v20.11.1
OS
Mac
Language
Python
Language Version
3.9.6
Other information
No response
The text was updated successfully, but these errors were encountered: