Add libfaketime support to working with docker_entrypoint.sh
Add support for overriding system time using libfaketime in the environment variable OVERRIDE_LD_PRELOAD
.
- The changes in docker_entrypoint.sh script:
- overwrite
LD_PRELOAD
as variableOVERRIDE_LD_PRELOAD
while starting hived as--user=hived
- The changes made to the Dockerfile include:
- Adding the OVERRIDE_LD_PRELOAD environment variable to allow overriding system time using libfaketime.
- Modifying the sudo command in the docker_entrypoint.sh script to pass the OVERRIDE_LD_PRELOAD environment variable to the bash shell.
These changes ensure that the container will use the overridden system time.
Edited by Michał Kudela