Skip to content

Commit 73f4964

Browse files
committed
Mount vol
1 parent 0db3e6e commit 73f4964

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

ent_runners_dind.tf

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,23 @@ resource "kubernetes_manifest" "github_ent_runners_dind" {
1616
enterprise = each.value.name
1717
initContainers = [
1818
{
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"]
2120
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+
]
2336
}
2437
]
2538
dockerdWithinRunnerContainer = true

0 commit comments

Comments
 (0)