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

BS-123 #81

Closed
wants to merge 12 commits into from
Closed

BS-123 #81

wants to merge 12 commits into from

Conversation

daviemukungi
Copy link
Collaborator

Requirements

  • This PR has a proper title that briefly describes the work done
  • I have squashed / amended the comments to make it more readable
  • I have included link to all the JIRA ticket('s)
  • I wrote the code as a pair or atleast performed a self-review of my own code
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Summary

Workflows to clone ICD10 extensions repository, build the jar and add the jar to the execution classpath

Screenshot

snomedScreenshot

JIRA tickets

https://bahmni.atlassian.net/browse/BS-123

@daviemukungi daviemukungi changed the title Build and clone repo BS-123 Aug 4, 2023
@@ -4,9 +4,9 @@ on:
branches:
- snomed-master
- 'snomed-release-*'
- reports-issue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove this branch.

@@ -0,0 +1,33 @@
FROM amazoncorretto:8
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where are you using newly created file ?


RUN cp /opt/bahmni-reports-extension-icd10/target/extensions-1.0-SNAPSHOT.jar ${WAR_DIRECTORY}/WEB-INF/lib/extensions-1.0-SNAPSHOT.jar
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please follow semantic versioning for version

@@ -99,7 +99,7 @@ private void enrichUsingReflection(String extensionClassStr, Collection<Map<Stri
Constructor constructor = extensionClass.getDeclaredConstructor();
constructor.setAccessible(true);
ResultSetExtension extension = (ResultSetExtension) constructor.newInstance();
extension.enrich(collection, jasperReport);
extension.enrich(collection, jasperReport);//enrich
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove this comment

@@ -22,7 +24,10 @@ COPY target/bahmnireports.war /etc/bahmni-reports/bahmnireports.war
RUN cd ${WAR_DIRECTORY} && jar xvf /etc/bahmni-reports/bahmnireports.war

ADD https://repo.mybahmni.org/packages/build/bahmni-embedded-tomcat-8.0.42.jar /opt/bahmni-reports/lib/bahmni-embedded-tomcat.jar
RUN cd /opt/ && git clone https://github.com/Bahmni/bahmni-reports-extension-icd10.git
RUN cd /opt/bahmni-reports-extension-icd10 && mvn clean install
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can remove the directory /opt/bahmni-reports-extension-icd10 after copying of jar file

@daviemukungi
Copy link
Collaborator Author

Not needed

@daviemukungi daviemukungi deleted the buildAndCloneRepo branch August 10, 2023 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants