blob: a7f7cc150bc15de4000fbc1b35605cacd1204361 (
plain)
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
34
35
36
37
|
.PHONY: all clean docker-build run
all: build
build:
kodev build
clean:
kodev clean
rm -rf lib
rm -f assets/static/js/*
docker-build:
DOCKER_BUILDKIT=1 docker build -t clog .
docker-clean:
docker rm -f clog
docker rm -f clog-postgres
docker rmi -f clog:latest
docker-run:
docker rm -f clog
docker run --name clog -p 8888:8888 -d clog:latest
fetch-dependencies: clean
mkdir -p lib
# md4c
curl -L https://github.com/mity/md4c/archive/refs/tags/release-0.4.8.tar.gz -o lib/md4c-0.4.8.tar.gz
tar xf lib/md4c-0.4.8.tar.gz -C lib
mv lib/md4c-release-0.4.8 lib/md4c
# mermaidjs
curl -L https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js -o lib/mermaid.min.js
mkdir -p assets/static/js
cp lib/mermaid.min.js assets/static/js
run:
kodev run
|