idempiere / idempiere-docker

Official iDempiere Docker Image
14 stars 29 forks source link

Allow run as non-root and use patch to update source files #13

Closed hsahmed closed 2 months ago

hsahmed commented 2 months ago

The current docker container doesn't allow running as non-root user. This request changes the Dockerfile to add the idempiere user and group and builds and runs the server as that user. It also changes the idempiere group permissions to allow running as any user as long as it is a member of the idempiere group, this allows running on platforms that run containers as a random user (e.g. OpenShift).

Another thing changed is removing the updated idempiere-server.sh file and replacing it a patch that patches the source idempiere-server.sh which will allow changes to source idempiere-server.sh to still be possible.

ocurieles commented 2 months ago

Tested !! Ok, thanks for share :)