Skip to content

Instantly share code, notes, and snippets.

View davsclaus's full-sized avatar

Claus Ibsen davsclaus

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
#!/bin/sh
M2_REPO=${HOME}/.m2
OLDFILES=/tmp/oldfiles.txt
find "${M2_REPO}" -type f -name '*SNAPSHOT*' -exec dirname {} \; >> ${OLDFILES}
for x in `cat ${OLDFILES}`; do rm -rf "$x"; done
#!/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, ...)