Sign inSign up

sp33c/middleman

By sp33c

•Updated about 6 years ago

ruby middleman container to easily create / run / deploy static dynamic sites

Image
0

365

sp33c/middleman repository overview

⁠introduction

What is it? https://middlemanapp.com/⁠

I recommend using the --rm switch to work ephemeral.

⁠create new project

mkdir myprj && cd myprj

docker run -it -v $(pwd):/app -p4567:4567 sp33c/middleman "middleman init"

Data is going to be stored in local directory on the host.

⁠run project

cd myprj

docker run -it -v $(pwd):/app -p4567:4567 sp33c/middleman "bundle install && middleman"

In case your old project doesn't fire up, you'll probably need different dependencies. See at the bottom.

⁠using bash

  1. docker run -it -v $(pwd):/app -p4567:4567 sp33c/middleman bash
  2. bundle install
  3. middleman

In case you'll need a different bundler version: gem install bundler:1.17.3

Alternatively create a file like 'run.sh':

gem install bundler:1.17.3
bundle install
middleman
  1. docker run -it -v $(pwd):/app -p4567:4567 sp33c/middleman bash
  2. ./run.sh

Tag summary

Content type

Image

Digest

Size

293.9 MB

Last updated

about 6 years ago

docker pull sp33c/middleman