Closed Krzysiaczek closed 2 years ago
Please try to solve this outside of Docker and a web application first by getting familiar with libfaketime's relevant settings in a simpler environment.
You're freezing the time with absolute timestamps, but probably want to use 'start at' dates or offsets/relative dates. Modifying the FAKETIME
setting at run-time should work fine. If it's complicated to change an already running process' environment variables, text files and file timestamps can be used for the same purpose. Eventually libfaketime's caching should be disabled.
Thanks for the advise. It looks like the 5 sec timeout delay was related to frozen/static clock, adding @
at the beginning of time definition has fixed the problem for me. FAKETIME="@2018-12-24 12:41:15"
works as expected.
Hi
I've installed faketime library using
apt-get install faketime
to test web application. It works but I've got two problems/etc/apache2/envvars
and effectively executedocker-compose down
anddocker-compose up
again as even simplerestart
command for web server/container is not effective.My config is added to the end of
/etc/apache2/envvars
Or via env variable
from .env file
through environment option in docker-compose.yml