clp
clp copied to clipboard
clp-package: Fix a bug where containers do not have write permission to directories when run as root.
Description
When running container as root user, redis, results cache and rabbitmq containers lose the write permission to log and data directories. This PR adds a temporary fix. We let the container run with their default user and change the ownership of the log directories when the current user is root. Also adds a start up check for redis
Validation performed
- Run clp package with root, confirmed that package can run properly
- Run clp package with non-root. Stop and restart the same package as root, confirmed that package can run properly, indicating that ownership of the folders and their contents has been changed successfully