-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathMakefile
41 lines (29 loc) · 868 Bytes
/
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
34
35
36
37
38
39
40
41
.PHONY: debug run clean tidy docker
export COMPOSE_FILE=docker-demo/docker-compose.yml
debug: app.py .env .venv3 dist
QUART_APP=$< QUART_ENV=development \
.venv3/bin/python3 .venv3/bin/quart run
run: app.py .venv3 dist
.venv3/bin/hypercorn -b 0.0.0.0:5000 app:app
.env: docker-demo/env.demo
cp $< $@
.venv3: requirements.txt
[ -d $@ ] || python3 -m venv --system-site-packages $@
.venv3/bin/pip3 install -U pip wheel
.venv3/bin/pip3 install -r $<
touch $@
dist: package.json
npm install
npm run build
ldap: docker-demo/data/flintstones-data.ldif
docker-compose up -d ldap
docker-demo/data/flintstones-data.ldif: docker-demo/flintstones.ldif
mkdir -p docker-demo/data
cp $< $@
clean:
rm -rf docker-demo/data __pycache__
tidy: clean
rm -rf .venv3 dist node_modules
docker: clean
docker build -t dnknth/ldap-ui .
docker push dnknth/ldap-ui