https://github.com/kizzycode/jekyll-docker
A minimal docker container that provides support for an automated `git-over-ssh -> jekyll build -> thttpd serve`-workflow
https://github.com/kizzycode/jekyll-docker
Last synced: 3 months ago
JSON representation
A minimal docker container that provides support for an automated `git-over-ssh -> jekyll build -> thttpd serve`-workflow
- Host: GitHub
- URL: https://github.com/kizzycode/jekyll-docker
- Owner: KizzyCode
- Created: 2022-08-21T20:01:30.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-09-16T22:26:10.000Z (4 months ago)
- Last Synced: 2025-09-17T00:40:36.907Z (4 months ago)
- Language: Shell
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kizzycode/jekyll
`kizzycode/jekyll` is a minimal docker container that provides support for an automated
`git-over-ssh -> jekyll build -> nginx serve`-workflow.
## Internal workflow
On startup, the container creates a bare git repository in `/home/jekyll/git` (associated remote:
`ssh://jekyll@SERVER_ADDR/~/git`). Then it injects a `post-receive`-hook for this repo which gets invoked after a
successful `git push` operation – once the data has been pushed, the hook invokes `bundle exec jekyll build` to build
the site. If the site was built successfully, it is copied into the webroot where it gets served.
## Example
See [Docker-Compose.yml](Docker-Compose.yml) for example configuration.