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

Enhanced README with local dev instructions #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <token> 172.30.1.1:5000`

where <token> 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
Expand Down