Skip to content

Commit

Permalink
HSC-319: Added OpenMRS module ERP. (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruhanga authored Oct 14, 2024
1 parent 9f09df9 commit ecd2c8b
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 1 deletion.
5 changes: 5 additions & 0 deletions configs/openmrs/properties/erp.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
erp.host=${ODOO_HOST}
erp.port=8069
erp.user=${ODOO_USER}
erp.password=${ODOO_PASSWORD}
erp.database=${ODOO_DB}
30 changes: 29 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<maven.compiler.target>8</maven.compiler.target>
<!-- Classifier for the dependency report artifact -->
<dependencyReportClassifier>dependencies</dependencyReportClassifier>
<openmrsERPVersion>2.1.0-SNAPSHOT</openmrsERPVersion>
</properties>

<dependencies>
Expand All @@ -34,7 +35,11 @@
<type>zip</type>
<version>1.0.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.openmrs.module</groupId>
<artifactId>erp-omod</artifactId>
<version>${openmrsERPVersion}</version>
</dependency>
<!-- TODO: Add any implementation-specific dependencies -->
</dependencies>

Expand Down Expand Up @@ -89,6 +94,29 @@
</resources>
</configuration>
</execution>
<execution>
<!-- Copy over the Docker Compose override file -->
<id>Copy docker-compose-override.yml</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/${project.artifactId}-${project.version}/run/docker/
</outputDirectory>
<overwrite>true</overwrite>
<resources>
<resource>
<directory>${project.basedir}/scripts</directory>
<includes>
<include>docker-compose-override.yml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
Expand Down
5 changes: 5 additions & 0 deletions scripts/docker-compose-files.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
docker-compose-common.yml
docker-compose-odoo.yml
docker-compose-openmrs.yml
docker-compose-senaite.yml
docker-compose-override.yml
8 changes: 8 additions & 0 deletions scripts/docker-compose-override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:

env-substitution:
environment:
- ODOO_HOST=${ODOO_HOST:-http://odoo}
- ODOO_USER=${ODOO_USER}
- ODOO_PASSWORD=${ODOO_PASSWORD}
- ODOO_DB=${ODOO_DB:-odoo}

0 comments on commit ecd2c8b

Please sign in to comment.