World-Wide-JUGs / GlobalWWJugs

World Wide JUGs - List of Java User Groups around the world
https://world-wide-jugs.github.io/GlobalWWJugs/
GNU General Public License v3.0
17 stars 48 forks source link

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

Closed nickebbitt closed 3 years ago

nickebbitt commented 3 years ago

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 commented 3 years ago

+1 on this proposal.

icougil commented 3 years ago

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