ADempiere gRPC Server example of integration
This is a project for publish Application Dictionary of ADempiere over gRPC service
For recreate stub class you must have follow:
- protobuf
- gradle
- Maven
- Also you can see it: gRPC-Java
- Complete Java Documentation After installed it just go to source code folder an run it:
In the build.gradle you need to include in the next sections the references to jars placed in lib, packages and zkpackages in your ADEMPIERE _HOME
- In the repository section as flatDir Example:
flatDir {
dirs $ad_path + '/lib'
}
- In de dependencies section, Example
implementation fileTree(dir: $ad_path + '/lib', include: '*.jar')
gradle wrapper
./gradlew clean
./gradlew installDist
The server can be running as java class. See it: org.spin.grpc.util.DictionaryServer Don't forgive that for run server you need set yaml file line is /resources folder.
- Use latest release
- Unzip binary
- go to bin folder
- run it
./adempiere-all-in-one-server "/tmp/dictionary_connection.yaml"
- ADempiere Backend: https://hub.docker.com/r/solopcloud/adempiere-backend
docker pull solop/adempiere-backend:experimental
- ADempiere Proxy: https://hub.docker.com/r/solopcloud/adempiere-proxy
docker pull solop/adempiere-proxy:experimental
- Frontend-Core: https://hub.docker.com/r/solopcloud/adempiere-vue
docker pull solop/adempiere-vue:experimental
To use this Docker image you must have your Docker engine release number greater than or equal to 3.0.
Build docker image (for development only):
docker build -t solop/adempiere-backend:dev -f ./build-docker/develop.Dockerfile .
Download docker image:
docker pull solop/adempiere-backend:experimental
Run container container:
docker run -it -d \
--name adempiere-backend \
-p 50059:50059 \
-e DB_HOST="your-db-host" \
-e DB_PORT="5432" \
-e DB_NAME=\"1204\" \
-e DB_PASSWORD="adempiere" \
-e TZ="America/Caracas" \
solopcloud/adempiere-backend:experimental
Or easy run container using docker-compose
with follow command:
docker-compose up
DB_TYPE
: Database Type (Supported Oracle, PostgreSQL and MariaDB). DefaultPostgreSQL
DB_HOST
: Hostname for data base server. Default:localhost
DB_PORT
: Port used by data base server. Default:5432
DB_NAME
: Database name that Adempiere-Backend will use to connect with the database. Default:adempiere
DB_USER
: Database user that Adempiere-Backend will use to connect with the database. Default:adempiere
DB_PASSWORD
: Database password that Adempiere-Backend will use to connect with the database. Default:adempiere
ADEMPIERE_APPS_TYPE
: Application Type for Database Management Connection. Default:wildfly
SERVER_PORT
: Port to access Adempiere-Backend from outside of the container. Default:50059
SERVICES_ENABLED
: Services enabled. Default:access; business; business_partner; core; dashboarding; dictionary; enrollment; file_management; general_ledger; in_out; invoice; log; material_management; order; payment; payment_print_export; payroll_action_notice; pos; product; store; time_control; ui; workflow;
SERVER_LOG_LEVEL
: Log Level. Default:WARNING
TZ
: (Time Zone) Indicates the time zone to set in the nginx-based container, the default value isAmerica/Caracas
(UTC -4:00).