forked from dnknth/ldap-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (30 loc) · 899 Bytes
/
Makefile
File metadata and controls
43 lines (30 loc) · 899 Bytes
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
42
43
.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 --access-logfile - 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 dist __pycache__
tidy: clean
rm -rf .venv3 node_modules
image: clean
docker build -t dnknth/ldap-ui .
push: image
docker push dnknth/ldap-ui