Public Repository

Last pushed: 10 months ago
Short Description
view on github for more info
Full Description

Deploying a Blog with Jekyll, Gearship, Github, Docker Cloud/Hub, and DigitalOcean

Let's walk through how to do a deployment of a jekyll blog.

First make sure you have jekyll and gearship installed globally.

gem install jekyll
gem install gearship

Create a new app

Create a jekyll blog and go to the folder

jekyll new gearship-example-blog
cd gearship-example-blog

Create a new Dockerfile in the project root with the system we want docker to configure for our project.

See Dockerfile for code.

Create a file


set -e

bundle exec jekyll serve --drafts --incremental --host

Create a Github repository for the project

  • Go to github/new and create a new repo.
  • Copy the remote repository url from the next page.

Use a GUI like GitKraken or the terminal to create the new repo:

$ git init
$ git add
$ git commit -m "First commit"
$ git remote add origin [paste the copied url]
$ git push origin master

Create a Docker Cloud automated build repository

  • Go to Docker Cloud and create a new repository
  • Name the repository the same name as on Github
  • Link the Github repo in Build Settings

Create a droplet on DigitalOcean

Take note of the IP.

Initialize Gearship

gearship init

Setup Gearship

Edit gearship.yml

Push to Github to trigger build

git push origin master

Deploy To Server

Once docker Docker Cloud reports that the build was successful you can deploy to your
droplet using

gearship deploy 
Docker Pull Command