-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
2,605 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
{ | ||
"apiVersion": "v1", | ||
"kind": "Template", | ||
"labels": {}, | ||
"metadata": { | ||
"annotations": { | ||
"description": "FIS Generic Template", | ||
"iconClass": "icon-java" | ||
}, | ||
"labels": {}, | ||
"name": "integration-fis-build" | ||
}, | ||
"parameters": [ | ||
{ | ||
"name": "APP_NAME", | ||
"value": "integration-fis", | ||
"description": "Application Name" | ||
}, | ||
{ | ||
"name": "GIT_REPO", | ||
"required": true, | ||
"value": "https://github.com/sabre1041/iot-ocp.git", | ||
"description": "Git repository, required" | ||
}, | ||
{ | ||
"name": "GIT_REF", | ||
"value": "master", | ||
"description": "Git ref to build" | ||
}, | ||
{ | ||
"name": "GIT_CONTEXT_DIR", | ||
"value": "iot-ocp-routing-service", | ||
"description": "Git context directory" | ||
}, | ||
{ | ||
"name": "BUILDER_VERSION", | ||
"value": "2.0", | ||
"description": "Builder version" | ||
}, | ||
{ | ||
"name": "MAVEN_ARGS", | ||
"value": "clean install -DskipTests", | ||
"description": "Arguments passed to mvn in the build" | ||
}, | ||
{ | ||
"name": "MAVEN_ARGS_APPEND", | ||
"description": "Extra arguments passed to mvn, e.g. for multi-module builds" | ||
}, | ||
{ | ||
"name": "ARTIFACT_DIR", | ||
"description": "Directory containing build artifacts." | ||
}, | ||
{ | ||
"description": "Namespace in which the Fuse ImageStreams are installed. These ImageStreams are normally installed in the openshift namespace. You should only need to modify this if you've installed the ImageStreams in a different namespace/project.", | ||
"name": "IMAGE_STREAM_NAMESPACE", | ||
"value": "iot-ocp-resources", | ||
"required": true | ||
} | ||
], | ||
"objects": [ | ||
{ | ||
"kind": "ImageStream", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "${APP_NAME}", | ||
"creationTimestamp": null, | ||
"labels": { | ||
"component": "${APP_NAME}", | ||
"container": "karaf" | ||
} | ||
}, | ||
"spec": {}, | ||
"status": { | ||
"dockerImageRepository": "" | ||
} | ||
}, | ||
{ | ||
"kind": "BuildConfig", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "${APP_NAME}", | ||
"creationTimestamp": null, | ||
"labels": { | ||
"component": "${APP_NAME}", | ||
"container": "karaf" | ||
} | ||
}, | ||
"spec": { | ||
"triggers": [ | ||
{ | ||
"type": "ConfigChange" | ||
}, | ||
{ | ||
"type": "ImageChange", | ||
"imageChange": {} | ||
} | ||
], | ||
"source": { | ||
"type": "Git", | ||
"git": { | ||
"uri": "${GIT_REPO}", | ||
"ref": "${GIT_REF}" | ||
}, | ||
"contextDir": "${GIT_CONTEXT_DIR}" | ||
}, | ||
"strategy": { | ||
"type": "Source", | ||
"sourceStrategy": { | ||
"from": { | ||
"kind": "ImageStreamTag", | ||
"namespace": "${IMAGE_STREAM_NAMESPACE}", | ||
"name": "fis-karaf-openshift:${BUILDER_VERSION}" | ||
}, | ||
"forcePull": true, | ||
"env": [ | ||
{ | ||
"name": "ARTIFACT_DIR", | ||
"value": "${ARTIFACT_DIR}" | ||
}, | ||
{ | ||
"name": "MAVEN_ARGS", | ||
"value": "${MAVEN_ARGS}" | ||
}, | ||
{ | ||
"name": "MAVEN_ARGS_APPEND", | ||
"value": "${MAVEN_ARGS_APPEND}" | ||
} | ||
] | ||
} | ||
}, | ||
"output": { | ||
"to": { | ||
"kind": "ImageStreamTag", | ||
"name": "${APP_NAME}:latest" | ||
} | ||
} | ||
}, | ||
"status": { | ||
"lastVersion": 0 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
kind: PersistentVolume | ||
apiVersion: v1 | ||
metadata: | ||
name: pv01 | ||
spec: | ||
capacity: | ||
storage: 2Gi | ||
accessModes: | ||
- ReadWriteOnce | ||
- ReadWriteMany | ||
- ReadOnlyMany | ||
hostPath: | ||
path: "/var/lib/minishift/pv/pv01" | ||
persistentVolumeReclaimPolicy: Recycle | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
kind: PersistentVolume | ||
apiVersion: v1 | ||
metadata: | ||
name: pv02 | ||
spec: | ||
capacity: | ||
storage: 2Gi | ||
accessModes: | ||
- ReadWriteOnce | ||
- ReadWriteMany | ||
- ReadOnlyMany | ||
hostPath: | ||
path: "/var/lib/minishift/pv/pv02" | ||
persistentVolumeReclaimPolicy: Recycle | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
kind: PersistentVolume | ||
apiVersion: v1 | ||
metadata: | ||
name: pv03 | ||
spec: | ||
capacity: | ||
storage: 2Gi | ||
accessModes: | ||
- ReadWriteOnce | ||
- ReadWriteMany | ||
- ReadOnlyMany | ||
hostPath: | ||
path: "/var/lib/minishift/pv/pv03" | ||
persistentVolumeReclaimPolicy: Recycle | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
{ | ||
"kind": "Template", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"annotations": { | ||
"description": "Application template for Red Hat JBoss BRMS 6.3 decision server applications built using S2I.", | ||
"iconClass": "icon-jboss", | ||
"tags": "decisionserver,java,jboss,xpaas", | ||
"version": "1.3.3" | ||
}, | ||
"name": "rules-brms-build" | ||
}, | ||
"labels": { | ||
"template": "rules-brms-build", | ||
"xpaas": "1.3.3" | ||
}, | ||
"parameters": [ | ||
{ | ||
"description": "The KIE Container deployment configuration in format: containerId=groupId:artifactId:version|c2=g2:a2:v2", | ||
"name": "KIE_CONTAINER_DEPLOYMENT", | ||
"value": "iot-ocp-businessrules-service=com.redhat.examples.iot:iot-ocp-businessrules-service:0.0.1-SNAPSHOT", | ||
"required": false | ||
}, | ||
{ | ||
"description": "The name for the application.", | ||
"name": "APPLICATION_NAME", | ||
"value": "rules-brms", | ||
"required": true | ||
}, | ||
{ | ||
"description": "Git source URI for application", | ||
"name": "SOURCE_REPOSITORY_URL", | ||
"value": "https://github.com/sabre1041/iot-ocp.git", | ||
"required": true | ||
}, | ||
{ | ||
"description": "Git branch/tag reference", | ||
"name": "SOURCE_REPOSITORY_REF", | ||
"value": "master", | ||
"required": false | ||
}, | ||
{ | ||
"description": "Path within Git project to build; empty for root project directory.", | ||
"name": "CONTEXT_DIR", | ||
"value": "iot-ocp-businessrules-service", | ||
"required": false | ||
}, | ||
{ | ||
"description": "GitHub trigger secret", | ||
"name": "GITHUB_WEBHOOK_SECRET", | ||
"from": "[a-zA-Z0-9]{8}", | ||
"generate": "expression", | ||
"required": true | ||
}, | ||
{ | ||
"description": "Generic build trigger secret", | ||
"name": "GENERIC_WEBHOOK_SECRET", | ||
"from": "[a-zA-Z0-9]{8}", | ||
"generate": "expression", | ||
"required": true | ||
}, | ||
{ | ||
"description": "Namespace in which the ImageStreams for Red Hat Middleware images are installed. These ImageStreams are normally installed in the openshift namespace. You should only need to modify this if you've installed the ImageStreams in a different namespace/project.", | ||
"name": "IMAGE_STREAM_NAMESPACE", | ||
"value": "iot-ocp-resources", | ||
"required": true | ||
} | ||
], | ||
"objects": [ | ||
{ | ||
"kind": "ImageStream", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "${APPLICATION_NAME}", | ||
"labels": { | ||
"application": "${APPLICATION_NAME}" | ||
} | ||
} | ||
}, | ||
{ | ||
"kind": "BuildConfig", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "${APPLICATION_NAME}", | ||
"labels": { | ||
"application": "${APPLICATION_NAME}" | ||
} | ||
}, | ||
"spec": { | ||
"source": { | ||
"type": "Git", | ||
"git": { | ||
"uri": "${SOURCE_REPOSITORY_URL}", | ||
"ref": "${SOURCE_REPOSITORY_REF}" | ||
}, | ||
"contextDir": "${CONTEXT_DIR}" | ||
}, | ||
"strategy": { | ||
"type": "Source", | ||
"sourceStrategy": { | ||
"env": [ | ||
{ | ||
"name": "KIE_CONTAINER_DEPLOYMENT", | ||
"value": "${KIE_CONTAINER_DEPLOYMENT}" | ||
} | ||
], | ||
"forcePull": true, | ||
"from": { | ||
"kind": "ImageStreamTag", | ||
"namespace": "${IMAGE_STREAM_NAMESPACE}", | ||
"name": "jboss-decisionserver63-openshift:1.3" | ||
} | ||
} | ||
}, | ||
"output": { | ||
"to": { | ||
"kind": "ImageStreamTag", | ||
"name": "${APPLICATION_NAME}:latest" | ||
} | ||
}, | ||
"triggers": [ | ||
{ | ||
"type": "GitHub", | ||
"github": { | ||
"secret": "${GITHUB_WEBHOOK_SECRET}" | ||
} | ||
}, | ||
{ | ||
"type": "Generic", | ||
"generic": { | ||
"secret": "${GENERIC_WEBHOOK_SECRET}" | ||
} | ||
}, | ||
{ | ||
"type": "ImageChange", | ||
"imageChange": {} | ||
}, | ||
{ | ||
"type": "ConfigChange" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.