Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cmoulliard opened this issue Feb 23, 2015 · 0 comments
Labels

Comments

@cmoulliard
Copy link
Owner

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...)

@cmoulliard cmoulliard added the tip label Mar 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant