forked from molobrakos/volvooncall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (43 loc) · 1.02 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
default: check
lint:
tox -e lint
test:
tox
check: lint test
clean:
rm -f *.pyc
rm -rf .tox
rm -rf *.egg-info
rm -rf __pycache__
rm -f pip-selfcheck.json
pypitestreg:
python setup.py register -r pypitest
pypitest:
python setup.py sdist upload -r pypitest
pypireg:
python setup.py register -r pypi
pypi:
python setup.py sdist
twine upload dist/*.tar.gz
release:
git diff-index --quiet HEAD -- && make check && bumpversion patch && git push --tags && make pypi
IMAGE=molobrakos/voc
docker-build:
docker build -t $(IMAGE) .
docker-run-mqtt:
docker run \
--name=voc \
--restart=always \
--detach \
--net=bridge \
-v $(HOME)/.config/voc.conf:/app/.config/voc.conf:ro \
-v $(HOME)/.config/mosquitto_pub:/app/.config/mosquitto_pub:ro \
$(IMAGE) -vv
docker-run-mqtt-term:
docker run \
-ti --rm \
--name=voc \
--net=bridge \
-v $(HOME)/.config/voc.conf:/app/.config/voc.conf:ro \
-v $(HOME)/.config/mosquitto_pub:/app/.config/mosquitto_pub:ro \
$(IMAGE) -vv