Skip to content

Commit 21ac629

Browse files
committed
fix scaffold gradle lockfile fs access
1 parent b02b096 commit 21ac629

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

saturn/pkg/run/python3.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ func (s *Python3Scaffold) RunMatch() *Step {
164164
return &Step{
165165
Name: "Run match",
166166
Callable: func(ctx context.Context, arg *StepArguments) error {
167+
defer s.cleanupContainer(ctx)
167168
out, err := s.Scaffold.RunIsolatedCommand(
168169
ctx,
169170
[]string{},

saturn/pkg/run/scaffold.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ func (s *Scaffold) initContainer(ctx context.Context) error {
213213
ReadOnlyRootFS: true,
214214
Mounts: []string{
215215
fmt.Sprintf("%s:/workspace:rw", scaffoldHostPath),
216+
"tmpfs:/tmp:rw,noexec,nosuid,size=1g", // Writable temp directory
217+
"tmpfs:/workspace/.gradle:rw,noexec,nosuid,size=512m", // Gradle cache
216218
},
217219
CapabilitiesToDrop: []string{"ALL"},
218220
CapabilitiesToAdd: []string{"CHOWN", "SETUID", "SETGID", "DAC_OVERRIDE"},

0 commit comments

Comments
 (0)