2024-09-22 17:17:12 +00:00
# docker-git-puller
2024-09-21 19:24:54 +00:00
2024-09-22 17:17:12 +00:00
A docker container that pulls a git repo (updates it) every given amount of time (default 60s) with a shell script.
2024-09-21 19:24:54 +00:00
## Purpose
2024-09-21 19:30:22 +00:00
There are many scenarios where such a container could help. For example (as I use it), this image could be used to pull a hugo built website (living in a public git repo) to a local folder, so that another docker container can serve the most recent files.
2024-09-21 19:24:54 +00:00
2024-09-21 21:37:56 +00:00
## Useful links
Similar projects:
- [https://github.com/abes-esr/gitpuller-docker/ ](https://github.com/abes-esr/gitpuller-docker/ )
- [https://github.com/Ekito/docker-cron/ ](https://github.com/Ekito/docker-cron/ )
- [https://github.com/keckelt/cron-alpine/ ](https://github.com/keckelt/cron-alpine/ )
- [https://github.com/theohbrothers/docker-alpine-cron/ ](https://github.com/theohbrothers/docker-alpine-cron/ )
Forum posts:
- [https://serverfault.com/questions/599103/make-a-docker-application-write-to-stdout ](https://serverfault.com/questions/599103/make-a-docker-application-write-to-stdout )
- [https://stackoverflow.com/questions/71557316/docker-alpine-execute-command-as-another-user ](https://stackoverflow.com/questions/71557316/docker-alpine-execute-command-as-another-user )
2024-09-21 19:24:54 +00:00
## License
see [LICENSE.md ](LICENSE.md )