summaryrefslogtreecommitdiffstats
path: root/roles/openshift_examples/files/examples/v1.6/quickstart-templates/dotnet-example.json
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-04-25 10:20:39 -0400
committerRussell Teague <rteague@redhat.com>2017-04-25 15:41:36 -0400
commit51ffcb739c1ebf9872aa3f45a905b087ae9e0f48 (patch)
treefccf877403a58bbd52c8200cdd3541dddb37e747 /roles/openshift_examples/files/examples/v1.6/quickstart-templates/dotnet-example.json
parentd4d143778596087175f1bd5339a1bed1288e8520 (diff)
downloadopenshift-51ffcb739c1ebf9872aa3f45a905b087ae9e0f48.tar.gz
openshift-51ffcb739c1ebf9872aa3f45a905b087ae9e0f48.tar.bz2
openshift-51ffcb739c1ebf9872aa3f45a905b087ae9e0f48.tar.xz
openshift-51ffcb739c1ebf9872aa3f45a905b087ae9e0f48.zip
Standardize all Origin versioning on 3.6
Diffstat (limited to 'roles/openshift_examples/files/examples/v1.6/quickstart-templates/dotnet-example.json')
-rw-r--r--roles/openshift_examples/files/examples/v1.6/quickstart-templates/dotnet-example.json333
1 files changed, 0 insertions, 333 deletions
diff --git a/roles/openshift_examples/files/examples/v1.6/quickstart-templates/dotnet-example.json b/roles/openshift_examples/files/examples/v1.6/quickstart-templates/dotnet-example.json
deleted file mode 100644
index a09d71a00..000000000
--- a/roles/openshift_examples/files/examples/v1.6/quickstart-templates/dotnet-example.json
+++ /dev/null
@@ -1,333 +0,0 @@
-{
- "kind": "Template",
- "apiVersion": "v1",
- "metadata": {
- "name": "dotnet-example",
- "annotations": {
- "openshift.io/display-name": ".NET Core",
- "description": "An example .NET Core application.",
- "tags": "quickstart,dotnet,.net",
- "iconClass": "icon-dotnet",
- "template.openshift.io/provider-display-name": "Red Hat, Inc.",
- "template.openshift.io/documentation-url": "https://github.com/redhat-developer/s2i-dotnetcore",
- "template.openshift.io/support-url": "https://access.redhat.com"
- }
- },
- "objects": [
- {
- "kind": "Route",
- "apiVersion": "v1",
- "metadata": {
- "name": "${NAME}"
- },
- "spec": {
- "host": "${APPLICATION_DOMAIN}",
- "to": {
- "kind": "Service",
- "name": "${NAME}"
- }
- }
- },
- {
- "kind": "Service",
- "apiVersion": "v1",
- "metadata": {
- "name": "${NAME}",
- "annotations": {
- "description": "Exposes and load balances the application pods"
- }
- },
- "spec": {
- "ports": [
- {
- "name": "web",
- "port": 8080,
- "targetPort": 8080
- }
- ],
- "selector": {
- "name": "${NAME}"
- }
- }
- },
- {
- "kind": "ImageStream",
- "apiVersion": "v1",
- "metadata": {
- "name": "${NAME}",
- "annotations": {
- "description": "Keeps track of changes in the application image"
- }
- }
- },
- {
- "kind": "BuildConfig",
- "apiVersion": "v1",
- "metadata": {
- "name": "${NAME}",
- "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": "${NAMESPACE}",
- "name": "${DOTNET_IMAGE_STREAM_TAG}"
- },
- "env": [
- {
- "name": "DOTNET_STARTUP_PROJECT",
- "value": "${DOTNET_STARTUP_PROJECT}"
- },
- {
- "name": "DOTNET_ASSEMBLY_NAME",
- "value": "${DOTNET_ASSEMBLY_NAME}"
- },
- {
- "name": "DOTNET_NPM_TOOLS",
- "value": "${DOTNET_NPM_TOOLS}"
- },
- {
- "name": "DOTNET_TEST_PROJECTS",
- "value": "${DOTNET_TEST_PROJECTS}"
- },
- {
- "name": "DOTNET_CONFIGURATION",
- "value": "${DOTNET_CONFIGURATION}"
- },
- {
- "name": "DOTNET_PUBLISH",
- "value": "true"
- },
- {
- "name": "DOTNET_RESTORE_SOURCES",
- "value": "${DOTNET_RESTORE_SOURCES}"
- }
- ]
- }
- },
- "output": {
- "to": {
- "kind": "ImageStreamTag",
- "name": "${NAME}:latest"
- }
- },
- "triggers": [
- {
- "type": "ImageChange"
- },
- {
- "type": "ConfigChange"
- },
- {
- "type": "GitHub",
- "github": {
- "secret": "${GITHUB_WEBHOOK_SECRET}"
- }
- },
- {
- "type": "Generic",
- "generic": {
- "secret": "${GENERIC_WEBHOOK_SECRET}"
- }
- }
- ]
- }
- },
- {
- "kind": "DeploymentConfig",
- "apiVersion": "v1",
- "metadata": {
- "name": "${NAME}",
- "annotations": {
- "description": "Defines how to deploy the application server"
- }
- },
- "spec": {
- "strategy": {
- "type": "Rolling"
- },
- "triggers": [
- {
- "type": "ImageChange",
- "imageChangeParams": {
- "automatic": true,
- "containerNames": [
- "dotnet-app"
- ],
- "from": {
- "kind": "ImageStreamTag",
- "name": "${NAME}:latest"
- }
- }
- },
- {
- "type": "ConfigChange"
- }
- ],
- "replicas": 1,
- "selector": {
- "name": "${NAME}"
- },
- "template": {
- "metadata": {
- "name": "${NAME}",
- "labels": {
- "name": "${NAME}"
- }
- },
- "spec": {
- "containers": [
- {
- "name": "dotnet-app",
- "image": " ",
- "ports": [
- {
- "containerPort": 8080
- }
- ],
- "livenessProbe": {
- "httpGet": {
- "path": "/",
- "port": 8080,
- "scheme": "HTTP"
- },
- "initialDelaySeconds": 40,
- "timeoutSeconds": 15
- },
- "readinessProbe": {
- "httpGet": {
- "path": "/",
- "port": 8080,
- "scheme": "HTTP"
- },
- "initialDelaySeconds": 10,
- "timeoutSeconds": 30
- },
- "resources": {
- "limits": {
- "memory": "${MEMORY_LIMIT}"
- }
- },
- "env": []
- }
- ]
- }
- }
- }
- }
- ],
- "parameters": [
- {
- "name": "NAME",
- "displayName": "Name",
- "description": "The name assigned to all of the frontend objects defined in this template.",
- "required": true,
- "value": "dotnet-example"
- },
- {
- "name": "MEMORY_LIMIT",
- "displayName": "Memory Limit",
- "description": "Maximum amount of memory the container can use.",
- "required": true,
- "value": "512Mi"
- },
- {
- "name": "DOTNET_IMAGE_STREAM_TAG",
- "displayName": ".NET builder",
- "required": true,
- "description": "The image stream tag which is used to build the code.",
- "value": "dotnet:1.0"
- },
- {
- "name": "NAMESPACE",
- "displayName": "Namespace",
- "description": "The OpenShift Namespace where the ImageStream resides.",
- "required": true,
- "value": "openshift"
- },
- {
- "name": "SOURCE_REPOSITORY_URL",
- "displayName": "Git Repository URL",
- "description": "The URL of the repository with your application source code.",
- "required": true,
- "value": "https://github.com/redhat-developer/s2i-dotnetcore-ex.git"
- },
- {
- "name": "SOURCE_REPOSITORY_REF",
- "displayName": "Git Reference",
- "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
- "value": "dotnetcore-1.0"
- },
- {
- "name": "CONTEXT_DIR",
- "displayName": "Context Directory",
- "description": "Set this to use a subdirectory of the source code repository"
- },
- {
- "name": "APPLICATION_DOMAIN",
- "displayName": "Application Hostname",
- "description": "The exposed hostname that will route to the .NET Core service, if left blank a value will be defaulted.",
- "value": ""
- },
- {
- "name": "GITHUB_WEBHOOK_SECRET",
- "displayName": "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",
- "displayName": "Generic Webhook Secret",
- "description": "A secret string used to configure the Generic webhook.",
- "generate": "expression",
- "from": "[a-zA-Z0-9]{40}"
- },
- {
- "name": "DOTNET_STARTUP_PROJECT",
- "displayName": "Startup Project",
- "description": "Set this to the folder containing your startup project.",
- "value": "app"
- },
- {
- "name": "DOTNET_ASSEMBLY_NAME",
- "displayName": "Startup Assembly",
- "description": "Set this when the assembly name is overridden in the project file."
- },
- {
- "name": "DOTNET_NPM_TOOLS",
- "displayName": "Npm Tools",
- "description": "Set this to a space separated list of npm tools needed to publish.",
- "value": "bower gulp"
- },
- {
- "name": "DOTNET_TEST_PROJECTS",
- "displayName": "Test projects",
- "description": "Set this to a space separated list of test projects to run before publishing."
- },
- {
- "name": "DOTNET_CONFIGURATION",
- "displayName": "Configuration",
- "description": "Set this to configuration (Release/Debug).",
- "value": "Release"
- },
- {
- "name": "DOTNET_RESTORE_SOURCES",
- "displayName": "NuGet package sources",
- "description": "Set this to override the NuGet.config sources."
- }
- ]
-}