Skip to content

Monitor files pattern by sha sum and execute action if anything changed

License

Notifications You must be signed in to change notification settings

lifeci/reloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reloader

Monitor files pattern by sha sum and execute action if anything changed.

Use case

  • Sidecar pattern as second container at pod that monitor file changes on shared volumes [1] and send reload action/signal to (main/first) service container.

Size

docker image size ~1MB with minimal set of tools, based on busybox:1

ENV Variables

ENV Name Required Example
FILES_PATTERN YES "/etc/*.conf" OR "./path/to/settings/*.conf"
ACTION YES "wget -q -c -S http://localhost/reload" OR "/path/to/executable --reload"
CHECK_INTERVAL NO 5 (Default value is 1s)

Links

[1] Communicate Between Containers in the Same Pod Using a Shared Volume