clp icon indicating copy to clipboard operation
clp copied to clipboard

clp-package: Fix a bug where containers do not have write permission to directories when run as root.

Open haiqi96 opened this issue 8 months ago • 0 comments

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

  1. Run clp package with root, confirmed that package can run properly
  2. 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

haiqi96 avatar Jun 27 '24 19:06 haiqi96