forked from bcgov/openshift-postgresql-oracle_fdw
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild-template.json
More file actions
138 lines (138 loc) · 3.19 KB
/
build-template.json
File metadata and controls
138 lines (138 loc) · 3.19 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"kind": "Template",
"apiVersion": "v1",
"metadata":
{
"name": "python36-oracle-build-template",
"creationTimestamp": null
},
"objects": [
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata":
{
"name": "python36-oracle"
}
},
{
"kind": "BuildConfig",
"apiVersion": "v1",
"metadata":
{
"name": "python36-oracle",
"creationTimestamp": null,
"labels":
{
"app": "python36-oracle"
}
},
"spec":
{
"runPolicy": "Serial",
"source":
{
"type": "Git",
"git":
{
"ref": "${GIT_REF}",
"uri": "${GIT_REPO_URL}"
},
"contextDir": "/"
},
"strategy":
{
"type": "Docker",
"dockerStrategy":
{
"dockerfilePath": "${DOCKER_FILE_PATH}"
}
},
"output":
{
"to":
{
"kind": "ImageStreamTag",
"name": "python36-oracle:${OUTPUT_IMAGE_TAG}"
}
},
"resources": {
"requests": {
"cpu": "${CPU_REQUEST}",
"memory": "${MEMORY_REQUEST}"
},
"limits": {
"cpu": "${CPU_LIMIT}",
"memory": "${MEMORY_LIMIT}"
}
},
"triggers": [
{
"type": "ImageChange"
},
{
"type": "ConfigChange"
}
]
}
}
],
"parameters": [
{
"name": "GIT_REPO_URL",
"displayName": "Git Repo URL",
"description": "The URL to your GIT repo.",
"required": true,
"value": "https://github.com/molund/openshift-python36-oracle-instant-client.git"
},
{
"name": "GIT_REF",
"displayName": "Git Reference",
"description": "The git reference or branch.",
"required": true,
"value": "master"
},
{
"name": "OUTPUT_IMAGE_TAG",
"displayName": "Output Image Tag",
"description": "The tag given to the built image.",
"required": true,
"value": "latest"
},
{
"name": "DOCKER_FILE_PATH",
"displayName": "Docker File Path",
"description": "The path to the docker file.",
"required": true,
"value": "Dockerfile"
},
{
"name": "CPU_LIMIT",
"displayName": "Resources CPU Limit",
"description": "The resources CPU limit (in cores) for this build.",
"required": true,
"value": "2"
},
{
"name": "MEMORY_LIMIT",
"displayName": "Resources Memory Limit",
"description": "The resources Memory limit (in Mi, Gi, etc) for this build.",
"required": true,
"value": "2Gi"
},
{
"name": "CPU_REQUEST",
"displayName": "Resources CPU Request",
"description": "The resources CPU request (in cores) for this build.",
"required": true,
"value": "1"
},
{
"name": "MEMORY_REQUEST",
"displayName": "Resources Memory Request",
"description": "The resources Memory request (in Mi, Gi, etc) for this build.",
"required": true,
"value": "2Gi"
}
]
}