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

Provide a Docker option to run the site locally on you machine #13

Closed
nickebbitt opened this issue Mar 1, 2021 · 2 comments · Fixed by #16
Closed

Provide a Docker option to run the site locally on you machine #13

nickebbitt opened this issue Mar 1, 2021 · 2 comments · Fixed by #16

Comments

@nickebbitt
Copy link
Contributor

I prefer not to install/manage Ruby versions and their dependencies on my Mac and keep them safely contained in a Docker container.

If you have Docker installed on you machines then with a simple docker-compose.yaml file in the project

version: '3'

services:
  jekyll:
    image: bretfisher/jekyll-serve
    volumes:
      - .:/site
    ports:
      - '4000:4000'

You can spin up the site locally with

docker-compose up

Without needing to install Ruby and manage it.

Note: there are various Docker images that help you do this, I picked bretfisher/jekyll-serve at random from a quick Google search but if open to this I can review and choose a good candidate image to provide this feature.

@cesarhernandezgt
Copy link
Collaborator

+1 on this proposal.

@icougil
Copy link
Collaborator

icougil commented Mar 1, 2021

Great idea Nick! 😃
Definitely, it is a great improvement to have. Thank you for your PR! 👍
Already merged!

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

Successfully merging a pull request may close this issue.

3 participants