Skip to content

Commit

Permalink
backport of commit 88e93ce
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Kalow committed Apr 5, 2022
1 parent 8663961 commit 4c2b473
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,24 @@ DOCKER_RUN_FLAGS=-it \
--volume "$(PWD)/.env:/app/.env" \
-e "REPO=vault"

# Default: run this if working on the website locally to run in watch mode.
.PHONY: website
website:
@echo "==> Downloading latest Docker image..."
@docker pull $(DOCKER_IMAGE)
@echo "==> Starting website..."
@docker run $(DOCKER_RUN_FLAGS) $(DOCKER_IMAGE)

# Use this if you have run `website/build-local` to use the locally built image.
.PHONY: website/local
website/local:
@echo "==> Starting website from local image..."
@docker run $(DOCKER_RUN_FLAGS) $(DOCKER_IMAGE_LOCAL)

# Run this to generate a new local Docker image.
.PHONY: website/build-local
website/build-local:
@echo "==> Building local Docker image"
@docker build https://github.com/hashicorp/dev-portal.git\#main \
-t $(DOCKER_IMAGE_LOCAL)

0 comments on commit 4c2b473

Please sign in to comment.