e4e3fd4299
* website: Update middleman-hashicorp container and Gemfile.lock Time marches on, and so do security vulnerabilities in Nokogiri. So it's time for a new container. As with last time, here's a reminder for the next person who needs to update this: - You shouldn't just update the dependency in Gemfile.lock, because your build times will go to heck as you compile Nokogiri from source on every run. So you need an updated container with all the dependencies. - To update the container, you need to push a new tag to the middleman-hashicorp repo. Teamcity does the rest, and will ship a new container to Docker Hub (unless its credentials are out of date, in which case go ask team-eng-serv.) - Once that's pushed: - Update Makefile - Update the Gemfile - Delete Gemfile.lock - `make website` until it comes up, then ctrl-C - Commit the changes * website: Specify a different json version in Gemfile.lock The Consul website uses different containers for preview and deploy, and this oddball JSON version was causing issues. This commit sacrifices a little bit of preview startup speed for (hopefully) working deploys.
34 lines
1 KiB
Makefile
34 lines
1 KiB
Makefile
VERSION?="0.3.41"
|
|
|
|
# The volume mounting steps are a way to exclude all the consul docs from being built
|
|
# in the Consul site build process while still including the index.html page that points
|
|
# users to learn.hashicorp.com. See PR#5847.
|
|
|
|
build:
|
|
@echo "==> Starting build in Docker..."
|
|
@docker run \
|
|
--interactive \
|
|
--rm \
|
|
--tty \
|
|
--volume "$(shell pwd):/website" \
|
|
--volume "/website/source/docs/guides" \
|
|
--volume "$(shell pwd)/source/docs/guides/index.html.md:/website/source/docs/guides/index.html.md" \
|
|
-e "ENV=production" \
|
|
hashicorp/middleman-hashicorp:${VERSION} \
|
|
bundle exec middleman build --verbose --clean
|
|
|
|
website:
|
|
@echo "==> Starting website in Docker..."
|
|
@docker run \
|
|
--interactive \
|
|
--rm \
|
|
--tty \
|
|
--publish "4567:4567" \
|
|
--publish "35729:35729" \
|
|
--volume "$(shell pwd):/website" \
|
|
--volume "/website/source/docs/guides" \
|
|
--volume "$(shell pwd)/source/docs/guides/index.html.md:/website/source/docs/guides/index.html.md" \
|
|
hashicorp/middleman-hashicorp:${VERSION}
|
|
|
|
.PHONY: build website
|