-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
58 lines (48 loc) · 1.33 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
SHELL:=/usr/bin/env bash
.PHONY: install
install:
sudo usermod -aG docker ${USER}
source ~/.bashrc
sudo systemctl start docker
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
@unzip -q awscliv2.zip
sudo ./aws/install --update
rm awscliv2.zip
rm -r ./aws
newgrp docker
.PHONY: docker_containers_poetry
docker_containers_poetry:
-python -m ensurepip --upgrade
python -m pip install poetry
docker info
-docker run -d -p 5672:5672 --name=rabbitmq rabbitmq
-docker run -d -p 8182:8182 --name=gremlin-server tinkerpop/gremlin-server:3.6.1
-docker run --rm -d --net=host --name=gremlin-visualizer prabushitha/gremlin-visualizer:latest
-docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest
python -m poetry install
python -m poetry shell
python -m poetry build
.PHONY: uninstall
uninstall:
python -m poetry shell
deactivate .
-docker stop rabbitmq
-docker stop redis-stack
-docker stop gremlin-server
-docker stop gremlin-visualizer
.PHONY: lint
lint:
python -m poetry run flake8 .
python -m poetry run doc8 -q docs
.PHONY: unit
unit:
python -m poetry run pytest
.PHONY: package
package:
python -m poetry check
python -m poetry run pip check
python -m poetry run safety check --full-report
.PHONY: test
test: lint package unit
.DEFAULT:
@cd docs && $(MAKE) $@