All Projects → BretFisher → Jekyll Serve

BretFisher / Jekyll Serve

Licence: mit
Jekyll in a Docker Container For Easy SSG Development

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Jekyll Serve

Fusionauth Containers
Container definitions for docker, kubernetes, helm, and whatever containers come next!
Stars: ✭ 101 (-38.41%)
Mutual labels:  docker-image, docker-compose
Jekyll
🌐 Jekyll is a blog-aware static site generator in Ruby
Stars: ✭ 43,803 (+26609.15%)
Mutual labels:  jekyll, static-site-generator
Docker Laravel
🐳 Docker Images for Laravel development
Stars: ✭ 101 (-38.41%)
Mutual labels:  docker-image, docker-compose
Docker Superset
Repository for Docker Image of Apache-Superset. [Docker Image: https://hub.docker.com/r/abhioncbr/docker-superset]
Stars: ✭ 86 (-47.56%)
Mutual labels:  docker-image, docker-compose
Container
HedgeDoc container image resources
Stars: ✭ 149 (-9.15%)
Mutual labels:  docker-image, docker-compose
Docker Compose Lamp
A basic LAMP stack environment built using Docker Compose.
Stars: ✭ 1,284 (+682.93%)
Mutual labels:  docker-image, docker-compose
Dockernotes
Docker入门精华版
Stars: ✭ 107 (-34.76%)
Mutual labels:  docker-image, docker-compose
Bareos
Docker image for Bareos
Stars: ✭ 74 (-54.88%)
Mutual labels:  docker-image, docker-compose
Laravel Docker K8s
Running Laravel project using Docker and Deploying using Kubernetes
Stars: ✭ 127 (-22.56%)
Mutual labels:  docker-image, docker-compose
Docker Workshop
Introduction to Docker tutorial
Stars: ✭ 124 (-24.39%)
Mutual labels:  docker-image, docker-compose
Heckle
✒️ Jekyll in Haskell (feat. LaTeX)
Stars: ✭ 80 (-51.22%)
Mutual labels:  jekyll, static-site-generator
Larakube
Laravel app deployment for auto scaled Kubernetes cluster
Stars: ✭ 157 (-4.27%)
Mutual labels:  docker-image, docker-compose
Glim
Static site generator which is semi-compatible with Jekyll
Stars: ✭ 76 (-53.66%)
Mutual labels:  jekyll, static-site-generator
Docker Multistreamer
Dockerized multistreamer
Stars: ✭ 90 (-45.12%)
Mutual labels:  docker-image, docker-compose
Cabot Docker
Docker Images to build full cabot environment
Stars: ✭ 75 (-54.27%)
Mutual labels:  docker-image, docker-compose
Startjekyll
An example and guide to getting started with Jekyll and static site generators.
Stars: ✭ 106 (-35.37%)
Mutual labels:  jekyll, static-site-generator
Directus Docker
Directus 6 Docker — Legacy Container [EOL]
Stars: ✭ 68 (-58.54%)
Mutual labels:  docker-image, docker-compose
Dockerfiles
lots of dockerfiles, based on alpine
Stars: ✭ 69 (-57.93%)
Mutual labels:  docker-image, docker-compose
Docker
最新lnmp环境,包含php, java,nginx, mysql, go, node, mongodb, openssh server, redis, crond xhprof,maven等服务
Stars: ✭ 120 (-26.83%)
Mutual labels:  docker-image, docker-compose
Docker Phoenix
A dockerized Phoenix development and runtime environment.
Stars: ✭ 152 (-7.32%)
Mutual labels:  docker-image, docker-compose

Jekyll in a Docker Container

But this has been done. Why not docker run jekyll/jekyll?

  • I wanted two images, one for easy CLI (bretfisher/jekyll) and one for easy local server for dev with sane defaults (bretfisher/jekyll-serve), which I use 90% of time
  • So you can start any Jekyll server with docker-compose up
  • I wanted to dev on a local jekyll site w/o having jekyll installed on my host OS
  • I wanted it to be as easy as possible to start
  • I wanted current alpine, ruby, and jekyll

So, this does that.

Note I have courses on Docker (including a Lecture on Jekyll in Docker).

Docker Images

Image Purpose Example
bretfisher/jekyll Runs Jekyll by default with no options, good for general CLI commands docker run -v $(pwd):/site bretfisher/jekyll new .
bretfisher/jekyll-serve Runs Jekyll serve with sane defaults, good for local Jekyll site dev docker run -p 8080:4000 -v $(pwd):/site bretfisher/jekyll-serve

Getting Started

Creating a site:

cd to empty directory
docker run -v $(pwd):/site bretfisher/jekyll new .

Start a local server with sane defaults listening on port 8080:

cd dir/of/your/jekyll/site
docker run -p 8080:4000 -v $(pwd):/site bretfisher/jekyll-serve

That's it!

Details: it will mount your current path into the containers /site, bundle install before running jekyll serve to , serve it at http://<docker-host>:8080.

To make this even easier, copy docker-compose.yml from this repo to your jekyll site root. Then you'll only need to:

cd dir/of/your/jekyll/site
docker-compose up

Q&A

Q. What if I want to run other jekyll commands?

just add the jekyll options to the end of the bretfisher/jekyll:

docker run -v $(pwd):/site bretfisher/jekyll doctor

License

MIT License

Copyright (c) [Bret Fisher [email protected]]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].