As part of OFBIZ-12757 and OFBIZ-12786, docker deployments are being carried on VM ofbiz-vm1.apache.org for the demo-trunk site.
Work under OFBIZ-12757 also created 3 experimental sites:
These sites may be disabled at any time, but the hostnames will be left configured to enable rapid experimentation with demo sites in the future.
Files in this subdirectory of the ofbiz-tools repository reflect files which should be created on the root filesystem of ofbiz-vm1.apache.org with the following additions and/or settings:
At 02:35h UTC each day, the cronttab defined by
/etc/cron.d/ofbizdocker will execute script
pull-and-restart.sh script does the following:
docker compose pullto pull the latest container images needed to support the docker compose application.
docker compose down --volumesto shutdown and remove any existing containers and volumes for the docker compose application.
docker compose up -dto start the containers for the docker compose application.
demo-trunk application listens on AJP port 8009.
If in use, the
exp1 application listens on AJP port 38009, the
exp2 application listens on AJP port 48009, and the
exp3 application listens on AJP port 58009. The Apache server on ofbiz-vm1.apache.org has been configured to reverse-proxy to these applications for hostnames exp1.ofbiz.apache.org, exp2.ofbiz.apache.org and exp3.ofbiz.apache.org respectively.
The docker daemon on ofbiz-vm1.apache.org has been configured to use default user namespace remapping. This means that the UIDs of processes running within containers are mapped to a range of ‘high’ non-existing UIDs on the host system. Since the UIDs are non-existant, processes with those UIDs will have no priviledges on the host system.
dockremap entry in file /etc/subuid to see the range of UIDs that will be used for remapping.