Skip to content

Commit

Permalink
Use referenceapplication content package
Browse files Browse the repository at this point in the history
  • Loading branch information
jayasanka-sack committed Jan 6, 2025
1 parent b4c1027 commit e50ae3e
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 77 deletions.
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ COPY pom.xml ./
COPY distro ./distro/

# Build the distro, but only deploy from the amd64 build
RUN --mount=type=secret,id=m2settings,target=/usr/share/maven/ref/settings-docker.xml if [[ "$MVN_ARGS" != "deploy" || "$(arch)" = "x86_64" ]]; then mvn $MVN_ARGS_SETTINGS $MVN_ARGS; else mvn $MVN_ARGS_SETTINGS install; fi

RUN cp /openmrs_distro/distro/target/sdk-distro/web/openmrs.war /openmrs/distribution/openmrs_core/
RUN --mount=type=secret,id=m2settings,target=/usr/share/maven/ref/settings-docker.xml if [[ "$MVN_ARGS" != "deploy " || "$(arch)" = "x86_64" ]]; then mvn $MVN_ARGS_SETTINGS $MVN_ARGS; else mvn $MVN_ARGS_SETTINGS install; fi

RUN cp /openmrs_distro/distro/target/sdk-distro/web/openmrs_core/openmrs.war /openmrs/distribution/openmrs_core/
RUN cp /openmrs_distro/distro/target/sdk-distro/web/openmrs-distro.properties /openmrs/distribution/
RUN cp -R /openmrs_distro/distro/target/sdk-distro/web/modules /openmrs/distribution/openmrs_modules
RUN cp -R /openmrs_distro/distro/target/sdk-distro/web/owa /openmrs/distribution/openmrs_owas
RUN cp -R /openmrs_distro/distro/target/sdk-distro/web/openmrs_modules /openmrs/distribution/openmrs_modules
RUN cp -R /openmrs_distro/distro/target/sdk-distro/web/openmrs_owas /openmrs/distribution/openmrs_owas

# Copy configuration from the distro and content packages
RUN cp -R /openmrs_distro/distro/configuration /openmrs/distribution/openmrs_config
RUN cp -R /openmrs_distro/distro/target/sdk-distro/web/openmrs_config/* /openmrs/distribution/openmrs_config

# Clean up after copying needed artifacts
RUN mvn $MVN_ARGS_SETTINGS clean
Expand All @@ -33,4 +36,4 @@ COPY --from=dev /openmrs/distribution/openmrs_core/openmrs.war /openmrs/distribu
COPY --from=dev /openmrs/distribution/openmrs-distro.properties /openmrs/distribution/
COPY --from=dev /openmrs/distribution/openmrs_modules /openmrs/distribution/openmrs_modules
COPY --from=dev /openmrs/distribution/openmrs_owas /openmrs/distribution/openmrs_owas
COPY --from=dev /openmrs_distro/distro/configuration /openmrs/distribution/openmrs_config
COPY --from=dev /openmrs/distribution/openmrs_config /openmrs/distribution/openmrs_config
12 changes: 0 additions & 12 deletions distro/configuration/conceptclasses/conceptclasses-core_data.csv

This file was deleted.

25 changes: 0 additions & 25 deletions distro/configuration/conceptsources/conceptsources-core_data.csv

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions distro/configuration/locationtags/locationtags-core_demo.csv

This file was deleted.

Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions distro/distro.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ omod.event=${event.version}
omod.bedmanagement=${bedmanagement.version}
omod.stockmanagement=${stockmanagement.version}
omod.billing=${billing.version}
content.referenceapplication=1.0.0-SNAPSHOT
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@
<plugin>
<groupId>org.openmrs.maven.plugins</groupId>
<artifactId>openmrs-sdk-maven-plugin</artifactId>
<version>5.15.0</version>
<version>6.1.0-SNAPSHOT</version>

</plugin>
<plugin>
<groupId>org.openmrs.maven.plugins</groupId>
Expand Down

0 comments on commit e50ae3e

Please sign in to comment.