Closed alberttwong closed 8 years ago
So.. I'm now trying to do local builds and push into OSE.
Alberts-MacBook-Pro:openshift-fis-demo alwong$ mvn -Pf8-deploy [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Fabric8 :: Quickstarts :: Karaf :: Camel Log 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ xpaas --- [INFO] Deleting /Users/alwong/sandbox/openshift-fis-demo/target [INFO] [INFO] --- fabric8-maven-plugin:2.2.0.redhat-079:json (json) @ xpaas --- [INFO] Configured with file: /Users/alwong/sandbox/openshift-fis-demo/target/classes/kubernetes.json 2016-05-10 23:15:04 INFO Version:17 - HV000001: Hibernate Validator 5.2.2.Final [INFO] Generated env mappings: {} [INFO] Generated port mappings: {http=ContainerPort(containerPort=8181, hostIP=null, hostPort=null, name=http, protocol=null, additionalProperties={}), jolokia=ContainerPort(containerPort=8778, hostIP=null, hostPort=null, name=jolokia, protocol=null, additionalProperties={})} [INFO] Removed 'version' label from service selector for service `xpaas` [INFO] Generated ports: [] [INFO] Icon URL: https://cdn.rawgit.com/fabric8io/fabric8/master/fabric8-maven-plugin/src/main/resources/icons/camel.svg [INFO] Added environment annotations: [INFO] ReplicationController xpaas replicas: 1, image: fabric8/quickstart-karaf-camellog:1.0-SNAPSHOT [INFO] Template is now: [INFO] ReplicationController xpaas replicas: 1, image: fabric8/quickstart-karaf-camellog:1.0-SNAPSHOT [INFO] [INFO] --- maven-resources-plugin:2.5-redhat-1:resources (default-resources) @ xpaas --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ xpaas --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:2.5-redhat-1:testResources (default-testResources) @ xpaas --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/alwong/sandbox/openshift-fis-demo/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ xpaas --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.12.2-redhat-1:test (default-test) @ xpaas --- [INFO] No tests to run. [INFO] [INFO] --- maven-bundle-plugin:2.3.7:bundle (default-bundle) @ xpaas --- [WARNING] Bundle com.redhat.demo:xpaas:bundle:1.0-SNAPSHOT : No translation found for macro: body [WARNING] Bundle com.redhat.demo:xpaas:bundle:1.0-SNAPSHOT : No translation found for macro: sys.runtime.id [INFO] [INFO] --- fabric8-maven-plugin:2.2.0.redhat-079:attach (attach) @ xpaas --- [INFO] Generated Kubernetes JSON resources: [INFO] Template xpaas parameters: [INFO] ReplicationController xpaas replicas: 1, image: fabric8/quickstart-karaf-camellog:1.0-SNAPSHOT [INFO] Attaching kubernetes json file: /Users/alwong/sandbox/openshift-fis-demo/target/classes/kubernetes.json to the build [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ xpaas --- [INFO] Installing /Users/alwong/sandbox/openshift-fis-demo/target/xpaas.jar to /Users/alwong/.m2/repository/com/redhat/demo/xpaas/1.0-SNAPSHOT/xpaas-1.0-SNAPSHOT.jar [INFO] Installing /Users/alwong/sandbox/openshift-fis-demo/pom.xml to /Users/alwong/.m2/repository/com/redhat/demo/xpaas/1.0-SNAPSHOT/xpaas-1.0-SNAPSHOT.pom [INFO] Installing /Users/alwong/sandbox/openshift-fis-demo/target/classes/kubernetes.json to /Users/alwong/.m2/repository/com/redhat/demo/xpaas/1.0-SNAPSHOT/xpaas-1.0-SNAPSHOT-kubernetes.json [INFO] [INFO] --- maven-bundle-plugin:2.3.7:install (default-install) @ xpaas --- [INFO] Installing com/redhat/demo/xpaas/1.0-SNAPSHOT/xpaas-1.0-SNAPSHOT.jar [INFO] Writing OBR metadata [INFO] [INFO] --- maven-install-plugin:2.5.2:install (install-bundle) @ xpaas --- [INFO] Installing /Users/alwong/sandbox/openshift-fis-demo/target/xpaas.jar to /Users/alwong/.m2/repository/com/redhat/demo/xpaas/1.0-SNAPSHOT/xpaas-1.0-SNAPSHOT.jar [INFO] Installing /Users/alwong/sandbox/openshift-fis-demo/pom.xml to /Users/alwong/.m2/repository/com/redhat/demo/xpaas/1.0-SNAPSHOT/xpaas-1.0-SNAPSHOT.pom [INFO] Installing /Users/alwong/sandbox/openshift-fis-demo/target/classes/kubernetes.json to /Users/alwong/.m2/repository/com/redhat/demo/xpaas/1.0-SNAPSHOT/xpaas-1.0-SNAPSHOT-kubernetes.json [INFO] [INFO] --- karaf-maven-plugin:4.0.2.redhat-621079:assembly (karaf-assembly) @ xpaas --- [INFO] Using repositories: https://repo.fusesource.com/nexus/content/groups/public/@id=jboss-fuse-repository,http://maven.repository.redhat.com/earlyaccess/all/@id=jboss-earlyaccess-repository,https://maven.repository.redhat.com/ga@id=jboss-ga-repository,https://repo.maven.apache.org/maven2@id=central [INFO] Creating work directory [INFO] Loading kar and features repositories dependencies [INFO] Generating karaf assembly: /Users/alwong/sandbox/openshift-fis-demo/target/assembly [INFO] Unzipping kars [INFO] Loading profiles [INFO] Downloading libraries [INFO] Loading repositories [INFO] Resolving features [INFO] Installing bundle mvn:com.redhat.demo/xpaas/1.0-SNAPSHOT [INFO] Installing bundle mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.api/1.0.1 [INFO] Installing bundle mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.cm/1.0.6 [INFO] Installing bundle mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core/1.4.4 [INFO] Installing bundle mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0 [INFO] Installing bundle mvn:org.apache.aries.proxy/org.apache.aries.proxy.api/1.0.1 [INFO] Installing bundle mvn:org.apache.aries.proxy/org.apache.aries.proxy.impl/1.0.4 [INFO] Installing bundle mvn:org.apache.aries/org.apache.aries.util/1.1.0 [INFO] Installing bundle mvn:org.apache.camel/camel-blueprint/2.15.1.redhat-621084 [INFO] Installing bundle mvn:org.apache.camel/camel-catalog/2.15.1.redhat-621084 [INFO] Installing bundle mvn:org.apache.camel/camel-commands-core/2.15.1.redhat-621084 [INFO] Installing bundle mvn:org.apache.camel/camel-core/2.15.1.redhat-621084 [INFO] Installing bundle mvn:org.apache.camel.karaf/camel-karaf-commands/2.15.1.redhat-621084 [INFO] Installing bundle mvn:org.apache.felix/org.apache.felix.configadmin/1.8.4 [INFO] Installing bundle mvn:org.apache.felix/org.apache.felix.fileinstall/3.5.0 [INFO] Installing bundle mvn:org.apache.karaf.features/org.apache.karaf.features.core/2.4.0.redhat-621084 [INFO] Installing bundle mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.command/2.4.0.redhat-621084 [INFO] Installing bundle mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.config/2.4.0.redhat-621084 [INFO] Installing bundle mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.modules/2.4.0.redhat-621084 [INFO] Installing bundle mvn:org.apache.karaf.shell/org.apache.karaf.shell.commands/2.4.0.redhat-621084 [INFO] Installing bundle mvn:org.apache.karaf.shell/org.apache.karaf.shell.console/2.4.0.redhat-621084 [INFO] Installing bundle mvn:org.apache.karaf.shell/org.apache.karaf.shell.dev/2.4.0.redhat-621084 [INFO] Installing bundle mvn:org.apache.karaf.shell/org.apache.karaf.shell.log/2.4.0.redhat-621084 [INFO] Installing bundle mvn:org.apache.karaf.shell/org.apache.karaf.shell.osgi/2.4.0.redhat-621084 [INFO] Installing bundle mvn:org.apache.karaf.shell/org.apache.karaf.shell.packages/2.4.0.redhat-621084 [INFO] Installing bundle mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.11_1 [INFO] Installing bundle mvn:org.ow2.asm/asm-all/5.0.3 [INFO] Installing bundle mvn:org.ops4j.pax.logging/pax-logging-api/1.8.4 [INFO] Installing bundle mvn:org.ops4j.pax.logging/pax-logging-service/1.8.4 [INFO] Installing bundle mvn:org.ops4j.pax.url/pax-url-aether/2.4.2 [INFO] Installing bundle mvn:org.ops4j.pax.url/pax-url-wrap/2.4.2/jar/uber [INFO] Installing bundle mvn:org.codehaus.woodstox/stax2-api/3.1.4 [INFO] Installing bundle mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1 [INFO] Installing feature config for shell/2.4.0.redhat-621084 [INFO] Installing feature config for karaf-framework/2.4.0.redhat-621084 [INFO] Installing feature config for xml-specs-api/2.5.0 [INFO] Installing feature config for camel-core/2.15.1.redhat-621084 [INFO] Installing feature config for jaas/2.4.0.redhat-621084 [INFO] Installing feature config for jaas-condition-shell/2.4.0.redhat-621084 [INFO] Installing feature config for camel-blueprint/2.15.1.redhat-621084 [INFO] Installing feature config for aries-blueprint/2.4.0.redhat-621084 [INFO] Installing feature config for aries-proxy/2.4.0.redhat-621084 [INFO] Feature a05e664e-0875-4c59-a811-03da2cae3165 is defined as a boot feature [INFO] [INFO] --- karaf-maven-plugin:4.0.2.redhat-621079:archive (karaf-archive) @ xpaas --- [INFO] [INFO] --- docker-maven-plugin:0.13.6:build (default-cli) @ xpaas --- [ERROR] DOCKER> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.935 s [INFO] Finished at: 2016-05-10T23:15:10-07:00 [INFO] Final Memory: 56M/736M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.jolokia:docker-maven-plugin:0.13.6:build (default-cli) on project xpaas: Unable to check image [jboss-fuse-6/fis-karaf-openshift:1.0] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
You need to run vagrant service-manager env and put that all into your shell and then vagrant provision.
vagrant service-manager env
vagrant provision
Another option with adbinfo. See http://slides.com/weimeilin/fislab#/4
So.. I'm now trying to do local builds and push into OSE.