Skip to content

Commit

Permalink
updated scripts for python start of services
Browse files Browse the repository at this point in the history
  • Loading branch information
wassfila committed Aug 29, 2021
1 parent f0d804c commit 7bf7aa9
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 4 deletions.
3 changes: 1 addition & 2 deletions docker-compose-thread.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
- ${PWD}/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
restart: unless-stopped
influx:
image: influxdb
image: influxdb:1.8
ports:
- "8086:8086"
volumes:
Expand All @@ -21,7 +21,6 @@ services:
image: grafana/grafana
ports:
- "3000:3000"
network_mode: "host"
volumes:
- ${PWD}/grafana/data:/var/lib/grafana
- ${PWD}/grafana/grafana.ini:/etc/grafana/grafana.ini:ro
Expand Down
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions py/influx/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pip3 install -r requirements.txt
rm config.json
mv config-local.json config.json
sudo cp influx_mqtt.service /lib/systemd/system/
sudo chmod 644 /lib/systemd/system/influx_mqtt.service
sudo chmod +x influx_client.py
sudo systemctl daemon-reload
sudo systemctl enable influx_mqtt.service
sudo systemctl start influx_mqtt.service
9 changes: 9 additions & 0 deletions py/thread_tags/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pip3 install -r requirements.txt
rm config.json
mv config-local.json config.json
sudo cp thread_tags.service /lib/systemd/system/
sudo chmod 644 /lib/systemd/system/thread_tags.service
sudo chmod +x thread_tags.py
sudo systemctl daemon-reload
sudo systemctl enable thread_tags.service
sudo systemctl start thread_tags.service
2 changes: 0 additions & 2 deletions run_venv.sh

This file was deleted.

3 changes: 3 additions & 0 deletions start_services.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docker-compose -f docker-compose-thread.yml -d up
./py/influx/install.sh
./py/thread_tags/install.sh

0 comments on commit 7bf7aa9

Please sign in to comment.