Last active
December 9, 2018 19:43
-
-
Save cedrickring/90029377857ee2d3162caf76221c67dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: kaniko | |
spec: | |
initContainers: | |
- name: kaniko-init | |
image: alpine | |
args: | |
- "sh" | |
- "-c" | |
- "while true; do sleep 1; if [ -f /tmp/complete ]; then break; fi done" | |
volumeMounts: | |
- name: build-context | |
mountPath: /kaniko/build-context | |
containers: | |
- name: kaniko | |
image: gcr.io/kaniko-project/executor:latest | |
args: | |
- "--dockerfile=Dockerfile" | |
- "--context=dir:///kaniko/build-context" | |
- "--destination=mytag:latest" | |
volumeMounts: | |
- name: build-context | |
mountPath: /kaniko/build-context | |
- name: docker-config | |
mountPath: /kaniko/.docker | |
volumes: | |
- name: docker-config | |
configMap: | |
name: docker-config | |
- name: build-context | |
emptyDir: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment