-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathBuildAll.sh
executable file
·124 lines (108 loc) · 4.17 KB
/
BuildAll.sh
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
#!/bin/bash
oc new-project example \
--description="Examples - static, php, mojo, hhvm, proxy" \
--display-name="Examples"
echo "static"
oc create -f static/BuildConfig.yaml
oc create -f static/ImageStream.yaml
oc create -f static/DeploymentConfig.yaml
oc create -f static/Services.yaml
oc start-build static
echo "php"
oc create -f php/BuildConfig.yaml
oc create -f php/ImageStream.yaml
oc create -f php/DeploymentConfig.yaml
oc create -f php/Services.yaml
oc start-build php
echo "php-phalcon"
oc create -f php-phalcon/BuildConfig.yaml
oc create -f php-phalcon/ImageStream.yaml
oc create -f php-phalcon/DeploymentConfig.yaml
oc create -f php-phalcon/Services.yaml
oc start-build php-phalcon
echo "mojo"
oc create -f mojo/BuildConfig.yaml- apache (threading) proxy (openshift-webproxy)
oc create -f mojo/ImageStream.yaml
oc create -f mojo/DeploymentConfig.yaml
oc create -f mojo/Services.yaml
oc start-build mojo
echo "hhvm"
oc create -f hhvm/BuildConfig.yaml
oc create -f hhvm/ImageStream.yaml
oc create -f hhvm/DeploymentConfig.yaml
oc create -f hhvm/Services.yaml
oc start-build hhvm
echo "proxy"
oc create -f proxy/BuildConfig.yaml
oc create -f proxy/ImageStream.yaml
oc create -f proxy/DeploymentConfig.yaml
oc create -f proxy/Services.yaml
oc create -f proxy/Route.yaml
oc start-build proxy
echo "wordpress"
oc create -f Gluster-Service.yaml
oc create -f Gluster-Endpoints.yaml
oc create -f wordpress-php/PersistentVolumeClaim.yaml
oc create -f wordpress-php/BuildConfig.yaml
oc create -f wordpress-php/ImageStream.yaml
oc create -f wordpress-php/DeploymentConfig.yaml
oc create -f wordpress-php/Services.yaml
oc create -f wordpress-php/Route.yaml
PASSWORD=$(openssl rand 12 -base64)
echo "DB wordpress USER wordpress PASSWORD ${PASSWORD}"
oc process -f wordpress-php/MysqlTemplate.yaml -v MYSQL_DATABASE=wordpress,VOLUME_CAPACITY=512Mi,MYSQL_USER=wordpress,MYSQL_PASSWORD=${PASSWORD} | oc create -f -
oc start-build wordpress
echo "wordpress hhvm (replace php)"
oc delete -f wordpress-php/BuildConfig.yaml
oc delete -f wordpress-php/DeploymentConfig.yaml
oc delete -f wordpress-php/Services.yaml
oc create -f wordpress-hhvm/BuildConfig.yaml
oc create -f wordpress-hhvm/DeploymentConfig.yaml
oc create -f wordpress-hhvm/Services.yaml
echo "wordpress hhvm"
oc create -f Gluster-Service.yaml
oc create -f Gluster-Endpoints.yaml
oc create -f wordpress-hhvm/PersistentVolumeClaim.yaml
oc create -f wordpress-hhvm/BuildConfig.yaml
oc create -f wordpress-hhvm/ImageStream.yaml
oc create -f wordpress-hhvm/DeploymentConfig.yaml
oc create -f wordpress-hhvm/Services.yaml
oc create -f wordpress-hhvm/Route.yaml
# PASSWORD=$(openssl rand 12 -base64)
# echo "DB wordpress USER wordpress PASSWORD ${PASSWORD}"
# oc process -f wordpress-php/MysqlTemplate.yaml -v MYSQL_DATABASE=wordpress,VOLUME_CAPACITY=512Mi,MYSQL_USER=wordpress,MYSQL_PASSWORD=${PASSWORD} | oc create -f -
# oc start-build wordpress
echo "memsql Master"
#oc create -f Gluster-Service.yaml
#oc create -f Gluster-Endpoints.yaml
oc create -f memsql-master/PersistentVolumeClaim.yaml
oc create -f memsql-master/BuildConfig.yaml
oc create -f memsql-master/ImageStream.yaml
oc create -f memsql-master/DeploymentConfig.yaml
oc create -f memsql-master/Services.yaml
oc create -f memsql-master/Route.yaml
echo "memsql Child0"
oc create -f memsql-child0/PersistentVolumeClaim.yaml
oc create -f memsql-child0/BuildConfig.yaml
oc create -f memsql-child0/ImageStream.yaml
oc create -f memsql-child0/DeploymentConfig.yaml
oc create -f memsql-child0/Services.yaml
echo "memsql Leaf0"
oc create -f memsql-leaf0/PersistentVolumeClaim.yaml
oc create -f memsql-leaf0/BuildConfig.yaml
oc create -f memsql-leaf0/ImageStream.yaml
oc create -f memsql-leaf0/DeploymentConfig.yaml
oc create -f memsql-leaf0/Services.yaml
echo "memsql Leaf1"
oc create -f memsql-leaf1/PersistentVolumeClaim.yaml
oc create -f memsql-leaf1/BuildConfig.yaml
oc create -f memsql-leaf1/ImageStream.yaml
oc create -f memsql-leaf1/DeploymentConfig.yaml
oc create -f memsql-leaf1/Services.yaml
echo "phppgadmin"
oc create -f phppgadmin/BuildConfig.yaml
oc create -f phppgadmin/ImageStream.yaml
oc create -f phppgadmin/DeploymentConfig.yaml
oc create -f phppgadmin/Services.yaml
oc create -f phppgadmin/Route.yaml
oc start-build phppgadmin