Skip to content

Instantly share code, notes, and snippets.

View rawlingsj's full-sized avatar

James Rawlings rawlingsj

View GitHub Profile
@rawlingsj
rawlingsj / gist:e31386690bdc9f7350d4
Created September 11, 2015 17:21
install fabric8
oc login https://172.28.128.4:8443 -u admin -p admin
curl --retry 999 --retry-max-time 0 -sSL https://fabric8-ci.fusesource.com/job/gofabric8/lastSuccessfulBuild/artifact/src/github.com/fabric8io/gofabric8/build/gofabric8 > /tmp/gofabric8/gofabric8
chmod +x /tmp/gofabric8/gofabric8
./gofabric8 -s https://172.28.128.4:8443 --domain=vagrant.f8 deploy
./gofabric8 -s https://172.28.128.4:8443 secrets
./gofabric8 -s https://172.28.128.4:8443 --domain=vagrant.f8 routes
#!/bin/bash
MINIKUBE_VERSION=0.8.0
KUBECTL_VERSION=1.3.4
GOFABRIC8_VERSION=0.4.45
MAVEN_VERTSION=3.3.9
QUICKSTART_VERSION=2.2.164
function getMinikube {
if [[ "$OSTYPE" == "linux-gnu" ]]; then
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v$MINIKUBE_VERSION/minikube-linux-amd64
oc edit dc nexus
fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0x1379f480e4ba pc=0xf59b]
runtime stack:
runtime.throw(0x276dee0, 0x2a)
/usr/local/go/src/runtime/panic.go:547 +0x90
runtime.sigpanic()
/usr/local/go/src/runtime/sigpanic_unix.go:12 +0x5a
runtime.unlock(0x384a160)
oc get pods
unexpected fault address 0x12a1cb67e5ec
fatal error: fault
[signal 0xb code=0x1 addr=0x12a1cb67e5ec pc=0x12a1cb67e5ec]
goroutine 15 [running]:
runtime.throw(0x239e418, 0x5)
/usr/local/go/src/runtime/panic.go:547 +0x90 fp=0xc82066c880 sp=0xc82066c868
runtime.sigpanic()
/usr/local/go/src/runtime/sigpanic_unix.go:27 +0x2ba fp=0xc82066c8d0 sp=0xc82066c880
apiVersion: v1
kind: BuildConfig
metadata:
name: spring-boot-webmvc-jr
spec:
runPolicy: Serial
source:
git:
ref: master
uri: https://github.com/rawlingsj/spring-boot-webmvc.git
cat <<EOF | kubectl create -f -
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
name: standard
provisioner: kubernetes.io/azure-disk
parameters:
skuName: Standard_LRS
location: eastus
storageAccount: azure_storage_account_name
apiVersion: v1
kind: ResourceQuota
metadata:
name: compute-resources-timebound
spec:
hard:
limits.cpu: "2"
limits.memory: 1Gi
scopes:
- Terminating
apiVersion: v1
kind: ResourceQuota
metadata:
name: compute-resources
spec:
hard:
limits.cpu: "4"
limits.memory: 2Gi
scopes:
- NotTerminating
apiVersion: "v1"
kind: "Pod"
metadata:
name: "jr-test"
spec:
containers:
- command:
- "sleep"
- "3600"
image: "busybox"
---
apiVersion: v1
kind: Template
metadata:
labels:
provider: fabric8
project: fabric8-online-jenkins
version: 1.0-SNAPSHOT
group: io.fabric8.online.packages
name: fabric8-online-jenkins