forked from RedHatInsights/insights-host-inventory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (26 loc) · 958 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
.PHONY: init test run_inv_mq_service
init:
pipenv shell
test:
pytest --cov=.
upgrade_db:
SQLALCHEMY_ENGINE_LOG_LEVEL=INFO python manage.py db upgrade
run_inv_web_service:
# Set the "KAFKA_TOPIC", "KAFKA_GROUP", "KAFKA_BOOTSTRAP_SERVERS" environment variables
# if you want the system_profile message queue consumer and event producer to be started
#
# KAFKA_TOPIC="platform.system-profile" KAFKA_GROUP="inventory" KAFKA_BOOTSTRAP_SERVERS="localhost:29092"
#
INVENTORY_LOG_LEVEL=DEBUG gunicorn -b :8080 run
run_inv_mq_service:
KAFKA_HOST_EGRESS_TOPIC=platform.inventory.events PAYLOAD_TRACKER_SERVICE_NAME=inventory-mq-service INVENTORY_LOG_LEVEL=DEBUG python inv_mq_service.py
run_inv_mq_service_test_producer:
python utils/kafka_producer.py
run_inv_mq_service_test_consumer:
python utils/kafka_consumer.py
run_inv_http_test_producer:
python utils/rest_producer.py
run_reaper:
python host_reaper.py
style:
pre-commit run --all-files