Thursday, October 16, 2014

Fabric8 V2

Fabric8 v2 integrates with OpenShift v3 and Docker.

  • Fabric8 V2 documentation: http://fabric8.io/v2/mavenPlugin.html#example
  • When an app is start as Java Main Docker uses the following docker file: https://github.com/fabric8io/java-docker/blob/master/Dockerfile
  • Use NSEnter to Connect to a running docker container: http://ro14nd.de/NSEnter-with-Boot2Docker/
  • Link to a running hawtio on v2: http://dockerhost:8484/hawtio/kubernetes/pods
  • See docker output: "docker logs "
  • if the docker container image's entry point of java $MAIN
    then docker run -Pit mynewlygeneratedimage will run the java main