Updates for LowCoder to getit running inside OpenShift Container Platform
Important Notice: The Image created by this repository can be used inside OpenShift with the following restriction:
DO NOT SET "LOWCODER_PUID" OR "LOWCODER_PGID". Or - if you really have to - set it to their default values of "9001". Everything else can be set via env vars as needed.
- Dockerfile
- add runtime user "lowcoder" to group "root"
- create "/lowcoder-stacks" directory and make it group "root" writable
- same for "api-service/logs" directory (why in the first place does it write logs into the container?)
- make group "root" writable "/lowcoder/etc/supervisord"
- make group "root" writable multiple different nginx directories
- main entrypoint.sh
- no call to usermod command (not modify runtime user)
- no chown of /lowcoder-stacks, already done in Dockerfile
- modify all supervisord program configs to remove "user=" directive as user switch not allowed
- api-service/entrypoint.sh
- do not use "gosu" as we are already running non-privileged
- node-service/entrypoint.sh
- do not use "gosu" as we are already running non-privileged
- supervisord.conf
- disable inet server socket (not used)
- set "logfile_maxbytes = 0" to disable log rotation on stocket