mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 08:15:49 +00:00
Create build-pod.yaml
This commit is contained in:
parent
ee77b055d9
commit
e7c61085d8
1 changed files with 25 additions and 0 deletions
25
build-pod.yaml
Normal file
25
build-pod.yaml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
spec:
|
||||||
|
containers: # list of containers that you want present for your build, you can define a default container in the Jenkinsfile
|
||||||
|
- name: maven
|
||||||
|
image: maven:3.5.4-jdk-8-slim
|
||||||
|
command: ["tail", "-f", "/dev/null"] # this or any command that is bascially a noop is required, this is so that you don't overwrite the entrypoint of the base container
|
||||||
|
imagePullPolicy: Always # use cache or pull image for agent
|
||||||
|
resources: # limits the resources your build contaienr
|
||||||
|
requests:
|
||||||
|
memory: "1Gi"
|
||||||
|
cpu: "500m"
|
||||||
|
limits:
|
||||||
|
memory: "1Gi"
|
||||||
|
- name: docker
|
||||||
|
image: docker:18.06.1
|
||||||
|
command: ["tail", "-f", "/dev/null"]
|
||||||
|
imagePullPolicy: Always
|
||||||
|
volumeMounts:
|
||||||
|
- name: docker
|
||||||
|
mountPath: /var/run/docker.sock # We use the k8s host docker engine
|
||||||
|
volumes:
|
||||||
|
- name: docker
|
||||||
|
hostPath:
|
||||||
|
path: /var/run/docker.sock
|
Loading…
Reference in a new issue