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: | |
labels: | |
jenkins/kube-default: true | |
app: jenkins | |
component: agent | |
spec: | |
containers: |
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
containers: | |
- name: my-main-container | |
# ... | |
# other container config here | |
# ... | |
env: | |
- name: DOCKER_HOST | |
value: tcp://localhost:2375 | |
- name: dind | |
image: docker:18.05-dind |
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
containers: | |
- name: my-container | |
# ... | |
# other container config here | |
# ... | |
volumeMounts: | |
- mountPath: /var/run/docker.sock | |
name: docker-socket-volume | |
securityContext: | |
privileged: true |
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
TODO: Make this show the right error | |
-bash: docker: command not found |
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
# Definition for singly-linked list. | |
# class ListNode: | |
# def __init__(self, x): | |
# self.val = x | |
# self.next = None | |
class Solution: | |
def mergeKLists(self, lists): | |
""" | |
:type lists: List[ListNode] |
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
function getSingleElementByClassName(className) { | |
return document.getElementsByClassName(className)[0]; | |
} | |
function replaceInnerInClass(className, text) { | |
var theClass = getSingleElementByClassName(className); | |
theClass.innerHTML = ''; | |
theClass.appendChild(document.createTextNode(text)); | |
} |