Skip to content

Commit

Permalink
chore(make): Add target to run MkDocs server and preview docs (aquase…
Browse files Browse the repository at this point in the history
…curity#281)

Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
  • Loading branch information
danielpacak authored Dec 16, 2020
1 parent 0e25615 commit 291ee52
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ STARBOARD_CLI_IMAGE := aquasec/starboard:$(IMAGE_TAG)
STARBOARD_OPERATOR_IMAGE := aquasec/starboard-operator:$(IMAGE_TAG)
STARBOARD_SCANNER_AQUA_IMAGE := aquasec/starboard-scanner-aqua:$(IMAGE_TAG)

MKDOCS_IMAGE := squidfunk/mkdocs-material:6.1.7
MKDOCS_PORT := 8000

.PHONY: all
all: build

Expand Down Expand Up @@ -115,3 +118,8 @@ docker-build-starboard-operator: build-starboard-operator
## Builds Docker image for Aqua scanner
docker-build-starboard-scanner-aqua: build-starboard-scanner-aqua
docker build --no-cache -t $(STARBOARD_SCANNER_AQUA_IMAGE) -f build/scanner-aqua/Dockerfile bin

.PHONY: mkdocs-serve
## Runs MkDocs development server to preview the documentation page
mkdocs-serve:
docker run --name mkdocs-serve --rm -v $(PWD):/docs -p $(MKDOCS_PORT):8000 $(MKDOCS_IMAGE)

0 comments on commit 291ee52

Please sign in to comment.