From 784d731419093bf7d0197134e15516727f77fa57 Mon Sep 17 00:00:00 2001 From: mrizzi Date: Fri, 26 Jul 2019 11:41:53 +0200 Subject: [PATCH] Enhanced README with local dev instructions --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 0ce82d35..e3e01aff 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,31 @@ Instructions from https://access.redhat.com/documentation/en-us/red_hat_fuse/7.3 1. once the import has finished, click the `Build & Install` button from the upper right `Build` menu 1. once the build has been successfully done, click on the `Deploy` button +# Development + +## How to deploy local code to local OKD instance +1. build an image with your local code + + `mvn -gs ./configuration/settings.xml clean package fabric8:build -DskipTests` +1. check the image `xavier/xavier-integration:latest` has been created running + + `docker image ls xavier/xavier-integration:latest` + + (pay attention to the `CREATED` column value) +1. you have to change the tag for this image in order to be able to push it to your local environment + + `docker tag xavier/xavier-integration:latest 172.30.1.1:5000/ma/analytics-integration:latest` +1. the first time you push the image, you need to login to OKD's repository, so execute the command + + `docker login -p 172.30.1.1:5000` + + where value is the one you can get from the OKD UI using the "Copy Login Command" from the user menu +1. now you're ready to push your image to your local OKD instance + + `docker push 172.30.1.1:5000/ma/analytics-integration:latest` +1. once the push finishes, the deployment of a new integration pod to run the new image will start automatically in your OKD instance + + # Manage ## PostgreSQL