holy-lambda

Kanat Mergenbayev 2023-10-26T04:54:33.408419Z

Hi guys. Can anyone share basic 1.edn file example for ring handler. I have created rest service with holy-lambda and now trying to compile it and put it into docker. Thank you.

Karol Wójcik 2023-10-26T06:43:44.845869Z

What is the reason you need 1.edn? Typically it is used only by GraalVM HL agent.

Kanat Mergenbayev 2023-10-26T06:44:40.404449Z

On compile it throws an error.

Karol Wójcik 2023-10-26T06:45:13.667269Z

On compile or during creating executable using GraalVM?

Kanat Mergenbayev 2023-10-26T06:49:48.676089Z

Kanat Mergenbayev 2023-10-26T06:50:36.831999Z

Kanat Mergenbayev 2023-10-26T06:51:49.398459Z

I am trying to compile/build jar/native image. As I understand I need to provide 1.edn with all routes and queries/body params to test them.

Kanat Mergenbayev 2023-10-26T06:52:14.340889Z

I did the same 1.edn but for simple holy lambda without ring.

Karol Wójcik 2023-10-26T09:34:08.855879Z

You don’t have to.

Karol Wójcik 2023-10-26T09:34:39.822839Z

When using ring you don’t necessarily need 1.edn.

Karol Wójcik 2023-10-26T09:34:59.135499Z

You may use agent in-native-context instead. Should be much easier

Kanat Mergenbayev 2023-10-26T09:36:01.676699Z

Could you please share an example file or project. With ring can I build native image? thnkx

Kanat Mergenbayev 2023-10-26T10:53:41.769439Z

Did you mean? I should fill this one

Kanat Mergenbayev 2023-10-26T11:04:20.152499Z

I removed native_conf.clj file and it started building

Karol Wójcik 2023-10-26T11:40:35.555569Z

Exactly!

Kanat Mergenbayev 2023-10-26T11:41:07.711599Z

Thanks Bro.

Kanat Mergenbayev 2023-10-26T11:45:00.015929Z

One more question. Usually I create a docker file and push it to ECR. Will it work with native images?

Karol Wójcik 2023-10-26T12:05:54.757219Z

Yeah. 👍🏿

Karol Wójcik 2023-10-26T12:06:40.204549Z

If you mean docker AWS lambda deployment then yes! But please be aware that native lambda can be deployed as a single zip

Kanat Mergenbayev 2023-10-26T12:08:12.893129Z

Yep I know. I was thinking to configure GitHub actions and ci/cd to build and push it to ecr on master merge.

Kanat Mergenbayev 2023-10-26T12:09:34.465949Z

But I could not find Dockerfile configuration for native images.