-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathserver.bc.json
More file actions
86 lines (86 loc) · 1.84 KB
/
server.bc.json
File metadata and controls
86 lines (86 loc) · 1.84 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
{
"kind": "Template",
"apiVersion": "v1",
"labels": {
"app": "${APP_NAME}",
"template": "${APP_NAME}-server"
},
"parameters": [
{
"name": "NAMESPACE",
"description": "The OpenShift namespace in which to deploy the server",
"required": true
},
{
"name": "APP_NAME",
"description": "App name that OpenShift objects will be prefixed with",
"required": true
},
{
"name": "REPO",
"description": "URL of boilerplate repository",
"required": true
},
{
"name": "BRANCH",
"description": "Branch of the boilerplate repository that should be built",
"required": true
},
{
"name": "IMAGE_TAG",
"description": "ImageStream tag for build and deploy",
"required": true
}
],
"objects": [
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "${APP_NAME}-server"
}
},
{
"kind": "BuildConfig",
"apiVersion": "v1",
"metadata": {
"name": "${APP_NAME}-server"
},
"spec": {
"completionDeadlineSeconds": 600,
"triggers": [
{
"type": "ImageChange"
},
{
"type": "ConfigChange"
}
],
"runPolicy": "SerialLatestOnly",
"source": {
"type": "Git",
"git": {
"uri": "${REPO}",
"ref": "origin/${BRANCH}"
}
},
"strategy": {
"type": "Docker"
},
"output": {
"to": {
"kind": "ImageStreamTag",
"name": "${APP_NAME}-server:${IMAGE_TAG}",
"namespace": "${NAMESPACE}"
}
},
"resources": {
"limits": {
"cpu": "2",
"memory": "4Gi"
}
}
}
}
]
}