Compile pacs-integration and upload it in the server

Hi, bahmni community,

I want to update the project pacs-integration GitHub - Bahmni/pacs-integration for my needs, but I don’t know how to put in my bahmni server that update. The project already generates the target folder so the project can be compiled, but I don’t know how to upload the changes that I have made to the server.

Does anyone know how to do this?

1 Like

@angshuonline do you have any idea about this issue?

Not sure what you mean by “update” if you want to improve the code, fork it, build it. It should build out a war. If you want to create an rpm package out of it. check this

1 Like

@angshuonline Thank you for replying,

Yep, I want to improve the code of the pacs-integration project. I check the link, but I didn’t achieve to generate the rpm file from the .war file. Do you have any script or guide on what should I do?

you need to look into the gradle script, modify it accordingly to pick up the war from the right place and do the following

cd bahmni_package && ./gradlew :bahmni-pacs:clean :bahmni-pacs:dist

1 Like

Thanks, @angshuonline.

Here is the completed answer:

  1. Install java v8, maven and gradle

    sudo apt install -y openjdk-8-jdk

    sudo apt install -y maven

    sudo apt install -y gradle

  2. Go inside pacs-integration project directory

  3. Execute command mvn clean install, this will compile the project and generate pacs-integration.war file.

  4. Clone bahmni-package project

    git clone https://github.com/Bahmni/bahmni-package.git

  5. Move pacs-integration.war file from pacs-integration project to bahmni-package project

    mv pacs-integration-webapp/target/pacs-integration.war /bahmni-package/bahmni-pacs/resources/pacs-integration/

  6. Genarete new rpm file for pacs-integration

    cd bahmni_package && ./gradlew :bahmni-pacs:clean :bahmni-pacs:dist

1 Like