Skip to content

Instantly share code, notes, and snippets.

Roland Huß rhuss

Block or report user

Report or block rhuss

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:bf1daf2a38c78d53e0a6b3ddd02f5a48
#!/usr/bin/env bash
set -e
# Turn colors in this script off by setting the NO_COLOR variable in your
# environment to any value:
# $ NO_COLOR=1
if [ -z "$NO_COLOR" ]; then
rhuss /
Created Apr 5, 2019
CRDs with multiple version on OpenShift
$ kubectl get crd | grep crontab                                                     2019-04-05T21:33:36Z

$ kubectl get crontab
new-tab   6m
old-tab   5m

$ kubectl get crontab old-tab -o yaml
View gist:7522b8ca5b17f6f0d15e972a5edfc7ff
Receiving source from STDIN as archive ...
Pulling image "docker-registry.default.svc:5000/fuse-ignite/fuse-ignite-s2i@sha256:3c9f66a53c5e2651d77bffec13ad61619a50ede99c74ba690f243568c9faef95" ...
Preparing to build proj242508/i-db2db-1:69a82d11
Copying sources from "/tmp/s2i-build157931650/upload/src" to "/tmp/s2i-build157931650/upload/src"
Clean build will be performed
Running "assemble" in "proj242508/i-db2db-1:69a82d11"
Starting S2I Java Build .....
S2I source build for Maven detected
Using MAVEN_OPTS '-XX:+UseG1GC -XX:+UseStringDeduplication -Xmx310m'
View stacktrace jolokia
Starting the Java application using /opt/run-java/ ...
exec java -javaagent:/opt/jolokia/jolokia.jar=config=/opt/jolokia/etc/ -cp . -jar /deployments/fabric8-maven-sample-custom-enricher-app-3.3-SNAPSHOT.jar
2017-04-11 10:21:03
Full thread dump OpenJDK 64-Bit Server VM (25.111-b15 mixed mode):
"server-timer" #6 daemon prio=5 os_prio=0 tid=0x00007f2ae020c000 nid=0x68 in Object.wait() [0x00007f2ac07c6000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000eb1eac68> (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(
View gist:035f955dec3828e696112eb640be4ab4
minishift destroy
sudo rm -rf ~/.minishift
brew uninstall xhyve
brew install --force -HEAD xhyve
brew update docker-machine
brew link --overwrite docker-machine
brew unlink docker-machine-driver-xhyve
brew install docker-machine-driver-xhyve
sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
View is.yml
apiVersion: v1
kind: ImageStream
name: cdi-camel
View gist:3443c7534d6f79db4c54
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ kubernetes-client ---
[INFO] io.fabric8:kubernetes-client:jar:1.3.74-SNAPSHOT
[INFO] +- io.fabric8:kubernetes-model:jar:1.0.42:compile
[INFO] | +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.6.3:compile
[INFO] | \- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] +- com.squareup.okhttp:okhttp:jar:2.7.2:compile
[INFO] | \- com.squareup.okio:okio:jar:1.6.0:compile
[INFO] +- com.squareup.okhttp:logging-interceptor:jar:2.7.2:compile
[INFO] +- com.squareup.okhttp:okhttp-ws:jar:2.7.2:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.13:compile
rhuss / gist:1015bf1ffa6bedcd72e6
Last active Nov 14, 2017
Pushing to an OpenShift registry
View gist:1015bf1ffa6bedcd72e6

How to setup an OpenShift registry

  • Create registry with oadm
oadm registry --latest-images --create \
  • Create route (optional, alternatively you can use also the internal ip of the registry service later)
View gofabric8 IDEA

gofabric8 IDE setup for IntelliJ IDEA

In Shell:

  • export $GOPATH=~/go/workspace
  • mkdir -p $GOPATH
  • export PATH=$PATH:$GOPATH/bin
  • cd ~/go
  • rm -rf workspace/*
  • go get
View libvirt Vagrant Povider on OSX X
brew install libvirt
sudo ln -s /opt/vagrant/embedded/include/ruby-2.0.0/{universal-darwin12.6.0,x86_64-darwin12.6.0}
ARCHFLAGS='-arch x86_64' \
CONFIGURE_ARGS="with-libvirt-include=/usr/local/include/libvirt:/opt/vagrant/embedded//include/ruby-2.0.0/universal-darwin12.6.0/ with-libvirt-lib=/usr/local/lib" \
vagrant plugin install vagrant-libvirt
You can’t perform that action at this time.