-
Notifications
You must be signed in to change notification settings - Fork 269
/
template.yml
86 lines (86 loc) · 2.19 KB
/
template.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
apiVersion: template.openshift.io/v1
kind: Template
labels:
template: rabbitmq
metadata:
annotations:
description: RabbitMQ Build Components
iconClass: icon-erlang
tags: erlang, rabbitmq
name: rabbitmq
objects:
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
application: rabbitmq
name: rabbitmq
spec:
lookupPolicy:
local: true
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
application: "${APPLICATION_NAME}"
name: "${APPLICATION_NAME}"
spec:
output:
to:
kind: ImageStreamTag
name: "rabbitmq:${RABBITMQ_VERSION}"
source:
contextDir: "${CONTEXT_DIR}"
git:
ref: "${SOURCE_REPOSITORY_REF}"
uri: "${SOURCE_REPOSITORY_URL}"
type: Git
strategy:
dockerStrategy:
env:
- name: ERLANG_VERSION
value: "${ERLANG_VERSION}"
- name: RABBITMQ_AUTOCLUSTER_VERSION
value: "${RABBITMQ_AUTOCLUSTER_VERSION}"
- name: RABBITMQ_VERSION
value: "${RABBITMQ_VERSION}"
forcePull: true
from:
kind: ImageStreamTag
name: "${FROM_IMAGE}"
type: Docker
triggers:
- imageChange: {}
type: ImageChange
- type: ConfigChange
parameters:
- description: The name for the application.
name: APPLICATION_NAME
required: true
value: rabbitmq
- description: Path within Git repository to build; empty for root of repository
name: CONTEXT_DIR
value: rabbitmq
- description: Erlang version to use
name: ERLANG_VERSION
required: true
value: 22.1.4
- description: Image stream tag for the image you'd like to use to build the application
name: FROM_IMAGE
required: true
value: ubi-minimal:8.3
- description: RabbitMQ Autocluster version to use
name: RABBITMQ_AUTOCLUSTER_VERSION
required: true
value: 0.10.0
- description: RabbitMQ version to build
name: RABBITMQ_VERSION
required: true
value: 3.8.3
- description: Git branch/tag reference
name: SOURCE_REPOSITORY_REF
value: master
- description: Git source URL for application
name: SOURCE_REPOSITORY_URL
required: true
value: https://github.com/redhat-cop/containers-quickstarts