I'm trying to use native backend and bb hl:native:executable builds correctly, but when I test with sam local invoke MyHandler I get this error:
Local image was not found...Building image......
Failed to build Docker Image
NoneType: None
Error: Error building docker image: pull access denied for ..., repository does not exist or may require 'docker login': denied: requested access to the resource is denied
solved - the sam build step is missing from https://fierycod.github.io/holy-lambda/#/native-backend-tutorial after step 5
It’s not. You are can have either docker based deployment of Clojure lambda or native lambda. Not both
ok I've misunderstood what's going on then
what should I do about that error ?
You should remove the Docker configuration from your template and use the zip instead of Docker
thanks how do I use the latest.zip with sam local invoke ? I've never done this before and I'm clueless
Create a new project and see how it’s done 🙏
for those searching in the future the relevant line is: https://github.com/FieryCod/holy-lambda/blob/bcecb506beae43ccec6964645d37457bed4eb95f/docs/examples/getting-started/native-backend/holy-lambda-example/template.yml#L32
Bingo!
I'm now trying to test on my M1 mac with a nativeimage aarch64 build but sam local invoke says
Error: Runtime provided is not supported on 'arm64' architecture
I'm using for my :image in bb.edn
Yes. You have to change the architecture in template.yml as well.
I've done that
Ah, I see. Wrong provided runtime. Let me see in the documentation.
Try provided.al2
thankyou so much!
I'm guessing that stands for arch linux 2 but how did you know it was that ?
is it because it defaults to amd64 ?
Yep. I read the Amazon documentation. Anything that is template.yml specific is framework agnostic.
well I've been reading the documentation but couldn't find this
🙈