Dockerizing a Jekyll Site
Having created my GitHub Pages hosted blog (powered by Jekyll) I need a better development environment. Committing and pushing changes to GitHub before I can see their effect is no good. So here are my notes on getting a Docker container with Jekyll up and running for local development.
Docker Hub Containers
There are a bunch of Jekyll containers on Docker Hub.
Now just visit the site at http://CLIENT_IP:4000
This isn’t perfect, for example when viewing the index page we don’t see excerpts from the posts (as we do on the live site) however, we see the whole post instead. But it is a good start.
Shared folders do not currently work as expected in Boot2Docker, as a workaround run the following script (stored in script/devMachine.sh). Note that this script will start the container and mount the shared folder.
- Searching for a Cure for Cancer with Docker and Azure
- Load Balancing for Docker Containers with HA Proxy
- Readme Files That Are Also Slide Decks
- Create a Simple Swarm Cluster on Azure with ARM
- Getting Started With Docker Swarm on Azure
- Simple Load Balancing for Docker Containers
- Adding Related Posts to Jekyll Blogs
- Install Docker and Docker Machine
- Adding an Edit Link to Github Pages in Jekyll
- Adding a Bing Search Box to a Website
- Mounting Volumes in Boot2Docker on Hyper-V
- Using Docker Machine to create a Docker Host on Azure
- Schedule Jekyll Posts for Publication
- Adding a CSS GitHub Ribbon to a Jekyll Site
- Experiments With Development Using Docker
- Adding a Twitter Button to a Jekyll Blog
- Adding Twitter Cards to a Jekyll Site
- Creating a Jekyll Blog