Skip to content

Commit

Permalink
Add docker-in-docker image in sidecar to fix Ci issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Basavaraju-G authored and tekton-robot committed Sep 27, 2022
1 parent 1b758b9 commit 09cf998
Showing 1 changed file with 37 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,15 @@ spec:
image: gcr.io/tekton-releases/dogfooding/test-runner:latest
workingDir: $(workspaces.source-code.path)/src/github.com/tektoncd/dashboard
env:
# Connect to the sidecar over TCP, with TLS.
- name: DOCKER_HOST
value: tcp://localhost:2376
# Verify TLS.
- name: DOCKER_TLS_VERIFY
value: '1'
# Use the certs generated by the sidecar daemon.
- name: DOCKER_CERT_PATH
value: /certs/client
- name: GOPATH
value: /workspace
- name: KUBECONFIG
Expand All @@ -129,18 +138,43 @@ spec:
value: $(params.container-registry)
- name: REPO_ROOT_DIR
value: $(workspaces.source-code.path)/src/github.com/tektoncd/dashboard
- name: LOCAL_RUN
value: "0"
- name: SKIP_INITIALIZE
value: "true"
- name: SKIP_BUILD_TEST
value: "true"
- name: SSL_CERT_FILE
value: $(workspaces.registry-shared.path)/cert.pem
value: $(workspaces.registry-shared.path)/cert.pem
command:
- /bin/bash
args:
- -ce
- |
./test/presubmit-tests.sh --integration-tests
volumeMounts:
- mountPath: /certs/client
name: dind-certs
sidecars:
- image: docker:dind
name: server
args:
- --storage-driver=vfs
- --userland-proxy=false
- --debug
securityContext:
privileged: true
env:
- name: DOCKER_TLS_CERTDIR
value: /certs
volumeMounts:
- mountPath: /certs/client
name: dind-certs
readinessProbe:
periodSeconds: 1
exec:
command: ['ls', '/certs/client/ca.pem']
volumes:
- name: dind-certs
emptyDir: {}
params:
- name: container-registry
value: $(params.container-registry)
Expand Down

0 comments on commit 09cf998

Please sign in to comment.