File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,23 @@ resource "kubernetes_manifest" "github_ent_runners_dind" {
16
16
enterprise = each.value.name
17
17
initContainers = [
18
18
{
19
- # command = ["sh", "-c", "cat /home/runner/config.json > /home/runner/.docker/config.json && sleep 20"]
20
- command = [" sh" , " -c" , " sleep 30 && cat /home/runner/config.json" ]
19
+ command = [" sh" , " -c" , " cat /home/runner/config.json > /home/runner/.docker/config.json" ]
21
20
image = " alpine"
22
- name = " dockerconfigwriter"
21
+ securityContext = {
22
+ fsGroup = 1000
23
+ }
24
+ name = " dockerconfigwriter"
25
+ volumeMounts = [
26
+ {
27
+ mountPath = " /home/runner/config.json"
28
+ subPath = " config.json"
29
+ name = " docker-secret"
30
+ },
31
+ {
32
+ mountPath = " /home/runner/.docker"
33
+ name = " docker-config-volume"
34
+ },
35
+ ]
23
36
}
24
37
]
25
38
dockerdWithinRunnerContainer = true
You can’t perform that action at this time.
0 commit comments