-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbctemplate.yml
63 lines (63 loc) · 1.45 KB
/
bctemplate.yml
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
apiVersion: v1
kind: Template
metadata:
name: service-cert-template
annotations:
description: Template to add keystore/ trust store to Java Image
objects:
- apiVersion: v1
kind: ImageStream
metadata:
name: ${NAME}
spec:
lookupPolicy:
local: true
- apiVersion: v1
kind: ImageStream
metadata:
name: ${ORIGINAL_IMAGE_NAME}
spec:
dockerImageRepository: ${DOCKER_IMAGE}
- apiVersion: v1
kind: BuildConfig
metadata:
name: ${NAME}
spec:
output:
to:
kind: ImageStreamTag
name: ${NAME}:latest
source:
type: Binary
strategy:
dockerStrategy:
env:
- name: OCP_VERSION
value: "${VERSION}"
from:
kind: DockerImage
name: ${DOCKER_IMAGE}
type: Docker
triggers:
- type: ConfigChange
- imageChange: {}
type: ImageChange
parameters:
- name: NAME
displayName: Name
description: Name Applied to the Resulting ImageStream and BuildConfig
value: amq63-openshift-cert
required: true
- name: VERSION
displayName: OpenShift Container Platform Version
description: Version of the OpenShift Container Platform
value: "3.6"
required: true
- name: DOCKER_IMAGE
displayName: Java Image to add Keystore/ Trust store to
value: registry.access.redhat.com/jboss-amq-6/amq63-openshift
required: true
- name: ORIGINAL_IMAGE_NAME
displayName: Short name of the image to be layered on
value: amq63-openshift
required: true