forked from kaspernissen/docs.humio.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (25 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
RELEASE?=1.1.7
clean:
rm -rf public test data/releases.yml data/functions.json
run: deps
# CSS gets mashed if we don't use --disableFastRender
hugo server --disableFastRender
run-docker: deps
# Runs hugo server in a docker container, container is automatically destroyed when stopped
bash run-hugo-docker.sh
data:
mkdir data/
data/releases.yml: data
curl -fs https://repo.humio.com/repository/maven-releases/com/humio/server/$(RELEASE)/server-$(RELEASE).releases.yml > data/releases.yml
data/functions.json:
curl -fs https://repo.humio.com/repository/maven-releases/com/humio/docs/queryfunctions/$(RELEASE)/queryfunctions-$(RELEASE).json > data/functions.json
deps: data/releases.yml data/functions.json
public: deps
hugo
docker build --tag="humio/docs:latest" .
test: public
docker rm -f humio-docs || true
docker run -d --name=humio-docs humio/docs
mkdir -p test
docker run --rm --user 1 -v ${PWD}/test:/data --link=humio-docs:humio-docs praqma/linkchecker linkchecker --no-status -ocsv http://humio-docs/ > test/report.csv
docker rm -f humio-docs