Sign inSign up

linkarzu/jekyll

By linkarzu

•Updated over 3 years ago

Jekyll 4.3.2 with ruby 3.2, also includes git

Image
0

68

linkarzu/jekyll repository overview

⁠Image details

  • ubuntu based image based off of Ruby 3.2
  • Has GCC and Make installed
  • It also includes git
  • The working directory is configured as /myapp so make sure to reference that in your docker-compose file (see example below)
  • Jekyll version installed 4.3.2

⁠docker-compose file example

The Image will look for the Gemfile in the same directory as the docker-compose file to install dependencies

  • #####So make sure the Gemfile exists#####
version: '3.8'
services:
  jekyll:
    container_name: whatever-name
    # Use the built image
    image: linkarzu/jekyll:4.3.2
    restart: unless-stopped
    # `bundle install` will ensure that the dependencies specified
    # in the Gemfile are installed in the container when it is run.
    command: sh -c "bundle install --jobs 4 --retry 3 && jekyll serve --host 0.0.0.0 --watch --force_polling --verbose --livereload"
    ports:
      - 4005:4000
      - 35729:35729
    volumes:
      - .:/myapp
  • By default, Jekyll binds to localhost (127.0.0.1), that's why I specified --host 0.0.0.0 so that it Jekyll binds to all available network interfaces and is accessible not only from the container IP

After this you'll be able to access the container using the hosts LAN IP and port specified in the docker-compose file, in my specific example the IP of my host is 192.168.88.2, so the container is accessible at http://192.168.88.2:4005⁠

$ ip address | grep 192.168.88
    inet 192.168.88.2/24 brd 192.168.88.255 scope global dynamic eth0

Tag summary

Content type

Image

Digest

sha256:148784671…

Size

370.6 MB

Last updated

over 3 years ago

docker pull linkarzu/jekyll:4.3.2