archetype-resources.quickstart-template.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of karaf-camel-amq-archetype
Show all versions of karaf-camel-amq-archetype
Creates a new ActiveMQ and Camel Example
#set( $D = '$' )
{
"apiVersion": "v1",
"kind": "Template",
"labels": {},
"metadata": {
"annotations": {
"description": "# Camel AMQ QuickStart\n\nThis quickstart demonstrates how to connect to an ActiveMQ broker and use JMS messaging between two Camel routes.\n\nIn this example we will use two containers, one container to run as a ActiveMQ broker, and another as a client to the broker, where the Camel routes is running.\n\nThis quickstarts requires the ActiveMQ broker has been deployed and running first. This can be done from the web console from the `Apps` page, and then install the `messaging` application.\n\nTo install this quickstart from the command line type\n\nThe example can be built and deployed using a single goal:\n\n mvn -Pf8-local-deploy\n\nThis requires you have [setup your local computer](http://fabric8.io/guide/getStarted/develop.html) to work with docker and kubernetes.\n",
"iconClass": "icon-java"
},
"labels": {},
"name": "s2i-quickstart-karaf-camel-amq"
},
"parameters": [
{
"name": "APP_NAME",
"value": "s2i-quickstart-karaf-camel-amq",
"description": "Application Name"
},
{
"name": "GIT_REPO",
"required": true,
"description": "Git repository, required"
},
{
"name": "GIT_REF",
"value": "master",
"description": "Git ref to build"
},
{
"name": "SERVICE_NAME",
"value": "s2i-qs-karaf-camel-amq",
"description": "Exposed Service name"
},
{
"name": "BUILDER_VERSION",
"value": "1.2.5",
"description": "Builder version"
},
{
"name": "APP_VERSION",
"value": "2.2.64-SNAPSHOT",
"description": "Application version"
},
{
"name": "MAVEN_ARGS",
"value": "install -DskipTests -e",
"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": "Maven build directory"
},
{
"generate": "expression",
"name": "BUILD_SECRET",
"description": "The secret needed to trigger a build",
"from": "[a-zA-Z0-9]{8}"
}
],
"objects": [
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "s2i-karaf-${D}{APP_NAME}",
"creationTimestamp": null,
"labels": {
"component": "${D}{APP_NAME}",
"container": "karaf",
"group": "quickstarts",
"project": "${D}{APP_NAME}",
"provider": "s2i",
"version": "${D}{APP_VERSION}"
}
},
"spec": {
"dockerImageRepository": "fabric8/s2i-karaf:${D}{BUILDER_VERSION}"
},
"status": {
"dockerImageRepository": ""
}
},
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "${D}{APP_NAME}",
"creationTimestamp": null,
"labels": {
"component": "${D}{APP_NAME}",
"container": "karaf",
"group": "quickstarts",
"project": "${D}{APP_NAME}",
"provider": "s2i",
"version": "${D}{APP_VERSION}"
}
},
"spec": {},
"status": {
"dockerImageRepository": ""
}
},
{
"kind": "BuildConfig",
"apiVersion": "v1",
"metadata": {
"name": "${D}{APP_NAME}",
"creationTimestamp": null,
"labels": {
"component": "${D}{APP_NAME}",
"container": "karaf",
"group": "quickstarts",
"project": "${D}{APP_NAME}",
"provider": "s2i",
"version": "${D}{APP_VERSION}"
}
},
"spec": {
"triggers": [
{
"type": "GitHub",
"github": {
"secret": "${D}{BUILD_SECRET}"
}
},
{
"type": "Generic",
"generic": {
"secret": "${D}{BUILD_SECRET}"
}
},
{
"type": "ConfigChange"
},
{
"type": "ImageChange",
"imageChange": {}
}
],
"source": {
"type": "Git",
"git": {
"uri": "${D}{GIT_REPO}",
"ref": "${D}{GIT_REF}"
}
},
"strategy": {
"type": "Source",
"sourceStrategy": {
"from": {
"kind": "ImageStreamTag",
"name": "s2i-karaf-${D}{APP_NAME}:${D}{BUILDER_VERSION}"
},
"forcePull": true,
"env": [
{
"name": "BUILD_LOGLEVEL",
"value": "5"
},
{
"name": "ARTIFACT_DIR",
"value": "${D}{ARTIFACT_DIR}"
},
{
"name": "MAVEN_ARGS",
"value": "${D}{MAVEN_ARGS}"
},
{
"name": "MAVEN_ARGS_APPEND",
"value": "${D}{MAVEN_ARGS_APPEND}"
}
]
}
},
"output": {
"to": {
"kind": "ImageStreamTag",
"name": "${D}{APP_NAME}:latest"
}
},
"resources": {}
},
"status": {
"lastVersion": 0
}
},
{
"kind": "DeploymentConfig",
"apiVersion": "v1",
"metadata": {
"name": "${D}{APP_NAME}",
"creationTimestamp": null,
"labels": {
"component": "${D}{APP_NAME}",
"container": "karaf",
"group": "quickstarts",
"project": "${D}{APP_NAME}",
"provider": "s2i",
"version": "${D}{APP_VERSION}"
}
},
"spec": {
"strategy": {
"resources": {}
},
"triggers": [
{
"type": "ConfigChange"
},
{
"type": "ImageChange",
"imageChangeParams": {
"automatic": true,
"containerNames": [
"${D}{APP_NAME}"
],
"from": {
"kind": "ImageStreamTag",
"name": "${D}{APP_NAME}:latest"
}
}
}
],
"replicas": 1,
"selector": {
"component": "${D}{APP_NAME}",
"container": "karaf",
"deploymentconfig": "${D}{APP_NAME}",
"group": "quickstarts",
"project": "${D}{APP_NAME}",
"provider": "s2i",
"version": "${D}{APP_VERSION}"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"component": "${D}{APP_NAME}",
"container": "karaf",
"deploymentconfig": "${D}{APP_NAME}",
"group": "quickstarts",
"project": "${D}{APP_NAME}",
"provider": "s2i",
"version": "${D}{APP_VERSION}"
}
},
"spec": {
"containers": [
{
"name": "${D}{APP_NAME}",
"image": "library/${D}{APP_NAME}:latest",
"readinessProbe": {
"exec": {
"command": [
"/bin/bash",
"-c",
"(curl -f 127.0.0.1:8778) >/dev/null 2>&1; test $? != 7"
]
},
"initialDelaySeconds": 30,
"timeoutSeconds": 5
},
"ports": [
{
"containerPort": 8181,
"name": "http"
},
{
"containerPort": 8778,
"name": "jolokia"
}
],
"resources": {}
}
]
}
}
},
"status": {}
}
]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy