|
@@ -17,7 +17,7 @@
|
|
"kind": "Service",
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"metadata": {
|
|
- "name": "cakephp-frontend",
|
|
|
|
|
|
+ "name": "cakephp-mysql-example",
|
|
"annotations": {
|
|
"annotations": {
|
|
"description": "Exposes and load balances the application pods"
|
|
"description": "Exposes and load balances the application pods"
|
|
}
|
|
}
|
|
@@ -31,7 +31,7 @@
|
|
}
|
|
}
|
|
],
|
|
],
|
|
"selector": {
|
|
"selector": {
|
|
- "name": "cakephp-frontend"
|
|
|
|
|
|
+ "name": "cakephp-mysql-example"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -39,13 +39,13 @@
|
|
"kind": "Route",
|
|
"kind": "Route",
|
|
"apiVersion": "v1",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"metadata": {
|
|
- "name": "cakephp-route"
|
|
|
|
|
|
+ "name": "cakephp-mysql-example"
|
|
},
|
|
},
|
|
"spec": {
|
|
"spec": {
|
|
"host": "${APPLICATION_DOMAIN}",
|
|
"host": "${APPLICATION_DOMAIN}",
|
|
"to": {
|
|
"to": {
|
|
"kind": "Service",
|
|
"kind": "Service",
|
|
- "name": "cakephp-frontend"
|
|
|
|
|
|
+ "name": "cakephp-mysql-example"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -53,7 +53,7 @@
|
|
"kind": "ImageStream",
|
|
"kind": "ImageStream",
|
|
"apiVersion": "v1",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"metadata": {
|
|
- "name": "cakephp-example",
|
|
|
|
|
|
+ "name": "cakephp-mysql-example",
|
|
"annotations": {
|
|
"annotations": {
|
|
"description": "Keeps track of changes in the application image"
|
|
"description": "Keeps track of changes in the application image"
|
|
}
|
|
}
|
|
@@ -63,7 +63,7 @@
|
|
"kind": "BuildConfig",
|
|
"kind": "BuildConfig",
|
|
"apiVersion": "v1",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"metadata": {
|
|
- "name": "cakephp-example",
|
|
|
|
|
|
+ "name": "cakephp-mysql-example",
|
|
"annotations": {
|
|
"annotations": {
|
|
"description": "Defines how to build the application"
|
|
"description": "Defines how to build the application"
|
|
}
|
|
}
|
|
@@ -90,7 +90,7 @@
|
|
"output": {
|
|
"output": {
|
|
"to": {
|
|
"to": {
|
|
"kind": "ImageStreamTag",
|
|
"kind": "ImageStreamTag",
|
|
- "name": "cakephp-example:latest"
|
|
|
|
|
|
+ "name": "cakephp-mysql-example:latest"
|
|
}
|
|
}
|
|
},
|
|
},
|
|
"triggers": [
|
|
"triggers": [
|
|
@@ -110,7 +110,7 @@
|
|
"kind": "DeploymentConfig",
|
|
"kind": "DeploymentConfig",
|
|
"apiVersion": "v1",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"metadata": {
|
|
- "name": "cakephp-frontend",
|
|
|
|
|
|
+ "name": "cakephp-mysql-example",
|
|
"annotations": {
|
|
"annotations": {
|
|
"description": "Defines how to deploy the application server"
|
|
"description": "Defines how to deploy the application server"
|
|
}
|
|
}
|
|
@@ -125,7 +125,7 @@
|
|
"command": [
|
|
"command": [
|
|
"./migrate-database.sh"
|
|
"./migrate-database.sh"
|
|
],
|
|
],
|
|
- "containerName": "cakephp-example"
|
|
|
|
|
|
+ "containerName": "cakephp-mysql-example"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -136,11 +136,11 @@
|
|
"imageChangeParams": {
|
|
"imageChangeParams": {
|
|
"automatic": true,
|
|
"automatic": true,
|
|
"containerNames": [
|
|
"containerNames": [
|
|
- "cakephp-example"
|
|
|
|
|
|
+ "cakephp-mysql-example"
|
|
],
|
|
],
|
|
"from": {
|
|
"from": {
|
|
"kind": "ImageStreamTag",
|
|
"kind": "ImageStreamTag",
|
|
- "name": "cakephp-example:latest"
|
|
|
|
|
|
+ "name": "cakephp-mysql-example:latest"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -150,20 +150,20 @@
|
|
],
|
|
],
|
|
"replicas": 1,
|
|
"replicas": 1,
|
|
"selector": {
|
|
"selector": {
|
|
- "name": "cakephp-frontend"
|
|
|
|
|
|
+ "name": "cakephp-mysql-example"
|
|
},
|
|
},
|
|
"template": {
|
|
"template": {
|
|
"metadata": {
|
|
"metadata": {
|
|
- "name": "cakephp-frontend",
|
|
|
|
|
|
+ "name": "cakephp-mysql-example",
|
|
"labels": {
|
|
"labels": {
|
|
- "name": "cakephp-frontend"
|
|
|
|
|
|
+ "name": "cakephp-mysql-example"
|
|
}
|
|
}
|
|
},
|
|
},
|
|
"spec": {
|
|
"spec": {
|
|
"containers": [
|
|
"containers": [
|
|
{
|
|
{
|
|
- "name": "cakephp-example",
|
|
|
|
- "image": "cakephp-example",
|
|
|
|
|
|
+ "name": "cakephp-mysql-example",
|
|
|
|
+ "image": "cakephp-mysql-example",
|
|
"ports": [
|
|
"ports": [
|
|
{
|
|
{
|
|
"containerPort": 8080
|
|
"containerPort": 8080
|
|
@@ -308,7 +308,7 @@
|
|
{
|
|
{
|
|
"name": "APPLICATION_DOMAIN",
|
|
"name": "APPLICATION_DOMAIN",
|
|
"description": "The exposed hostname that will route to the CakePHP service",
|
|
"description": "The exposed hostname that will route to the CakePHP service",
|
|
- "value": "cakephp-example.openshiftapps.com"
|
|
|
|
|
|
+ "value": "cakephp-mysql-example.openshiftapps.com"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"name": "GITHUB_WEBHOOK_SECRET",
|
|
"name": "GITHUB_WEBHOOK_SECRET",
|