-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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(cdk): Add Dockerfile #1569
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide some more context (and probably document in the contributing guide) what use case does it serve and how to use it?
The use-cases are mainly around using the CDK in environments where running tools in docker is preferred over installing and running through npm. This gives an easier and more official way to run the CDK in that way. As examples of this there are a number of CI platforms that either have first-class support (e.g. Jenkins pipelines), or only support (e.g. GitHub Actions), for running via a docker image. |
This is a great addition to the CDK. I'll add a blurb in the guide once we merge, and make it public once it's in a release. |
git \ | ||
rsync \ | ||
zip \ | ||
python3 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do we need python3 for? o_O
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is used during testing, see https://github.com/awslabs/aws-cdk/blob/master/packages/%40aws-cdk/aws-s3-deployment/lambda/test.sh#L19-L22
fixes #1302
This PR should be followed up with a Dockerhub automated build configured to build from git tags
Pull Request Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.