Building with Jekyll and Podman

Posted by Andrew Denner on December 27, 2021 · 1 min read

As part of my blog/site refresh I have moved to jekyll. For more details, see the presentation I gave to the Central Iowa Linux User’s group (CIALUG) slides video

Once one has a jekyll blog, building and releasing content is important. The good news is you don’t need any of the prereqs actually installed on your local machine. Via the wonders of containerization, you can always be up to date. For todays project we will be using podman, a replacement to the venrable docker.

To start we use the command (where pwd is the current working directory, where our blog is at):

podman run --rm -it -v $PWD:/web  --security-opt label=disable --network=host jekyll/jekyll bash

From there if we want to view a local version of the site cd to /web and then run the following commands:

 bundle install 
 bundle exec jekyll serve

or if you just want to build the site

 bundle install 
 jekyll build