File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 3
3
FROM ghcr.io/google/tsunami-scanner-devel:latest AS build
4
4
5
5
# Compile the callback server
6
-
7
6
WORKDIR /usr/repos/tsunami-security-scanner-callback-server
8
7
COPY . .
9
8
RUN gradle shadowJar
10
- RUN mkdir /usr/tsunami
9
+ RUN mkdir -p /usr/tsunami
11
10
RUN find . -name 'tcs-main-*.jar' -exec cp {} /usr/tsunami/tsunami-tcs.jar \; \
12
11
&& cp tcs_config.yaml /usr/tsunami/tcs_config.yaml
13
12
13
+ # Compile proto definitions for Python plugins
14
+ RUN mkdir -p /usr/tsunami/py_server
15
+ RUN python3 -m grpc_tools.protoc \
16
+ -I/usr/repos/tsunami-security-scanner-callback-server/proto \
17
+ --python_out=/usr/tsunami/py_server/ \
18
+ --grpc_python_out=/usr/tsunami/py_server/ \
19
+ /usr/repos/tsunami-security-scanner-callback-server/proto/*.proto
20
+
14
21
# # Stage 2: Release
15
22
16
23
FROM scratch AS release
17
24
18
25
# Copy previous build results
19
26
COPY --from=build /usr/tsunami/tsunami-tcs.jar /usr/tsunami/
20
27
COPY --from=build /usr/tsunami/tcs_config.yaml /usr/tsunami/
28
+ COPY --from=build /usr/tsunami/py_server/ /usr/tsunami/py_server
You can’t perform that action at this time.
0 commit comments