-
Notifications
You must be signed in to change notification settings - Fork 123
Conversation
Hi @asavoy. I like this, thanks for submitting it. Could you please use the example to create a new test under the I think the references to |
6a05cb8
to
c4d0456
Compare
Thanks for the corrections, I've changed accordingly. |
An escape hatch for use cases where the built-in build script is not usable; one example is that the Python dependencies require platform-dependent native extensions.
It supports `base64 -d` or `base64 --decode` but not `base64 -D`. Not sure where `-D` is supported but I'm hoping `--decode` works there.
When I tried this, it was creating the Lambda build files as the root user and then it failed trying to clean them up. This now does everything including setting ownership inside Docker. I also removed the default values because I'd rather it break then default to something that may not be intended.
I've made a branch https://github.com/claranet/terraform-aws-lambda/compare/ray/custom-build-script with a couple of tweaks and fixes. Please take a look and let me know what you think. I would have tried to push it to your branch (not sure if I have permissions or not) but it required rebasing to fix the merge conflicts and I didn't want to do a I like this feature. I am also thinking that separately we should add this Docker behaviour to |
One thing we need to solve is that #31 changes
to:
So it will use whichever version of Python is running, in a way that works in both Linux and Windows. We don't want to run all custom build scripts with Python, so |
51c1a43
to
26b50cb
Compare
@raymondbutcher Cool, thanks for looking into it so quickly! Appreciate the time you've taken to get it working under Linux. My notes so far:
|
I'm leaning towards:
Notes:
|
Hi @raymondbutcher, unfortunately I don't expect to have time to review anything for at least a few weeks due to work commitments and vacation. Don't let me hold you back, but just wanted to clarify when I'll next be able to return to it. Thanks for your efforts in integrating the feature. |
No worries. I've merged the other one just now. Thanks again! |
Adds a
build_script
variable to allow specifying a custom build script.This is intended as an escape hatch for use cases where the default build script is not suitable. An example is provided in
examples/build.sh
.I've opened a PR to get a sense of whether there is interest in this. If so, I'm open to changes and suggestions (perhaps more documentation and a simpler build example).