Comments (3)
It's all open – the zip files are built using https://github.com/lambci/git-lambda-layer/blob/master/lambda1/build.sh and https://github.com/lambci/git-lambda-layer/blob/master/lambda2/build.sh
from git-lambda-layer.
Thank you very much für your time. This helped me a lot, as I rarely worked with docker. I spend the last day creating some own docker images now and I am beginning to understand how this works. :)
However you seem to use your own Docker image lambci/yumda which does most of the magic here. In the build process of lambci/yumda you use the following command:
curl https://lambci.s3.amazonaws.com/fs/base-2.tgz | tar -xz -C /lambda
This seems kinda strange, as this file contains binary files.
from git-lambda-layer.
Those binary files come from Lambda. AWS doesn't release docker images for Lambda – the only way to replicate the Lambda environment is to do it yourself. That tarball is produced by the https://github.com/lambci/docker-lambda project, which AWS themselves use in the AWS SAM CLI.
You can create your own Lambda-like environment if you don't want to copy over binaries from Lambda. Start with https://github.com/amazonlinux/container-images/blob/93b9c7974ab6ddd65abace3bf68c20005e5ee82a/Dockerfile and then remove/add the same packages as what exist on Lambda. Of course, the tarball in that docker image still contains binary files, which you find strange, so if you didn't want that, then you'll need to create your own amazon linux docker image from scratch.
from git-lambda-layer.
Related Issues (20)
- Nodejs12 doesn't seem to be working with layer v3? HOT 2
- Lambda nodejs12.x - Permission denied (Public Key) HOT 2
- File too short on shared library libpcre2-8.so.0 HOT 6
- Add support for git lfs HOT 4
- Cannot load PCRE HOT 6
- AccessDeniedException on Gov Cloud? HOT 4
- Python import git module error for AWS Lambda HOT 1
- Lambda -> Git SSH Authentication HOT 13
- Could not deploy because lambda with layer exceeded 250 mb... HOT 3
- How to use "git push" ? HOT 7
- Support for GIT v2.30.2 because of Security Vulnerability HOT 3
- [Question] Uploading my own zip file HOT 5
- Support for using layer.zip with AWS Lambda containers HOT 7
- Support for using aws cli executable
- clone with ssh protocol hit issues
- Support for arm64 lambdas HOT 3
- How can I create my own layer? HOT 4
- using layer with python in Lambda function HOT 2
- Update to latest versions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-lambda-layer.