Skip to content

Instantly share code, notes, and snippets.

View davsclaus's full-sized avatar

Claus Ibsen davsclaus

View GitHub Profile
#!/bin/sh
M2_REPO=${HOME}/.m2
OLDFILES=/tmp/oldfiles.txt
AGE=31
find "${M2_REPO}" -name '*jar' -atime +${AGE} -exec dirname {} \; >> ${OLDFILES}
find "${M2_REPO}" -name '*war' -atime +${AGE} -exec dirname {} \; >> ${OLDFILES}
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>3.2-SNAPSHOT</version>
<executions>
<execution>
<id>fmp</id>
<goals>
<goal>resource</goal>
<goal>helm</goal>
Last login: Fri Dec 2 12:32:33 on ttys000
cdavsclaus:/Users/davsclaus/$ curl -i http://localhost:8080/
HTTP/1.1 200 OK
Accept: */*
Connection: keep-alive
breadcrumbId: ID-davsclaus-air-56011-1480678388490-0-1
Transfer-Encoding: chunked
X-Application-Context: application
User-Agent: curl/7.43.0
Date: Fri, 02 Dec 2016 11:33:15 GMT
davsclaus:/Users/davsclaus/workspace/fabric8-forge/fabric8-forge (lc)/$ kubectl get pods
NAME READY STATUS RESTARTS AGE
apiman-2635861885-j354w 0/1 Running 0 2m
apiman-gateway-1196827260-79epo 0/1 Running 0 2m
artifactory-1403060322-m9mtr 0/1 ContainerCreating 0 2m
chaos-monkey-1083039957-6tucl 0/1 ContainerCreating 0 2m
configmapcontroller-3703242456-y23i2 1/1 Running 0 1h
content-repository-1647745010-2bw0j 0/1 ContainerCreating 0 2m
elasticsearch-650243924-auug1 0/2 Init:0/1 0 2m
elasticsearch-v1-529334187-53vgh 0/1 ContainerCreating 0 2m
davsclaus:/Users/davsclaus/Documents/workspace/fabric8-hello (master)/$ mvn io.fabric8:fabric8-maven-plugin:3.1.62:cluster-start -Dfabric8.cluster.kind=openshift
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/io/fabric8/fabric8-maven-plugin/3.1.62/fabric8-maven-plugin-3.1.62.pom
Downloaded: https://repo.maven.apache.org/maven2/io/fabric8/fabric8-maven-plugin/3.1.62/fabric8-maven-plugin-3.1.62.pom (6 KB at 5.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/io/fabric8/fabric8-maven-parent/3.1.62/fabric8-maven-parent-3.1.62.pom
Downloaded: https://repo.maven.apache.org/maven2/io/fabric8/fabric8-maven-parent/3.1.62/fabric8-maven-parent-3.1.62.pom (16 KB at 61.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/io/fabric8/fabric8-maven-plugin/3.1.62/fabric8-maven-plugin-3.1.62.jar
Downloaded: https://repo.maven.apache.org/maven2/io/fabric8/fabric8-maven-plugin/3.1.62/fabric8-maven-plugin-3.1.62.jar (222 KB at 665.1 KB/sec)
[INFO]
[INFO] ------------------------
davsclaus:/Users/davsclaus/Documents/workspace/fabric8-hello/helloswarm (master)/$ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Wildfly Swarm Example 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ helloswarm ---
[INFO] Deleting /Users/davsclaus/Documents/workspace/fabric8-hello/helloswarm/target
[INFO]
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running VerifyBuildArtefactIT
Sep 30, 2016 4:06:52 PM org.jboss.arquillian.drone.webdriver.factory.remote.reusable.ReusedSessionPermanentFileStorage readStore
INFO: Reused session store is not available at /Users/davsclaus/.drone-webdriver-session-store, a new one will be created.
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.58 sec <<< FAILURE! - in VerifyBuildArtefactIT
VerifyBuildArtefactIT Time elapsed: 1.58 sec <<< ERROR!
org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException:
Found 1 problems while building POM model from /Users/davsclaus/workspace/wildfly-swarm/testsuite/testsuite-buildtool/multi-module/view/pom.xml
davsclaus:/opt/minishift/$ minishift start --memory=5000
Starting local OpenShift cluster...
panic: kvm not supported
goroutine 1 [running]:
panic(0xef2a40, 0xc420414720)
/usr/local/go/src/runtime/panic.go:500 +0x1a1
github.com/jimmidyson/minishift/pkg/minikube/cluster.createKVMHost(0xc42013eaa0, 0x50, 0x1388, 0x1, 0x4e20, 0xc4204140e3, 0x3, 0x0, 0x0, 0x0, ...)
/home/jdyson/go/src/github.com/jimmidyson/minishift/_gopath/src/github.com/jimmidyson/minishift/pkg/minikube/cluster/cluster_non_linux_panic.go:24 +0x6d
github.com/jimmidyson/minishift/pkg/minikube/cluster.createHost(0x427ab80, 0xc42013ea50, 0xc42013eaa0, 0x50, 0x1388, 0x1, 0x4e20, 0xc4204140e3, 0x3, 0x0, ...)
2016-09-09 12:23:52.480660 I | Added http://192.168.64.5:31511 fabric8.io/exposeUrl annotation to service fabric8
2016-09-09 12:23:56.487117 I | Updating service fabric8 using NodePort
2016-09-09 12:23:56.487139 I | ExistingExposeURL , newExposeURL http://192.168.64.5:31511, hasServiceChanged true
2016-09-09 12:23:56.491054 I | Failed to add the fabric8.io/exposeUrl to service fabric8 Service "fabric8" is invalid: spec.externalIPs: Forbidden: externalIPs have been disabled
davsclaus:/Users/davsclaus/Documents/workspace/$ minishift start --memory=2000
Starting local OpenShift cluster...
E0909 13:54:41.963300 21686 start.go:89] Error starting host: Error creating. Error creating machine: Error checking the host: Error checking and/or regenerating the certs: There was an error validating certificates for host "192.168.64.5:2376": tls: DialWithDialer timed out
You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'.
Be advised that this will trigger a Docker daemon restart which will stop running containers.
. Retrying.
oc is now configured to use the cluster.
Run this command to use the cluster:
oc login --username=admin --password=admin