feat(core): add network option to docker run command#21450
feat(core): add network option to docker run command#21450mergify[bot] merged 3 commits intoaws:mainfrom maafk:docker-network-option
Conversation
TheRealAmazonKendra
left a comment
There was a problem hiding this comment.
Please make sure that your PR body describes the problem the PR is solving, and the design approach and alternatives considered. Explain why the PR solves the problem. A link to an issue is helpful, but does not replace an explanation of your thought process (See Contributing Guide, Pull Requests)
PRs that are labeled as a feat also require integ tests and README updates.
Updated to include issue number and the problem it's solving
This change wouldn't result in any cloudformation changes. It only affects the bundling of assets, so there wouldn't be any change to synthesized cloudformation. I'm also not seeing any integration tests under the core package that I'd be able to update. As far as updates to a
Thanks for your help! |
Pull request has been modified.
@mrgrain I gave it a shot! Happy to incorporate any feedback 😄 |
|
Hey @maafk I think your code got a little mixed up here with other branches. |
I certainly did 🤦 . Just pushed a clean branch |
| }); | ||
| ``` | ||
|
|
||
| See [Asset Bundling](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3_assets-readme.html#asset-bundling) for more details on bundling options |
There was a problem hiding this comment.
I don't think this will actually translate correctly across the various ways we publish our documentation. I think we can just remove this here and only include the entry in the s3 assets package.
Pull request has been modified.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Thanks for all your work on this! |
closes #21447
Describe the feature
Ability to add --network flag when bundling assets with docker
Use Case
Developers in corporate environments that use locked down developer machines are often restricted in what networks are available to them, and in order to bundle assets properly within a docker container, they must be explicit in the network their container connects to
Proposed Solution
Add optional property to DockerRunOptions and BundlingOptions that would translate into --network {user provided option}
This change would not reflect in any Cloudformation changes, but only with the docker commands performed when bundling
All Submissions:
Adding new Unconventional Dependencies:
New Features
yarn integto deploy the infrastructure and generate the snapshot (i.e.yarn integwithout--dry-run)?By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license