Skip to content

wearearima/blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9d14a37 · Dec 18, 2024
May 28, 2020
Apr 15, 2021
Sep 2, 2022
May 18, 2020
Apr 13, 2021
Dec 18, 2024
Feb 11, 2021
Dec 18, 2024
Aug 30, 2022
Jun 2, 2018
May 6, 2020
Sep 27, 2021
May 5, 2020
Sep 23, 2022
May 18, 2020
May 18, 2020
Apr 11, 2021
Jan 29, 2019
Apr 14, 2021
May 24, 2021

Repository files navigation

Quickstart with docker

Start writing posts quickly with docker

git clone https://github.com/wearearima/wearearima.github.io.git
$ cd wearearima.github.io
$ docker run -p 4000:4000 --rm --volume="$PWD:/srv/jekyll" -it jekyll/jekyll jekyll server

To see content in _draft folder

$ git clone https://github.com/wearearima/wearearima.github.io.git
$ cd wearearima.github.io
$ docker run -p 4000:4000 --rm --volume="$PWD:/srv/jekyll" -it jekyll/jekyll jekyll server --draft

You can then access blog here: http://localhost:4000

Using cache

In case you want to speed up consecutive builds, you can use Docker volumes to store Jekyll's gems locally. This can be done in like this:

Create a docker volume:

docker volume create jekyll-ruby-gems

Each time we want to launch our Jekyll container, run it like this:

docker run --rm -p 4000:4000 --name jekyll --volume="$PWD:/srv/jekyll" --mount source=jekyll-ruby-gems,target=/usr/local/bundle -it jekyll/jekyll:3.8 jekyll serve