Skip to content

Instructions to create a docker image/kubernetes file for a Fabric V2 project #2

@cmoulliard

Description

@cmoulliard

you need a docker image and a kubernetes json to run stuff on kubernetes. So... "mvn docker:push" creates a docker image
http://fabric8.io/v2/mavenPlugin.html#building-your-docker-image

and pushes it to a local docker registry (see the use of env vars in the pom.xml of the quickstarts);
http://fabric8.io/v2/mavenPlugin.html#specifying-the-location-of-your-local-docker-registry

then the json is created via "mvn fabric8:json".
http://fabric8.io/v2/mavenPlugin.html#generating-the-json

Then you can run it on kubernetes via the CLI, dragging/dropping the app zip into the Library tab (currently not enabled on hawtio 2.x but it'll come back soon) or use maven

use fabric8:run to run a generated kubernetes json:
http://fabric8.io/v2/mavenPlugin.html#running

(mvn fabric8:deploy just adds it to the app library so you can then run it via hawtio - but thats currently disabled...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions