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
2 changes: 1 addition & 1 deletion .github/workflows/build_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
branches:
- snomed-master
- 'snomed-release-*'
- buildAndCloneRepo
tags:
- 'snomed-[0-9]+.[0-9]+.[0-9]+'

jobs:
build-publish-docker:
name: Build & Publish Docker Image
Expand Down
33 changes: 33 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 ?


ENV SERVER_PORT=8051
ENV BASE_DIR=/var/run/bahmni-reports
ENV CONTEXT_PATH=/bahmnireports
ENV WAR_DIRECTORY=/var/run/bahmni-reports/bahmni-reports
ENV SERVER_OPTS="-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m"
ENV DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,address=8003,server=y,suspend=n"

RUN mkdir -p /var/log/bahmni-reports
RUN mkdir -p /home/bahmni/reports
RUN mkdir -p ${WAR_DIRECTORY}
RUN mkdir -p ${HOME}/.bahmni-reports/
RUN mkdir -p /var/log/bahmni-reports/
RUN yum install -y gettext unzip

ADD https://raw.githubusercontent.com/eficode/wait-for/v2.2.3/wait-for /etc/wait-for
RUN yum install -y nc
RUN chmod +x /etc/wait-for

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
ADD https://github.com/daviemukungi/bahmni-Icd10extensions/raw/main/jarfile/extensions-1.0-SNAPSHOT.jar /opt/bahmni-reports/lib/extensions-1.0-SNAPSHOT.jar

COPY package/resources/log4j2.properties ${WAR_DIRECTORY}/WEB-INF/classes/
COPY package/resources/run-liquibase.sh /etc/bahmni-reports/
COPY package/docker/bahmni-reports/template/bahmni-reports.properties.template /etc/bahmni-reports/

COPY package/docker/bahmni-reports/start.sh start.sh
RUN chmod +x start.sh
CMD [ "./start.sh" ]
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import net.sf.dynamicreports.jasper.builder.JasperReportBuilder;
import org.apache.commons.lang3.StringUtils;

import java.util.Collection;
import java.util.Map;

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

40 changes: 0 additions & 40 deletions src/main/java/org/bahmni/reports/extensions/icd10/bean/IcdMap.java

This file was deleted.

This file was deleted.

Loading
Loading