Skip to content

A docker image that lets you write a faketime timestamp to a file via HTTP request. Useful with a shared volume and other docker containers using faketime library.

License

Notifications You must be signed in to change notification settings

Keydonix/faketime-http

Repository files navigation

Build

docker image build --tag "keydonix/faketime-http" .

Use

docker container run --rm -it -p "12340:80" --name "faketime-http" keydonix/faketime-http
curl http://localhost:12340/<seconds_since_unix_epoch>

Test

docker image build --file "test.Dockerfile" --tag "faketime-test" .
curl http://localhost:12340/0
docker container run --rm -it --volumes-from "faketime-http" faketime-test date
curl http://localhost:12340/1587000000
docker container run --rm -it --volumes-from "faketime-http" faketime-test date

About

A docker image that lets you write a faketime timestamp to a file via HTTP request. Useful with a shared volume and other docker containers using faketime library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published