diff --git a/GNUmakefile b/GNUmakefile index 27471ea68..117fcf925 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -63,12 +63,6 @@ vet: echo "[LINT] Found "log"".Printf" calls. These should use Nomad's logger instead."; \ fi -web: - ./scripts/website_run.sh - -web-push: - ./scripts/website_push.sh - # bootstrap the build by downloading additional tools bootstrap: @for tool in $(EXTERNAL_TOOLS) ; do \ @@ -82,4 +76,4 @@ install: bin/nomad travis: @sh -c "'$(PWD)/scripts/travis.sh'" -.PHONY: all bin cov integ test vet web web-push test-nodep +.PHONY: all bin cov integ test vet test-nodep diff --git a/website/Gemfile b/website/Gemfile index f4f3ed705..360489e56 100644 --- a/website/Gemfile +++ b/website/Gemfile @@ -1,3 +1,3 @@ source "https://rubygems.org" -gem "middleman-hashicorp" +gem "middleman-hashicorp", "0.3.3" diff --git a/website/Gemfile.lock b/website/Gemfile.lock index f1217ba58..2a223a05d 100644 --- a/website/Gemfile.lock +++ b/website/Gemfile.lock @@ -7,7 +7,7 @@ GEM minitest (~> 5.1) thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) - autoprefixer-rails (6.5.0.2) + autoprefixer-rails (6.5.1) execjs bootstrap-sass (3.3.7) autoprefixer-rails (>= 5.2.1) @@ -78,7 +78,7 @@ GEM rack (>= 1.4.5, < 2.0) thor (>= 0.15.2, < 2.0) tilt (~> 1.4.1, < 2.0) - middleman-hashicorp (0.3.0) + middleman-hashicorp (0.3.3) bootstrap-sass (~> 3.3) builder (~> 3.2) middleman (~> 3.4) @@ -148,7 +148,7 @@ PLATFORMS ruby DEPENDENCIES - middleman-hashicorp + middleman-hashicorp (= 0.3.3) BUNDLED WITH - 1.13.1 + 1.13.5 diff --git a/website/Makefile b/website/Makefile index e1c782e07..be5c1d1ce 100644 --- a/website/Makefile +++ b/website/Makefile @@ -1,10 +1,14 @@ -all: build +VERSION?="0.3.3" -init: - bundle +website: + @echo "==> Starting website in Docker..." + @docker run \ + --interactive \ + --rm \ + --tty \ + --publish "4567:4567" \ + --publish "35729:35729" \ + --volume "$(shell pwd):/website" \ + hashicorp/middleman-hashicorp:${VERSION} -dev: init - bundle exec middleman server - -build: init - bundle exec middleman build +.PHONY :website diff --git a/website/README.md b/website/README.md index 8722fb9ca..0a0ca2fb3 100644 --- a/website/README.md +++ b/website/README.md @@ -12,7 +12,19 @@ requests like any normal GitHub project, and we'll merge it in. ## Running the Site Locally -Running the site locally is simple. Clone this repo and run `make dev`. +To run the site locally, clone this repository and run: -Then open up `http://localhost:4567`. Note that some URLs you may need to append -".html" to make them work (in the navigation). +```shell +$ make website +``` + +You must have Docker installed for this to work. + +Alternatively, you can manually run the website like this: + +```shell +$ bundle +$ bundle exec middleman server +``` + +Then open up `http://localhost:4567`. diff --git a/website/Vagrantfile b/website/Vagrantfile deleted file mode 100644 index 6cc7bdf6b..000000000 --- a/website/Vagrantfile +++ /dev/null @@ -1,41 +0,0 @@ -# -*- mode: ruby -*- -# vi: set ft=ruby : - -# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! -VAGRANTFILE_API_VERSION = "2" - -$script = <