Comments (3)
Making M1 work fine with HL or any other "native" (applies to compiled ones like golang, rust, c++) is hard. That's because AWS Lambda requires Linux amd64 binary. Producing valid binary for compiled languages is done by using Docker with a Linux Amazon Image. The build time of such binary on Docker varies across the different OSes and architectures. For M1, it's painfully slow and very likely that the build process will hang, which is the result of the early stage of Docker amd64 emulation on M1.
While there is an option to make some of the HL commands run fast on M1 by leveraging aarch64 Linux image, it's impossible to run the native-compiled aarch64 binary on AWS Lambda. AWS Lambda will hardly ever support aarch64, and that's why I've asked the question on GraalVM slack whether it's possible to cross-compile on aarch64 to amd64. While certainly, it's possible the GraalVM team may likely not introduce the following change soon.
For now, M1 users should believe that Docker is going to fix the emulation for amd64.
Recommended workarounds for now:
- VNC + Oracle Cloud
- VNC + AWS
- AWS + Cloud9 https://aws.amazon.com/cloud9/
from holy-lambda.
Since 0.6.0 version users with M1 should use ghcr.io/fierycod/holy-lambda-builder:aarch64-java11-21.3.0
or any alternative aarch64
builder available here and target ARM64 Lambda Architecture.
ARM64 is actually much better for Lambda, therefore I recommend it for all the users. See here
from holy-lambda.
Fixed in 0.6.0
EDIT: cc @stevebuik
from holy-lambda.
Related Issues (20)
- Commands which depend on :stack:sync should be restricted to use before using stack:sync
- HL should check if docker image is pulled after docker running check HOT 1
- [FEATURE] Add debug mode HOT 1
- bucket exists check is failing HOT 8
- [FEATURE] CDK support HOT 6
- [BUG] bb stack:invoke fails with babashka library error, event if runtime is java HOT 5
- [FEATURE] Add built in support for for application/edn HOT 1
- [BUG] Issue building/deploying HOT 4
- Tutorial expects creation of a REST API, but template.yml creates an HTTP API HOT 3
- Linked documentation is not available. HOT 1
- [FEATURE] Add support for building ARM64 native binaries when on AMD64
- [FEATURE] Automatically parse body in POST request HOT 1
- [FEATURE] Replace depstar with tools.build in template HOT 14
- [FEATURE] Make it possible to use podman instead of docker HOT 1
- [BUG] Unclear how to use profiles HOT 3
- [FEATURE] Integration with AWS Step Functions HOT 6
- [BUG] Removing docker from the options + running hl:babashka:sync results in download_pods: command not found
- [FEATURE] higher version for babashka runtime HOT 1
- Babashka --config parameter ignored when using hl tasks HOT 1
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 holy-lambda.