Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just built a Docker image for the theme #4108

Open
vaibhav-kaushal opened this issue Jan 22, 2023 · 1 comment
Open

Just built a Docker image for the theme #4108

vaibhav-kaushal opened this issue Jan 22, 2023 · 1 comment

Comments

@vaibhav-kaushal
Copy link

vaibhav-kaushal commented Jan 22, 2023

Motivation

I do not see any docker image for the theme built. Since I use the theme at multiple places and have inspired my friends to do so as well. But setting up the theme is not easy, at least not for non-Ruby developers. Non-technical users have no clue what I talk about when I talk about the theme anyway.

To make life easy for everyone (though primarily for me), I created the Docker image. I hope it helps everyone!

Suggestion

Please, please review the Docker image at Docker Hub. Link to docker repository: https://hub.docker.com/r/vaibhavkaushal/mmistakes

The corresponding GitHub repository containing the Dockerfile and Gemfile is here: https://github.com/techrail/mmistakes-docker

Suggestions are welcome, contributions are more than welcome. Many many thanks to @mmistakes for making this theme.

@asarkar
Copy link

asarkar commented Sep 14, 2024

I run the site locally using Docker Compose without the need for maintaining any custom image. Following is my docker-compose.yml.

services:
  blogs:
    image: "jvconseil/jekyll-docker:4"
    container_name: blogs
    working_dir: /srv/jekyll
    command: ["sh","-c", "bundle install && bundle update && bundle exec jekyll serve --host 0.0.0.0 --force_polling --incremental --drafts --trace -d public"]
    ports:
      - "4000:4000"
    volumes:
      - ../site:/srv/jekyll
    logging:
      driver: "json-file"
      options:
        max-size: "1m"
        max-file: "5"
    restart: always
    healthcheck:
      test: ["CMD", "nc", "-z", "localhost", "4000"]
      interval: 30s
      timeout: 5s
      retries: 3

Unfortunately, the official Jekyll Docker Hub images are no longer updated, so, I used a fork, which seems to work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants