Skip to content

Commit

Permalink
Bump GVisor to the latest release 20240212. (#1027)
Browse files Browse the repository at this point in the history
This change includes an additional flag to disable a new (2023-03)
feature that keeps filesystem changes internal to GVisor, which breaks
the start/stop/restart behavior of package analysis.

Signed-off-by: Caleb Brown <[email protected]>
  • Loading branch information
calebbrown authored Mar 6, 2024
1 parent 49e0b82 commit bb48f38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/analyze/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN apt-get update && apt-get upgrade -y && \
# Install gVisor.
RUN mkdir -m 0700 -p /etc/apt/keyrings && \
curl -fsSL https://gvisor.dev/archive.key -o /etc/apt/keyrings/gvisor.key && \
echo "deb [signed-by=/etc/apt/keyrings/gvisor.key] https://storage.googleapis.com/gvisor/releases 20220425 main" > /etc/apt/sources.list.d/gvisor.list && \
echo "deb [signed-by=/etc/apt/keyrings/gvisor.key] https://storage.googleapis.com/gvisor/releases 20240212 main" > /etc/apt/sources.list.d/gvisor.list && \
apt-get update && apt-get install -y runsc

COPY --from=build /src/analyze /usr/local/bin/analyze
Expand Down
1 change: 1 addition & 0 deletions internal/sandbox/sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ func (s *podmanSandbox) startContainerCmd(ctx context.Context, logDir string) *e
args := []string{
"start",
"--runtime=" + runtimeBin,
"--runtime-flag=overlay2=none",
"--runtime-flag=root=" + rootDir,
"--runtime-flag=debug-log=" + filepath.Join(logDir, "runsc.log.%COMMAND%"),
}
Expand Down

0 comments on commit bb48f38

Please sign in to comment.