Skip to content

[Question] Uploading my own zip file #31

Open

Description

@arielwb

Hello!

I'm trying to use your project in my lambda, but due to restriction of my company's infrastructure, I need to deploy the git layer to our own s3.

I uploaded this zip file to our s3 but it did not work, git is still unavailable.

My question is: Is this zip file supposed to work used like this?
It totally can be something on my end, but it appears that everything is as it should, so I came here to exclude this possibility :)

Activity

  1. mhart commented on May 25, 2021

    @mhart
    Member

    Yep, that should work (make sure you're using the appropriate zipfile for your Lambda runtime) – you can just copy the commands here to publish your own layer: https://github.com/lambci/git-lambda-layer/blob/master/lambda2/publish.sh

  2. arielwb commented on May 31, 2021

    @arielwb
    Author

    Thank you for your reply!

    I did manage to go a step further than I was before, but I'm not there yet hahahhah

    I'm using your build script to generate the zip file, and I'm getting the following error when I try to clone a repo:

    /opt/libexec/git-core/git-remote-https: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
    

    I'm thinking that maybe I'm not using the correct docker image for my runtime?
    My Lambda runs on node 12.x, and from what I got from the repo, the image you use to build is lambci/yumda:2 right?

    Thank you so much! Any help will be appreciated :)

  3. Mickaz89 commented on Jul 26, 2021

    @Mickaz89

    Same error for me , i uploaded the zip but git still unavailable

  4. Mickaz89 commented on Jul 26, 2021

    @Mickaz89

    ?

  5. leumifintech commented on Aug 9, 2021

    @leumifintech

    ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions