-
Notifications
You must be signed in to change notification settings - Fork 6
/
builders.yaml
121 lines (120 loc) · 2.88 KB
/
builders.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
apiVersion: v1
kind: Template
metadata:
creationTimestamp: null
name: scale-test
parameters:
- name: DOCKER_REGISTRY
description: "Local docker registry"
value: image-registry.openshift-image-registry.svc:5000
- name: NAMESPACE
description: "Test namespace"
value: mannequin-test
objects:
- apiVersion: v1 #added because getting 'error: no image stream named "openjdk18-openshift" exists, pass --confirm to create and import' image.openshift.io/v1
kind: ImageStream
metadata:
name: openjdk18-openshift
spec:
tags:
- from:
kind: DockerImage
name: registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:latest
name: latest
referencePolicy:
type: Local
- apiVersion: v1
kind: ImageStream
metadata:
name: ubi-quarkus-native-s2i
spec:
tags:
- from:
kind: DockerImage
name: quay.io/quarkus/ubi-quarkus-native-s2i:19.2.1
name: latest
referencePolicy:
type: Local
- apiVersion: v1
kind: ImageStream
metadata:
name: mannequin-builder
spec:
tags:
- from:
kind: DockerImage
name: ${DOCKER_REGISTRY}/${NAMESPACE}/mannequin-builder:latest
name: latest
referencePolicy:
type: Source
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: mannequin
spec:
tags:
- from:
kind: DockerImage
name: ${DOCKER_REGISTRY}/${NAMESPACE}/mannequin:latest
name: latest
referencePolicy:
type: Source
- apiVersion: v1
kind: BuildConfig
metadata:
labels:
app: mannequin
name: mannequin-builder
spec:
output:
to:
kind: ImageStreamTag
name: mannequin-builder:latest
runPolicy: Serial
source:
git:
uri: https://github.com/RedHatPerf/mannequin
type: Git
strategy:
sourceStrategy:
from:
kind: DockerImage
name: quay.io/quarkus/ubi-quarkus-native-s2i:19.1.1
type: Source
- apiVersion: v1
kind: BuildConfig
metadata:
labels:
app: mannequin
name: mannequin
spec:
output:
to:
kind: ImageStreamTag
name: mannequin:latest
runPolicy: Serial
source:
dockerfile: |
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
ADD --chown=1001 /tmp/mannequin-1.0-SNAPSHOT-runner /mannequin
USER 1001
EXPOSE 8080/tcp 5432/tcp
ENTRYPOINT /mannequin
images:
- from:
kind: ImageStreamTag
name: mannequin-builder:latest
paths:
- sourcePath: /tmp/src/target/mannequin-1.0-SNAPSHOT-runner
destinationDir: tmp
type: Dockerfile
strategy:
dockerStrategy: {}
type: Docker
triggers:
- type: ConfigChange
- imageChange:
from:
kind: ImageStreamTag
name: mannequin-builder:latest
type: ImageChange