Skip to content

Instantly share code, notes, and snippets.

@mcejp
Created May 22, 2023 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcejp/e100d53583f494950ef791db427e2cf5 to your computer and use it in GitHub Desktop.
Save mcejp/e100d53583f494950ef791db427e2cf5 to your computer and use it in GitHub Desktop.
Jekyll in Podman
#!/bin/sh
set -ex
podman start -ia jekyll || podman run -it \
--name jekyll \
--volume=$PWD:/srv/jekyll \
--env JEKYLL_ENV=production \
--env JEKYLL_ROOTLESS=1 \
-p 4000:4000 \
docker.io/jekyll/jekyll:4.1.0 \
sh /srv/jekyll/serve2.sh
#!/bin/sh
set -ex
bundle install
bundle exec jekyll serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment