Skip to content
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

feat(lambda): switch bundling images from DockerHub to ECR public gallery #13473

Merged
merged 9 commits into from
Apr 1, 2021

Conversation

pgarbe
Copy link
Contributor

@pgarbe pgarbe commented Mar 8, 2021

fixes #11296


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Mar 8, 2021

@github-actions github-actions bot added @aws-cdk/aws-ecr Related to Amazon Elastic Container Registry @aws-cdk/aws-lambda Related to AWS Lambda labels Mar 8, 2021
@MrArnoldPalmer
Copy link
Contributor

This looks like it just needs to run integration tests for the build to pass. @pgarbe are you able to run the integ tests in aws-lambda against one of your accounts?

@nija-at do you see any downside to this for aws-lambda-(python|nodejs)?

@pgarbe
Copy link
Contributor Author

pgarbe commented Mar 9, 2021

I've some troubles running the integration tests. I also can't see what exactly is failing. Any hints are welcome.

@MrArnoldPalmer
Copy link
Contributor

@pgarbe There is a comment linking to the failed build logs here. If you run yarn test from within the aws-lambda-python it should show you what parts of the stack have changed. You'll have to run yarn integ to deploy the stack changes which will also update the snapshots and allow yarn test to pass. This will deploy the test stacks to whatever account you have credentials for and then clean them up when done.

@nija-at
Copy link
Contributor

nija-at commented Mar 17, 2021

Hello -

Sorry about the delay in reviewing PRs. We are experiencing an increased backlog of items that need our attention.
We will get to your PR as soon as we are able to. Apologies for the delay.

Copy link
Contributor

@nija-at nija-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting this PR @pgarbe.

One question below before jumping into the actual code changes.

packages/@aws-cdk/aws-lambda/lib/runtime.ts Show resolved Hide resolved
@nija-at nija-at changed the title feat(@aws-cdk/aws-lambda): Use bundling images from ECR public gallery feat(lambda): switch bundling images from DockerHub to ECR public gallery Mar 25, 2021
@nija-at nija-at changed the title feat(lambda): switch bundling images from DockerHub to ECR public gallery feat(lambda): switch bundling images from Docker Hub to ECR public gallery Mar 25, 2021
nija-at
nija-at previously approved these changes Mar 25, 2021
@nija-at nija-at dismissed their stale review March 25, 2021 11:31

failing build

Copy link
Contributor

@nija-at nija-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you look at the failing build and fix it?

@mergify mergify bot dismissed nija-at’s stale review March 29, 2021 07:51

Pull request has been modified.

@pgarbe
Copy link
Contributor Author

pgarbe commented Mar 29, 2021

@nija-at I fixed the build

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: c7a95fb
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@nija-at nija-at changed the title feat(lambda): switch bundling images from Docker Hub to ECR public gallery feat(lambda): switch bundling images from DockerHub to ECR public gallery Apr 1, 2021
@mergify
Copy link
Contributor

mergify bot commented Apr 1, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit e2e008b into aws:master Apr 1, 2021
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
…lery (aws#13473)

fixes aws#11296


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ecr Related to Amazon Elastic Container Registry @aws-cdk/aws-lambda Related to AWS Lambda
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ecr] CDK DockerBundling should use the underlying default image from ECR
5 participants