mdiebolt / docker-middleman

Static sites with Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Middleman

Build self contained static sites for simple high-availability deployment to major hosting providers.

Configure GliderGun

  • curl https://dl.gliderlabs.com/glidergun/latest/$(uname -sm|tr \ _).tgz \ | tar -zxC /usr/local/bin

  • gun init # creates a .gun directory

  • Edit .gun_do with your Digital Ocean access key

Steps

  1. Build site and webserver
  • Build Middleman container that will build the static site
  • Generate static site artifact
  • Build nginx container that will copy static site artifact
  1. Configure GliderGun profile
  • One environment: production
  • AWS keys for deployment
  • Digital Ocean keys for deployment
  • Number of hosts to provision
  1. Use GliderGun to provision hosts on configured hosting providers
  • gun build # Build middleman container, export artifact, build nginx container
  • gun do provision # provisions hosts on Digital Ocean
  • gun do deploy
  • gun do list
  • gun do destroy

Blog

  1. Ship nginx container with built site artifact
  2. Using static site builders, exporting the built site for consumption by nginx image
  3. Provide GoBasher deployment binary

About

Static sites with Docker

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:CSS 45.1%Language:Ruby 24.4%Language:Shell 21.4%Language:HTML 5.3%Language:Nginx 3.7%Language:JavaScript 0.1%