Hi Sumesh, You didn't mention which version of OFBiz you are working with, or the source of the scripts you are using to manage your docker containers.
On the trunk and release22.01 branches, the OFBiz project recently introduced the ability to build and run OFBiz using containers. You might find the implementation useful and be able to incorporate the ideas into your own scripts. See https://github.com/apache/ofbiz-framework/blob/trunk/Dockerfile for the container build process and https://github.com/apache/ofbiz-framework/blob/trunk/docker/docker-entrypoint.sh for the container entry point script. https://github.com/apache/ofbiz-framework/blob/trunk/DOCKER.md has information about building and running OFBiz in a container. I think the section on Hooks might be helpful for your situation. Using hooks you can run your own bash scripts at various points during initialisation for the first run of OFBiz. We use hooks for the demo websites, such as https://github.com/apache/ofbiz-tools/tree/master/demo-backup/ofbizdocker/home/ofbizdocker/demo-next/after-config-applied.d for the https://demo-next.ofbiz.apache.org/partymgr site. Hope that helps, Dan. On Mon, 1 May 2023 at 09:43, Sumesh R Acharya <[email protected]> wrote: > Hello community, > > Can anyone help me with Multi-tenant deployment using docker scripts. > Like when running the multi-tenant in the system we have to execute the > create tenant command in the first run, how to run this command when > deploying the application by using docker scripts. > > > > Regards, > Sumesh > -- Daniel Watford
