This project is the first initiative for improve ADempiere as a microservice based. Currently ADempiere is very monolithic structure.
I just want to improve ADempiere for many concorrent users.
The ADempiere middleware is a service to expose ADempiere as gRPC service with a little functionality of ADempiere:
- Create Entity
- Update Entity
- Delete Entity
- Delete Entity
Since the ADempiere dependency is vital for this project is high recommended that the you are sure that of project adempiere-jwt-token is installed and the setup is runned in ADempiere Database.
gradle run --args="resources/env.yaml"For Token validation is used JWT
docker pull openls/adempiere-middleware:alpineTo use this Docker image you must have your Docker engine version greater than or equal to 3.0.
DB_TYPE: Database Type (SupportedOracleandPostgreSQL). DefaultPostgreSQLDB_HOST: Hostname for data base server. Default:localhostDB_PORT: Port used by data base server. Default:5432DB_NAME: Database name that adempiere-middleware will use to connect with the database. Default:adempiereDB_USER: Database user that adempiere-middleware will use to connect with the database. Default:adempiereDB_PASSWORD: Database password that Adempiere-Backend will use to connect with the database. Default:adempiereSERVER_PORT: Port to access adempiere-middleware from outside of the container. Default:50059SERVER_LOG_LEVEL: Log Level. Default:WARNINGTZ: (Time Zone) Indicates the time zone to set in the nginx-based container, the default value isAmerica/Caracas(UTC -4:00).
You can download the last image from docker hub, just run the follow command:
docker run -d -p 50059:50059 --name adempiere-middleware -e SERVER_PRIVATE_KEY="<Your ADempiere Token>" -e DB_HOST="localhost" -e DB_PORT=5432 -e DB_NAME="adempiere" -e DB_USER="adempiere" -e DB_PASSWORD="adempiere" openls/adempiere-middleware:middleware:alpineSee all images here
You can also run it with docker compose for develop enviroment. Note that this is a easy way for start the service with PostgreSQL and middleware.
docker compose version
Docker Compose version v2.16.0Just go to docker-compose folder and run it
cd docker-composedocker compose upYou can change variables editing the .env file. Note that this file have a minimal example.