This repository has been archived by the owner on Jun 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
570 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# How to contribute. | ||
|
||
In general you can make a pull request to the https://github.com/growerp/growerp repository: | ||
|
||
1. Fork it! | ||
2. Create your feature branch from master/main branch: git checkout -b my-new-feature | ||
3. Commit your changes: git commit -am 'Add some feature' | ||
4. Push to the branch: git push --set-upstream origin my-new-feature | ||
5. Submit a pull request. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#stage 1 -get files and build | ||
FROM openjdk:11-jdk as build-env | ||
MAINTAINER Growerp <support@growerp.com> | ||
|
||
ARG BRANCH=development # currently either master or development we need to add existing | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y curl git wget zip unzip apt-transport-https && \ | ||
apt-get clean | ||
#install dart | ||
RUN wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /usr/share/keyrings/dart.gpg | ||
RUN echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | tee /etc/apt/sources.list.d/dart_stable.list | ||
RUN apt-get update && apt-get install dart | ||
RUN export PATH="/usr/lib/dart/bin:$PATH" | ||
#install growerp backend | ||
RUN dart pub global activate growerp | ||
ENV PATH="/root/.pub-cache/bin:$PATH" | ||
# will install in /root/growerp/flutterDevelopment | ||
RUN growerp install backend -dev -noBuild | ||
# antwebsystems website | ||
WORKDIR /root/growerp/moquiDevelopment/ | ||
RUN git clone --depth 1 https://github.com/AntWebsystems-Co-Ltd/vueWebsite.git /root/vueWebsite | ||
RUN cp /root/vueWebsite/AWSSetupAaaWebSiteData.xml runtime/component/growerp/service/growerp | ||
RUN cp /root/vueWebsite/WebSiteRestServices.xml runtime/component/growerp/data | ||
# local db for development but need search | ||
RUN echo $BRANCH | ||
RUN if [ "$BRANCH" = "development" ]; then ./gradlew downloadElasticsearch ; fi | ||
# production uses postgresql | ||
RUN if [ "$BRANCH" = "master" ]; then curl -L https://jdbc.postgresql.org/download/postgresql-42.2.9.jar -o /runtime/lib ; fi | ||
RUN ./gradlew addRunTime | ||
# unzip war file | ||
WORKDIR /opt/moqui | ||
RUN unzip -q /root/growerp/moquiDevelopment/moqui-plus-runtime.war | ||
|
||
# stage 2 create image | ||
FROM openjdk:11-jdk | ||
RUN apt-get update && apt-get install -y apt-transport-https nano && apt-get clean | ||
WORKDIR /opt | ||
COPY --from=build-env /opt/moqui . | ||
# exposed as volumes for configuration purposes | ||
VOLUME ["/opt/moqui/runtime/conf", "/opt/moqui/runtime/lib", "/opt/moqui/runtime/classes", "/opt/moqui/runtime/ecomponent"] | ||
# exposed as volumes to persist data outside the container, recommended | ||
VOLUME ["/opt/moqui/runtime/log", "/opt/moqui/runtime/txlog", "/opt/moqui/runtime/sessions", "/opt/moqui/runtime/db", "/opt/moqui/runtime/elasticsearch"] | ||
|
||
# Main Servlet Container Port | ||
EXPOSE 80 | ||
# ElasticSearch HTTP Port | ||
EXPOSE 9200 | ||
# ElasticSearch Cluster (TCP Transport) Port | ||
EXPOSE 9300 | ||
# Hazelcast Cluster Port | ||
EXPOSE 5701 | ||
|
||
# this is to run from the war file directly, preferred approach unzips war file in advance | ||
# ENTRYPOINT ["java", "-jar", "moqui.war"] | ||
ENTRYPOINT ["java", "-cp", ".", "MoquiStart", "port=80"] | ||
|
||
HEALTHCHECK --interval=30s --timeout=600ms --start-period=120s CMD curl -f -H "X-Forwarded-Proto: https" -H "X-Forwarded-Ssl: on" http://localhost/status || exit 1 | ||
# specify this as a default parameter if none are specified with docker exec/run, ie run production by default | ||
CMD ["conf=conf/MoquiProductionConf.xml"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
patches/mantle-udm/0001-add-facility-location-to-assets-relationship.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From ba051c56ea3b7ad9de9dd64de7e3eadff5029d8c Mon Sep 17 00:00:00 2001 | ||
From: Hans Bakker <h.bakker@antwebsystems.com> | ||
Date: Tue, 14 Dec 2021 09:49:34 +0700 | ||
Subject: [PATCH] add facility location to assets relationship | ||
|
||
--- | ||
entity/FacilityEntities.xml | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/entity/FacilityEntities.xml b/entity/FacilityEntities.xml | ||
index d86a207..b3fb1d8 100644 | ||
--- a/entity/FacilityEntities.xml | ||
+++ b/entity/FacilityEntities.xml | ||
@@ -259,6 +259,8 @@ along with this software (see the LICENSE.md file). If not, see | ||
<relationship type="one" related="moqui.basic.GeoPoint" short-alias="geoPoint"/> | ||
<relationship type="one" title="Capacity" related="moqui.basic.Uom" short-alias="capacityUom"> | ||
<key-map field-name="capacityUomId"/></relationship> | ||
+ <relationship type="many" related="mantle.product.asset.Asset" short-alias="AssetLocation"> | ||
+ <key-map field-name="facilityId"/><key-map field-name="locationSeqId"/></relationship> | ||
<seed-data> | ||
<!-- Facility Location Type --> | ||
<moqui.basic.EnumerationType description="Facility Location Type" enumTypeId="FacilityLocationType"/> | ||
-- | ||
2.34.1 | ||
|
54 changes: 54 additions & 0 deletions
54
patches/mantle-udm/0001-disable-itemType-gl-accounts-and-payroll-simplified-.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
From 7ce84bbb043d22d0d2174058e2c4b5b9fad3dfd7 Mon Sep 17 00:00:00 2001 | ||
From: Hans Bakker <h.bakker@antwebsystems.com> | ||
Date: Tue, 8 Jun 2021 05:28:42 +0700 | ||
Subject: [PATCH] disable itemType, gl accounts and payroll: simplified version | ||
provided in growerp-moqui component | ||
|
||
--- | ||
data/ItemTypeData.xml | 2 +- | ||
data/ZaaGlAccountsInstallData.xml | 2 +- | ||
data/ZapPayrollTaxInstallData.xml | 2 +- | ||
3 files changed, 3 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/data/ItemTypeData.xml b/data/ItemTypeData.xml | ||
index 83289e9..35634ee 100644 | ||
--- a/data/ItemTypeData.xml | ||
+++ b/data/ItemTypeData.xml | ||
@@ -12,7 +12,7 @@ You should have received a copy of the CC0 Public Domain Dedication | ||
along with this software (see the LICENSE.md file). If not, see | ||
<http://creativecommons.org/publicdomain/zero/1.0/>. | ||
--> | ||
-<entity-facade-xml type="seed"> | ||
+<entity-facade-xml type="seedMoqui"> | ||
|
||
<!-- General Item Types (Order, Return, Invoice) --> | ||
<moqui.basic.EnumerationType description="Item Type (Order, Return, Invoice)" enumTypeId="ItemType"/> | ||
diff --git a/data/ZaaGlAccountsInstallData.xml b/data/ZaaGlAccountsInstallData.xml | ||
index bca1f54..4ed054a 100644 | ||
--- a/data/ZaaGlAccountsInstallData.xml | ||
+++ b/data/ZaaGlAccountsInstallData.xml | ||
@@ -12,7 +12,7 @@ You should have received a copy of the CC0 Public Domain Dedication | ||
along with this software (see the LICENSE.md file). If not, see | ||
<http://creativecommons.org/publicdomain/zero/1.0/>. | ||
--> | ||
-<entity-facade-xml type="install"> | ||
+<entity-facade-xml type="installMoqui"> | ||
<!-- Uses syntax in https://docs.oracle.com/javase/8/docs/api/javax/swing/text/MaskFormatter.html --> | ||
<!-- Only used if PartyAcctgPreference.glAccountCodeMask is empty or the context only supports this global or user setting --> | ||
<moqui.security.UserGroupPreference userGroupId="ALL_USERS" preferenceKey="GlAccountCodeMask" preferenceValue="###-###-###"/> | ||
diff --git a/data/ZapPayrollTaxInstallData.xml b/data/ZapPayrollTaxInstallData.xml | ||
index 49cba9a..677a948 100644 | ||
--- a/data/ZapPayrollTaxInstallData.xml | ||
+++ b/data/ZapPayrollTaxInstallData.xml | ||
@@ -12,7 +12,7 @@ You should have received a copy of the CC0 Public Domain Dedication | ||
along with this software (see the LICENSE.md file). If not, see | ||
<http://creativecommons.org/publicdomain/zero/1.0/>. | ||
--> | ||
-<entity-facade-xml type="install"> | ||
+<entity-facade-xml type="installMoqui"> | ||
|
||
<!-- ============================================================================================================= | ||
NOTE: While based on real data this data is for demo/testing purposes only. AS STATED IN THE LICENSE THERE IS | ||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.