-
Notifications
You must be signed in to change notification settings - Fork 535
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
Requirements for building the lambda function #44
Comments
I'm noticing that some things are failing in the build command but not actually failing the build. Part of what I'm missing in my
This got me a little farther in the my errors in CloudWatch now are:
I've updated the |
Closing this issue as I believe that I've gotten past them all. I intend on opening a pull request instead. |
@leviwilson do you have your Dockerfile pushed anywhere I can see? I'm close, but looks like I'm running into the same pycurl error you were: https://github.com/timkelty/serverless-image-handler/tree/docker/docker Update: oh duh, its posted above…I was actually able to get mine building from |
@leviwilson awesome, thank you! |
@timkelty note that I did that prior to this repo updating their latest release...there are merge conflicts vs. master that I hadn't bothered to fix since I've not gotten any feedback on my PR ¯_(ツ)_/¯ |
@leviwilson that's a bummer… @gsingh04 and ideas on how we can move some of these PRs along? |
@leviwilson do you have a recent workflow (current Dockerfile) for building this? I want to avoid a rabbit hole if possible. |
@rromanchuk this is what I'd done the last time we needed to build it |
I'm having issues being able to successfully build the
./build-s3-dist.sh source-bucket-base-name
. The README doesn't specify what the base OS requirements are for building the solution, but givenyum
is mentioned I assumed that it was built on an Amazon Linux AMI or the like. To get around this I'm working on aDockerfile
that bases the image off of theamazonlinux
based image.pip
The first issue I ran into is that the latest version of
pip
does not exposereq
, so forpip
> version10
it needs to saypip._internal.req
rather thanpip.req
. Here is what I've updated bothsetup.py
to contain to get around it.However, when
tornado_botocore
is included, it suffers from the same problem:To get around this, I had to update
'tornado_botocore==1.3.2'
as well as'botocore==1.8'
as those versions have updates around thepip
issue.pycurl
The next issue that I found was when installing
pycurl
. Here is the output:So it'd seem that the
amazonlinux
base image isn't setup to be able to buildpycurl
. In order to get around that issue, I had to do the following:Success? ✅
...or so I thought. I was at least able to build the ZIP and deploy the function, however when I went to convert an image I got a
502
. Here are a couple of things from the CloudWatch logs:So, the bump for
botocore
seemed to have broken some things withtc_aws
, so in order to get past that I had to use'tc_aws==6.2.10'
per thumbor-community/aws#100.Where I'm At
After bumping
tc_aws
and deploying the latest built package, now all I'm relegated is a502
still and simply a message that says:At this point, I'm at a loss at what to look into, so any help would be greatly appreciated to point me in the right direction as to what I might be doing wrong. I'll probably try loading an actual AWS AMI that Lambda is using and see if I get the same results or not from there.
Ultimately, all I'm trying to do is bump thumbor to
6.5.2
but I've thus far been unsuccessful at even building a package that I can start with.Here is the
Dockerfile
that I'm currently attempting this with:The text was updated successfully, but these errors were encountered: