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
- 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
- Configure GliderGun profile
- One environment: production
- AWS keys for deployment
- Digital Ocean keys for deployment
- Number of hosts to provision
- 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 Oceangun do deploy
⚡ gun do list
⚡ gun do destroy
Blog
- Ship nginx container with built site artifact
- Using static site builders, exporting the built site for consumption by nginx image
- Provide GoBasher deployment binary