Skip to content

Commit 8362898

Browse files
committed
Run cleanup as root so we can access apt
1 parent 4b51df5 commit 8362898

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Docker/Converters/CleanupConverter.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ protected override V1Container GetBaseContainer(string name, DockerService servi
1515

1616
var container = base.GetBaseContainer(name, service, sentryDeployment);
1717

18+
container.SecurityContext ??= new V1SecurityContext();
19+
container.SecurityContext.RunAsUser = 0;
20+
1821
container.Command = new List<string>
1922
{
2023
"/bin/bash",

SentryOperator.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222

2323
</ItemGroup>
2424

25+
<ItemGroup>
26+
<Content Include=".github\workflows\docker-publish.yml" />
27+
</ItemGroup>
28+
2529

2630

2731

0 commit comments

Comments
 (0)