forked from molobrakos/tellsticknet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (48 loc) · 1.11 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
58
59
60
61
IMAGE=molobrakos/tellsticknet
default: check
format: white
white: black
black:
white setup.py tellsticknet
lint:
tox -e lint
test:
tox
check: lint test
clean:
rm -rf *.egg-info
rm -rf .tox
rm -rf .pytest_cache
rm -rf dist
rm -rf .cache
rm -f *~
rm -f .*~
pypi:
rm -f dist/*.tar.gz
python3 setup.py sdist
twine upload dist/*.tar.gz
release:
git diff-index --quiet HEAD -- && make check && bumpversion patch && git push --tags && git push && make pypi
docker-build:
docker build -t $(IMAGE) .
docker-run-mqtt:
docker run \
--name=tellsticknet \
--restart=always \
--detach \
--net=bridge \
-p 30303:30303/udp \
-p 42314:42314/udp \
-v $(HOME)/.config/mosquitto_pub:/app/.config/mosquitto_pub:ro \
-v $(HOME)/.config/tellsticknet.conf:/app/tellsticknet.conf:ro \
$(IMAGE) -vv
docker-run-mqtt-term:
docker run \
-ti --rm \
--name=tellsticknet \
--net=bridge \
-p 30303:30303/udp \
-p 42314:42314/udp \
-v $(HOME)/.config/mosquitto_pub:/app/.config/mosquitto_pub:ro \
-v $(HOME)/.config/tellsticknet.conf:/app/tellsticknet.conf:ro \
$(IMAGE) -vv