sonic-buildimage/dockers/docker-database
Mai Bui ff5f46955c
[database] make Redis process runs as non-root user (#16326)
Why I did it
Running the Redis server as the "root" user is not recommended. It is suggested that the server should be operated by a non-privileged user.

Work item tracking
Microsoft ADO (number only): 15895240

How I did it
Ensure the Redis process is operating under the 'redis' user in supervisord and make redis user own REDIS_DIR inside db container.

How to verify it
Built new image, verify redis process is running as 'redis' user and all containers are up.

Signed-off-by: Mai Bui <maibui@microsoft.com>
2023-09-01 23:03:15 -07:00
..
base_image_files [Monit] Deprecate the feature of monitoring the critical processes by Monit (#7676) 2021-06-04 10:16:53 -07:00
critical_processes.j2 [chassis] Fixed critical process not correct for database-chassis docker (#13445) 2023-01-20 10:21:48 -08:00
database_config.json.j2 [PINS] Add APPL_STATE_DB and response path log (#9082) 2021-11-24 10:31:06 -08:00
database_global.json.j2 Multi DB with namespace support, Introducing the database_global.json… (#4477) 2020-05-08 21:24:05 -07:00
docker-database-init.sh [database] make Redis process runs as non-root user (#16326) 2023-09-01 23:03:15 -07:00
Dockerfile.j2 [chassis] Fixed critical process not correct for database-chassis docker (#13445) 2023-01-20 10:21:48 -08:00
flush_unused_database Migrate flush_unused_database from py-redis to sonic-swss-common (#15511) 2023-06-29 15:08:54 -07:00
supervisord.conf.j2 [database] make Redis process runs as non-root user (#16326) 2023-09-01 23:03:15 -07:00