summaryrefslogtreecommitdiffstats
path: root/roles/openshift_examples/files/examples/quickstart-templates/dancer-mysql.json
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_examples/files/examples/quickstart-templates/dancer-mysql.json')
-rw-r--r--roles/openshift_examples/files/examples/quickstart-templates/dancer-mysql.json348
1 files changed, 0 insertions, 348 deletions
diff --git a/roles/openshift_examples/files/examples/quickstart-templates/dancer-mysql.json b/roles/openshift_examples/files/examples/quickstart-templates/dancer-mysql.json
deleted file mode 100644
index 55f655102..000000000
--- a/roles/openshift_examples/files/examples/quickstart-templates/dancer-mysql.json
+++ /dev/null
@@ -1,348 +0,0 @@
-{
- "kind": "Template",
- "apiVersion": "v1",
- "metadata": {
- "name": "dancer-mysql-example",
- "annotations": {
- "description": "An example Dancer application with a MySQL database",
- "tags": "instant-app,perl,dancer,mysql",
- "iconClass": "icon-perl"
- }
- },
- "labels": {
- "template": "dancer-mysql-example"
- },
- "objects": [
- {
- "kind": "Service",
- "apiVersion": "v1",
- "metadata": {
- "name": "dancer-mysql-example",
- "annotations": {
- "description": "Exposes and load balances the application pods"
- }
- },
- "spec": {
- "ports": [
- {
- "name": "web",
- "port": 8080,
- "targetPort": 8080
- }
- ],
- "selector": {
- "name": "dancer-mysql-example"
- }
- }
- },
- {
- "kind": "Route",
- "apiVersion": "v1",
- "metadata": {
- "name": "dancer-mysql-example"
- },
- "spec": {
- "host": "${APPLICATION_DOMAIN}",
- "to": {
- "kind": "Service",
- "name": "dancer-mysql-example"
- }
- }
- },
- {
- "kind": "ImageStream",
- "apiVersion": "v1",
- "metadata": {
- "name": "dancer-mysql-example",
- "annotations": {
- "description": "Keeps track of changes in the application image"
- }
- }
- },
- {
- "kind": "BuildConfig",
- "apiVersion": "v1",
- "metadata": {
- "name": "dancer-mysql-example",
- "annotations": {
- "description": "Defines how to build the application"
- }
- },
- "spec": {
- "source": {
- "type": "Git",
- "git": {
- "uri": "${SOURCE_REPOSITORY_URL}",
- "ref": "${SOURCE_REPOSITORY_REF}"
- },
- "contextDir": "${CONTEXT_DIR}"
- },
- "strategy": {
- "type": "Source",
- "sourceStrategy": {
- "from": {
- "kind": "ImageStreamTag",
- "namespace": "openshift",
- "name": "perl:5.16"
- }
- }
- },
- "output": {
- "to": {
- "kind": "ImageStreamTag",
- "name": "dancer-mysql-example:latest"
- }
- },
- "triggers": [
- {
- "type": "ImageChange"
- },
- {
- "type": "GitHub",
- "github": {
- "secret": "${GITHUB_WEBHOOK_SECRET}"
- }
- }
- ]
- }
- },
- {
- "kind": "DeploymentConfig",
- "apiVersion": "v1",
- "metadata": {
- "name": "dancer-mysql-example",
- "annotations": {
- "description": "Defines how to deploy the application server"
- }
- },
- "spec": {
- "triggers": [
- {
- "type": "ImageChange",
- "imageChangeParams": {
- "automatic": true,
- "containerNames": [
- "dancer-mysql-example"
- ],
- "from": {
- "kind": "ImageStreamTag",
- "name": "dancer-mysql-example:latest"
- }
- }
- },
- {
- "type": "ConfigChange"
- }
- ],
- "replicas": 1,
- "selector": {
- "name": "dancer-mysql-example"
- },
- "template": {
- "metadata": {
- "name": "dancer-mysql-example",
- "labels": {
- "name": "dancer-mysql-example"
- }
- },
- "spec": {
- "containers": [
- {
- "name": "dancer-mysql-example",
- "image": "dancer-mysql-example",
- "ports": [
- {
- "containerPort": 8080
- }
- ],
- "env": [
- {
- "name": "DATABASE_SERVICE_NAME",
- "value": "${DATABASE_SERVICE_NAME}"
- },
- {
- "name": "MYSQL_USER",
- "value": "${DATABASE_USER}"
- },
- {
- "name": "MYSQL_PASSWORD",
- "value": "${DATABASE_PASSWORD}"
- },
- {
- "name": "MYSQL_DATABASE",
- "value": "${DATABASE_NAME}"
- },
- {
- "name": "SECRET_KEY_BASE",
- "value": "${SECRET_KEY_BASE}"
- },
- {
- "name": "PERL_APACHE2_RELOAD",
- "value": "${PERL_APACHE2_RELOAD}"
- }
- ]
- }
- ]
- }
- }
- }
- },
- {
- "kind": "Service",
- "apiVersion": "v1",
- "metadata": {
- "name": "${DATABASE_SERVICE_NAME}",
- "annotations": {
- "description": "Exposes the database server"
- }
- },
- "spec": {
- "ports": [
- {
- "name": "mysql",
- "port": 3306,
- "targetPort": 3306
- }
- ],
- "selector": {
- "name": "${DATABASE_SERVICE_NAME}"
- }
- }
- },
- {
- "kind": "DeploymentConfig",
- "apiVersion": "v1",
- "metadata": {
- "name": "${DATABASE_SERVICE_NAME}",
- "annotations": {
- "description": "Defines how to deploy the database"
- }
- },
- "spec": {
- "strategy": {
- "type": "Recreate"
- },
- "triggers": [
- {
- "type": "ConfigChange"
- }
- ],
- "replicas": 1,
- "selector": {
- "name": "${DATABASE_SERVICE_NAME}"
- },
- "template": {
- "metadata": {
- "name": "${DATABASE_SERVICE_NAME}",
- "labels": {
- "name": "${DATABASE_SERVICE_NAME}"
- }
- },
- "spec": {
- "containers": [
- {
- "name": "mysql",
- "image": "${MYSQL_IMAGE}",
- "ports": [
- {
- "containerPort": 3306
- }
- ],
- "env": [
- {
- "name": "MYSQL_USER",
- "value": "${DATABASE_USER}"
- },
- {
- "name": "MYSQL_PASSWORD",
- "value": "${DATABASE_PASSWORD}"
- },
- {
- "name": "MYSQL_DATABASE",
- "value": "${DATABASE_NAME}"
- }
- ]
- }
- ]
- }
- }
- }
- }
- ],
- "parameters": [
- {
- "name": "SOURCE_REPOSITORY_URL",
- "description": "The URL of the repository with your application source code",
- "value": "https://github.com/openshift/dancer-ex.git"
- },
- {
- "name": "SOURCE_REPOSITORY_REF",
- "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch"
- },
- {
- "name": "CONTEXT_DIR",
- "description": "Set this to the relative path to your project if it is not in the root of your repository"
- },
- {
- "name": "APPLICATION_DOMAIN",
- "description": "The exposed hostname that will route to the Dancer service, if left blank a value will be defaulted.",
- "value": ""
- },
- {
- "name": "GITHUB_WEBHOOK_SECRET",
- "description": "A secret string used to configure the GitHub webhook",
- "generate": "expression",
- "from": "[a-zA-Z0-9]{40}"
- },
- {
- "name": "ADMIN_USERNAME",
- "description": "administrator username",
- "generate": "expression",
- "from": "admin[A-Z0-9]{3}"
- },
- {
- "name": "ADMIN_PASSWORD",
- "description": "administrator password",
- "generate": "expression",
- "from": "[a-zA-Z0-9]{8}"
- },
- {
- "name": "DATABASE_SERVICE_NAME",
- "description": "Database service name",
- "value": "database"
- },
- {
- "name": "DATABASE_USER",
- "description": "database username",
- "generate": "expression",
- "from": "user[A-Z0-9]{3}"
- },
- {
- "name": "DATABASE_PASSWORD",
- "description": "database password",
- "generate": "expression",
- "from": "[a-zA-Z0-9]{8}"
- },
- {
- "name": "DATABASE_NAME",
- "description": "database name",
- "value": "sampledb"
- },
- {
- "name": "MYSQL_IMAGE",
- "description": "Image to use for mysql",
- "value": "openshift/mysql-55-centos7"
- },
- {
- "name": "PERL_APACHE2_RELOAD",
- "description": "Set this to \"true\" to enable automatic reloading of modified Perl modules",
- "value": ""
- },
- {
- "name": "SECRET_KEY_BASE",
- "description": "Your secret key for verifying the integrity of signed cookies",
- "generate": "expression",
- "from": "[a-z0-9]{127}"
- }
- ]
-}