eventual icon indicating copy to clipboard operation
eventual copied to clipboard

Runtime: Docker Lambda Runtime and Base Image

Open thantos opened this issue 2 years ago • 1 comments

I want to...

  • Use docker to deploy api, activity, and event handlers
  • Use a base configuration provided by eventual
  • Deploy 10gb bundles
FROM eventual:base as builder

COPY my-src/ /container-dest/

WORKDIR container-dest/

RUN make

FROM eventual:base
cp --from=builder /container-dest/build/ /home/bin/

https://discord.com/channels/985291961885949973/1053066041149886596/1063453800800727230

Workaround - Using Async Activities

Eventual Developers can interact with any resource, including a customized lambda, any AWS resource, or any non-AWS resource by using Async Activities.

const myActivity = activity("processBigData", () => {
   // the invoked runtime will return a string, could return anything though
   return asyncResult<string>(async (token) => {
       // call other runtime with token.
   });
});

// in the custom runtime

const serviceClient = new AwsHttpServiceClient({ serviceUrl: MY_SERVICE_URL });
await serviceClient.sendActivitySuccess({ activityToken: input.token, result: "someResult" })

thantos avatar Jan 16 '23 16:01 thantos

cc @yehudacohen

sam-goodwin avatar Jan 16 '23 16:01 sam-goodwin