Skip to content

Commit 8c963eb

Browse files
authored
Merge pull request #146 from overture-stack/jenkins-dind-fix
Jenkins dind fix
2 parents 353acbd + fbdd7a6 commit 8c963eb

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

Jenkinsfile.groovy

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,27 @@ spec:
1313
image: node:8.16.0-jessie
1414
tty: true
1515
env:
16-
- name: DOCKER_HOST
17-
value: tcp://localhost:2375
16+
- name: DOCKER_HOST
17+
value: tcp://localhost:2375
1818
- name: dind-daemon
1919
image: docker:18.06-dind
2020
securityContext:
2121
privileged: true
22+
runAsUser: 0
2223
volumeMounts:
2324
- name: docker-graph-storage
2425
mountPath: /var/lib/docker
2526
- name: docker
2627
image: docker:18-git
2728
tty: true
28-
volumeMounts:
29-
- mountPath: /var/run/docker.sock
30-
name: docker-sock
29+
env:
30+
- name: DOCKER_HOST
31+
value: tcp://localhost:2375
32+
- name: HOME
33+
value: /home/jenkins/agent
34+
securityContext:
35+
runAsUser: 1000
3136
volumes:
32-
- name: docker-sock
33-
hostPath:
34-
path: /var/run/docker.sock
35-
type: File
3637
- name: docker-graph-storage
3738
emptyDir: {}
3839
"""

0 commit comments

Comments
 (0)