Skip to content

Commit 0e5126f

Browse files
Fix CI building (#425)
* Fix CI building * Fix proxy usage of old methods
1 parent f95814a commit 0e5126f

File tree

2 files changed

+17
-25
lines changed

2 files changed

+17
-25
lines changed
Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20 AS build
1+
FROM node:20
22

33
WORKDIR /usr/src/app
44

@@ -9,18 +9,9 @@ RUN npm install
99
RUN npm run proto
1010
RUN npm run build
1111

12-
FROM node:20 as prod
13-
WORKDIR /usr/src/app
14-
15-
# Install app dependencies
16-
COPY ./packages/restate-e2e-services/package*.json ./
17-
RUN npm install --production
18-
19-
COPY --from=build /usr/src/app/packages/restate-e2e-services/dist /usr/src/app/dist
20-
2112
# Install Tini
2213
RUN apt-get update && apt-get -y install tini
2314

2415
EXPOSE 8080
2516
ENTRYPOINT ["tini", "--"]
26-
CMD ["node", "/usr/src/app/dist/src/app.js"]
17+
CMD ["node", "/usr/src/app/packages/restate-e2e-services/dist/src/app.js"]

packages/restate-e2e-services/src/proxy.ts

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ async function rawCall(
3333
key?: string
3434
) {
3535
const input = new Uint8Array(message);
36-
const response: Uint8Array = await (ctx as any).invoke(
37-
serviceName,
38-
handlerName,
39-
input,
40-
key
41-
);
36+
const response: Uint8Array = await ctx.genericCall({
37+
service: serviceName,
38+
method: handlerName,
39+
key: key,
40+
inputSerde: restate.serde.binary,
41+
outputSerde: restate.serde.binary,
42+
parameter: input,
43+
});
4244

4345
return Array.from(response);
4446
}
@@ -51,14 +53,13 @@ async function rawSend(
5153
key?: string
5254
) {
5355
const input = new Uint8Array(message);
54-
await (ctx as any).invokeOneWay(
55-
serviceName,
56-
handlerName,
57-
input,
58-
undefined,
59-
undefined,
60-
key
61-
);
56+
ctx.genericSend({
57+
service: serviceName,
58+
method: handlerName,
59+
key: key,
60+
inputSerde: restate.serde.binary,
61+
parameter: input,
62+
});
6263
}
6364

6465
const o = restate.service({

0 commit comments

Comments
 (0)