A quick & dirty jekyll container based on armbuild/debian.
- an ARM machine
- SSL cert + key
- a parsed Jekyll site (but anything that can be served by nginx will do, really)
Yesterday I finally put up some content on vanduuren.xyz using Jekyll to generate the site. I made some typos, forgot some words, so I had to manually redeploy a few times. This image fixes that problem for me. The image contains a simple nginx instance serving the Jekyll site over SSL and a script that pulls the latest build every five minutes.
To run:
docker run -d \
-e GIT_URL=https://github.com/boyvanduuren/vanduuren.xyz.git \
-e GIT_BRANCH=live \
-e DOMAIN=vanduuren.xyz \
-v /etc/ssl/private/:/etc/ssl/private/ \
-p 80:80 \
-p 443:443 \
boyvanduuren/docker-jekyllGIT_URLis the URL of the repository containing your (built!) Jekyll siteGIT_BRANCHis the branch that contains the "live" version of the siteDOMAINis the domain at which this site is served. A redirect fromwww.${DOMAIN} -> ${DOMAIN}is configured
Furthermore, the shared volume needs to contain a SSL certificate and key named ${DOMAIN}.{key,crt}.
When this is running, all you need to do to update the site in the container is update your Jekyll site, run jekyll build, and push your changes to the configured GIT_BRANCH branch.
Of course I need to setup a decent delivery pipeline when I have some more time, but this works for now.