From 12e572e807f5746c8e9258fcc6a8a869166eb279 Mon Sep 17 00:00:00 2001 From: Rickard von Essen Date: Wed, 28 Dec 2016 22:04:10 +0100 Subject: [PATCH] Added docker-dev target to run website in docker container --- website/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/Makefile b/website/Makefile index b703f68fb..d946f1fc3 100644 --- a/website/Makefile +++ b/website/Makefile @@ -3,6 +3,11 @@ all: build init: bundle +docker-dev: + docker run -it --expose 4567 -P -v "$PWD":/usr/src/app -w /usr/src/app ruby:2.3.1 \ + bash -c "apt-get update && apt-get -qy install curl git libgmp3-dev nodejs && \ + gem install bundler && make dev" + dev: init PACKER_DISABLE_DOWNLOAD_FETCH=true PACKER_VERSION=1.0 bundle exec middleman server