diff options
author | Scott Dodson <sdodson@redhat.com> | 2015-11-17 16:45:24 -0500 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2015-11-18 15:34:32 -0500 |
commit | cef52c3a1aabb10be8c1d4b81f37464982832105 (patch) | |
tree | 82849868e3975385e118aeb9099fb362f37ba236 /roles/openshift_examples/files/examples/quickstart-templates/nodejs-mongodb.json | |
parent | 544633e687e4d51c169eca435f7f356aad78bacf (diff) | |
download | openshift-cef52c3a1aabb10be8c1d4b81f37464982832105.tar.gz openshift-cef52c3a1aabb10be8c1d4b81f37464982832105.tar.bz2 openshift-cef52c3a1aabb10be8c1d4b81f37464982832105.tar.xz openshift-cef52c3a1aabb10be8c1d4b81f37464982832105.zip |
Install version dependent image streams for v1.0 and v1.1
Diffstat (limited to 'roles/openshift_examples/files/examples/quickstart-templates/nodejs-mongodb.json')
-rw-r--r-- | roles/openshift_examples/files/examples/quickstart-templates/nodejs-mongodb.json | 346 |
1 files changed, 0 insertions, 346 deletions
diff --git a/roles/openshift_examples/files/examples/quickstart-templates/nodejs-mongodb.json b/roles/openshift_examples/files/examples/quickstart-templates/nodejs-mongodb.json deleted file mode 100644 index 8760b074c..000000000 --- a/roles/openshift_examples/files/examples/quickstart-templates/nodejs-mongodb.json +++ /dev/null @@ -1,346 +0,0 @@ -{ - "kind": "Template", - "apiVersion": "v1", - "metadata": { - "name": "nodejs-mongodb-example", - "annotations": { - "description": "An example Node.js application with a MongoDB database", - "tags": "instant-app,nodejs,mongodb", - "iconClass": "icon-nodejs" - } - }, - "labels": { - "template": "nodejs-mongodb-example" - }, - "objects": [ - { - "kind": "Service", - "apiVersion": "v1", - "metadata": { - "name": "nodejs-mongodb-example", - "annotations": { - "description": "Exposes and load balances the application pods" - } - }, - "spec": { - "ports": [ - { - "name": "web", - "port": 8080, - "targetPort": 8080 - } - ], - "selector": { - "name": "nodejs-mongodb-example" - } - } - }, - { - "kind": "Route", - "apiVersion": "v1", - "metadata": { - "name": "nodejs-mongodb-example" - }, - "spec": { - "host": "${APPLICATION_DOMAIN}", - "to": { - "kind": "Service", - "name": "nodejs-mongodb-example" - } - } - }, - { - "kind": "ImageStream", - "apiVersion": "v1", - "metadata": { - "name": "nodejs-mongodb-example", - "annotations": { - "description": "Keeps track of changes in the application image" - } - } - }, - { - "kind": "BuildConfig", - "apiVersion": "v1", - "metadata": { - "name": "nodejs-mongodb-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": "nodejs:0.10" - } - } - }, - "output": { - "to": { - "kind": "ImageStreamTag", - "name": "nodejs-mongodb-example:latest" - } - }, - "triggers": [ - { - "type": "ImageChange" - }, - { - "type": "GitHub", - "github": { - "secret": "${GITHUB_WEBHOOK_SECRET}" - } - }, - { - "type": "Generic", - "generic": { - "secret": "${GENERIC_WEBHOOK_SECRET}" - } - } - ] - } - }, - { - "kind": "DeploymentConfig", - "apiVersion": "v1", - "metadata": { - "name": "nodejs-mongodb-example", - "annotations": { - "description": "Defines how to deploy the application server" - } - }, - "spec": { - "strategy": { - "type": "Rolling" - }, - "triggers": [ - { - "type": "ImageChange", - "imageChangeParams": { - "automatic": true, - "containerNames": [ - "nodejs-mongodb-example" - ], - "from": { - "kind": "ImageStreamTag", - "name": "nodejs-mongodb-example:latest" - } - } - }, - { - "type": "ConfigChange" - } - ], - "replicas": 1, - "selector": { - "name": "nodejs-mongodb-example" - }, - "template": { - "metadata": { - "name": "nodejs-mongodb-example", - "labels": { - "name": "nodejs-mongodb-example" - } - }, - "spec": { - "containers": [ - { - "name": "nodejs-mongodb-example", - "image": "nodejs-mongodb-example", - "ports": [ - { - "containerPort": 8080 - } - ], - "env": [ - { - "name": "DATABASE_SERVICE_NAME", - "value": "${DATABASE_SERVICE_NAME}" - }, - { - "name": "MONGODB_USER", - "value": "${DATABASE_USER}" - }, - { - "name": "MONGODB_PASSWORD", - "value": "${DATABASE_PASSWORD}" - }, - { - "name": "MONGODB_DATABASE", - "value": "${DATABASE_NAME}" - }, - { - "name": "MONGODB_ADMIN_PASSWORD", - "value": "${DATABASE_ADMIN_PASSWORD}" - } - ] - } - ] - } - } - } - }, - { - "kind": "Service", - "apiVersion": "v1", - "metadata": { - "name": "${DATABASE_SERVICE_NAME}", - "annotations": { - "description": "Exposes the database server" - } - }, - "spec": { - "ports": [ - { - "name": "mongodb", - "port": 27017, - "targetPort": 27017 - } - ], - "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": "mongodb", - "image": "${MONGODB_IMAGE}", - "ports": [ - { - "containerPort": 27017 - } - ], - "env": [ - { - "name": "MONGODB_USER", - "value": "${DATABASE_USER}" - }, - { - "name": "MONGODB_PASSWORD", - "value": "${DATABASE_PASSWORD}" - }, - { - "name": "MONGODB_DATABASE", - "value": "${DATABASE_NAME}" - }, - { - "name": "MONGODB_ADMIN_PASSWORD", - "value": "${DATABASE_ADMIN_PASSWORD}" - } - ] - } - ] - } - } - } - } - ], - "parameters": [ - { - "name": "SOURCE_REPOSITORY_URL", - "description": "The URL of the repository with your application source code", - "value": "https://github.com/openshift/nodejs-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 Node.js 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": "GENERIC_WEBHOOK_SECRET", - "description": "A secret string used to configure the Generic webhook", - "generate": "expression", - "from": "[a-zA-Z0-9]{40}" - }, - { - "name": "DATABASE_SERVICE_NAME", - "description": "Database service name", - "value": "mongodb" - }, - { - "name": "DATABASE_USER", - "description": "Username for MongoDB user that will be used for accessing the database", - "generate": "expression", - "from": "user[A-Z0-9]{3}" - }, - { - "name": "DATABASE_PASSWORD", - "description": "Password for the MongoDB user", - "generate": "expression", - "from": "[a-zA-Z0-9]{16}" - }, - { - "name": "DATABASE_NAME", - "description": "Database name", - "value": "sampledb" - }, - { - "name": "DATABASE_ADMIN_PASSWORD", - "description": "Password for the database admin user", - "generate": "expression", - "from": "[a-zA-Z0-9]{16}" - }, - { - "name": "MONGODB_IMAGE", - "description": "Image to use for mongodb", - "value": "openshift/mongodb-24-centos7" - } - ] -} |