Skip to content

feat(custom-resources): remove Docker build dependency from build phase#1340

Merged
nizar-lahlali merged 1 commit into
mainfrom
feature/remove-docker-build-dependency-567
May 21, 2026
Merged

feat(custom-resources): remove Docker build dependency from build phase#1340
nizar-lahlali merged 1 commit into
mainfrom
feature/remove-docker-build-dependency-567

Conversation

@nizar-lahlali

Copy link
Copy Markdown
Contributor

Fixes #567

Replaces lambda.Code.fromDockerBuild() with lambda.Code.fromAsset() using local bundling with Docker fallback in the shared buildCustomResourceProvider helper.

Changes

  • Local bundling tries pip/poetry first (no Docker needed if Python tooling is available)
  • Falls back to Docker bundling if local bundling fails
  • Added user: 'root' to Docker bundling to fix permission issues with CDK's default user mapping

Affected constructs

  • OpenSearch Serverless Vector Index
  • Amazon Aurora PgVector

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.

@codecov

codecov Bot commented May 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.32%. Comparing base (e900a81) to head (9f08734).

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #1340    +/-   ##
========================================
  Coverage   95.31%   95.32%            
========================================
  Files          87       87            
  Lines       26551    26578    +27     
  Branches      777      479   -298     
========================================
+ Hits        25308    25335    +27     
  Misses       1243     1243            

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nizar-lahlali nizar-lahlali force-pushed the feature/remove-docker-build-dependency-567 branch 3 times, most recently from 920553e to 6016335 Compare May 20, 2026 23:53
Comment thread src/common/helpers/custom-resource-provider-helper.ts
ayushtr-aws
ayushtr-aws previously approved these changes May 21, 2026

@ayushtr-aws ayushtr-aws left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

Comment thread src/common/helpers/custom-resource-provider-helper.ts Outdated
Comment thread src/common/helpers/custom-resource-provider-helper.ts Outdated
Replace lambda.Code.fromDockerBuild() with lambda.Code.fromAsset() using
local bundling (pip/poetry) with Docker fallback. This removes the hard
Docker requirement at CDK synth time for environments where Python
tooling is available locally.

Fixes #567
@nizar-lahlali nizar-lahlali force-pushed the feature/remove-docker-build-dependency-567 branch from 6016335 to 9f08734 Compare May 21, 2026 00:57
Comment thread src/common/helpers/custom-resource-provider-helper.ts

@Kalindi-Dev Kalindi-Dev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@nizar-lahlali nizar-lahlali enabled auto-merge May 21, 2026 17:53

@scottschreckengaust scottschreckengaust left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@nizar-lahlali nizar-lahlali merged commit c57502b into main May 21, 2026
20 checks passed
@nizar-lahlali nizar-lahlali deleted the feature/remove-docker-build-dependency-567 branch May 21, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Removing Docker build dependency from build phase

5 participants