-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
42 lines (30 loc) · 863 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
42
run:
docker-compose up
sh:
docker-compose exec naas /bin/bash
prod-build:
docker build . -t naas:latest
build:
docker-compose down
docker-compose build
run-bg:
docker-compose up -d
stop:
docker-compose stop
down:
docker-compose down
logs:
docker-compose logs -f
fmt:
docker-compose exec naas /bin/bash -c 'pip3 install black==22.6.0 && black /home/ftp/naas/naas'
lint:
docker-compose exec naas /bin/bash -c 'flake8 /home/ftp/naas/naas'
test:
docker-compose exec naas /bin/bash -c 'cd /home/ftp/naas/ && pytest tests'
dep-update:
echo "Updating 'naas' dependencies."
docker-compose exec naas pip install -e '/home/ftp/naas[dev]'
echo "Updating 'drivers' dependencies."
docker-compose exec naas pip install -e '/home/ftp/drivers'
extension-watch:
docker-compose exec naas /bin/bash -c 'cd /home/ftp/naas/extensions/naasai && jlpm watch'