Skip to content

Instantly share code, notes, and snippets.

View 1-basic-pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.fabric8.examples</groupId>
<artifactId>camel-rest</artifactId>
<version>1.0-SNAPSHOT</version>
<name>Fabric8 :: Examples :: Camel REST</name>
@jimmidyson
jimmidyson / 0_download_openshift.sh
Last active Aug 29, 2015
OpenShift Fabric8 start scripts
View 0_download_openshift.sh
#!/bin/bash
curl -L https://github.com/openshift/origin/releases/download/v0.5.1/openshift-origin-v0.5.1-ce1e6c4-linux-amd64.tar.gz | tar xzv
View -
2015-04-17 12:03:50,195 | ERROR | 6b961-1-thread-1 | DeploymentAgent | ? ? | 78 - io.fabric8.fabric-agent - 1.2.0.SNAPSHOT | Unable to update agent
org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=fabric-camel-demo; type=karaf.feature; filter:="(&(osgi.identity=fabric-camel-demo)(type=karaf.feature))" [caused by: Unable to resolve fabric-camel-demo/1.2.0.SNAPSHOT: missing requirement [fabric-camel-demo/1.2.0.SNAPSHOT] osgi.identity; osgi.identity=io.fabric8.examples.fabric-camel-demo; type=osgi.bundle; version="[1.2.0.SNAPSHOT,1.2.0.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve io.fabric8.examples.fabric-camel-demo/1.2.0.SNAPSHOT: missing requirement [io.fabric8.examples.fabric-camel-demo/1.2.0.SNAPSHOT] osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.activemq.camel.component)"]]
at org.apache.felix.resolver.Candidates.populateResource(Candida
@jimmidyson
jimmidyson / cluster-service.json
Created Apr 17, 2015
Clustering on Kubernetes & OpenShift3 using DNS - cluster service
View cluster-service.json
{
"id": "elasticsearch-cluster",
"apiVersion": "v1beta1",
"PortalIP": "None",
"kind": "Service",
"containerPort": 9300,
"port": 9300,
"selector": {
"component": "elasticsearch"
}
@jimmidyson
jimmidyson / client-service.json
Created Apr 17, 2015
Clustering on Kubernetes & OpenShift3 using DNS -
View client-service.json
{
"id": "elasticsearch",
"apiVersion": "v1beta1",
"kind": "Service",
"containerPort": 9200,
"port": 9200,
"selector": {
"component": "elasticsearch",
"type": "client"
}
@jimmidyson
jimmidyson / labels.json
Created Apr 17, 2015
Clustering on Kubernetes & OpenShift3 using DNS - labels.json
View labels.json
"labels" : {
"component" : "elasticsearch",
"type": "client"
}
@jimmidyson
jimmidyson / replication_controllers.json
Last active Aug 29, 2015
Clustering on Kubernetes & OpenShift3 using DNS - replication controllers
View replication_controllers.json
{
"apiVersion": "v1beta1",
"id": "elasticsearch-client-rc",
"kind": "ReplicationController",
"labels": {
"component": "elasticsearch",
"type": "client"
},
"desiredState": {
"podTemplate": {
View gist:0a548993f4d1de3096d7
IMAGE CONTAINER CPU % MEM USAGE/LIMIT MEM % NET I/O
fabric8/fabric8-jbpm-designer:latest 0130551529b6 0.09% 1.399 GiB/15.37 GiB 9.10% 0 B/0 B
fabric8/fabric8-forge:2.0.40.1 42797a90723d 0.09% 782.3 MiB/15.37 GiB 4.97% 0 B/0 B
openshift/origin:v0.4.2 afb9f4367253 5.16% 405.1 MiB/15.37 GiB 2.57% 0 B/0 B
fabric8/app-library:2.0.40.1 72de55aa2e05 0.05% 372 MiB/15.37 GiB 2.36% 0 B/0 B
fabric8/elasticsearch-k8s:1.5.0 1349b4db9abc 0.66% 350.6 MiB/15.37 GiB 2.23% 0 B/0 B
fabric8/cdelivery:2.0.40.1 2db6eaa57160 0.08% 246.3 MiB/15.37 GiB 1.57% 0 B/0 B
fabric8/hubot-notifier:2.0.40.1 ceb437182ae1 0.06% 207.9 MiB/15.37 GiB 1.32%
View add-user-from-github.sh
#!/bin/bash
for user in "$@"
do
echo "Adding ${user}"
useradd -m ${user}
mkdir /home/${user}/.ssh
curl https://github.com/${user}.keys >> /home/${user}/.ssh/authorized_keys
chmod 700 /home/${user}/.ssh
chmod 600 /home/${user}/.ssh/authorized_keys
View keybase.md

Keybase proof

I hereby claim:

  • I am jimmidyson on github.
  • I am jimmidyson (https://keybase.io/jimmidyson) on keybase.
  • I have a public key whose fingerprint is 5E87 7349 6DCB FB12 0E38 4322 2863 494B 281B E805

To claim this, I am signing this object: