mirror of
https://github.com/NotAShelf/air-quality-monitor.git
synced 2024-11-22 21:31:11 +00:00
remove installation scripts
thanks no thanks
This commit is contained in:
parent
69eeadfa05
commit
88e4c96943
4 changed files with 0 additions and 62 deletions
|
@ -1,7 +0,0 @@
|
||||||
FROM python:3.8
|
|
||||||
WORKDIR /code
|
|
||||||
COPY src/requirements.txt .
|
|
||||||
RUN pip install -r requirements.txt
|
|
||||||
COPY src .
|
|
||||||
ENTRYPOINT [ "python" ]
|
|
||||||
CMD [ "app.py" ]
|
|
22
Makefile
22
Makefile
|
@ -1,22 +0,0 @@
|
||||||
PI_IP_ADDRESS=10.0.0.172
|
|
||||||
PI_USERNAME=pi
|
|
||||||
|
|
||||||
.PHONY: run
|
|
||||||
run:
|
|
||||||
@docker-compose up
|
|
||||||
|
|
||||||
.PHONY: install
|
|
||||||
install:
|
|
||||||
@cd scripts && bash install.sh
|
|
||||||
|
|
||||||
.PHONY: copy
|
|
||||||
copy:
|
|
||||||
@rsync -a $(shell pwd) --exclude env $(PI_USERNAME)@$(PI_IP_ADDRESS):/home/$(PI_USERNAME)
|
|
||||||
|
|
||||||
.PHONY: shell
|
|
||||||
shell:
|
|
||||||
@ssh $(PI_USERNAME)@$(PI_IP_ADDRESS)
|
|
||||||
|
|
||||||
.PHONY: build
|
|
||||||
build:
|
|
||||||
@docker-compose build
|
|
|
@ -1,20 +0,0 @@
|
||||||
version: "3.4"
|
|
||||||
services:
|
|
||||||
redis:
|
|
||||||
image: redis
|
|
||||||
volumes:
|
|
||||||
- ./data/redis:/data
|
|
||||||
web:
|
|
||||||
build: .
|
|
||||||
image: pi-air-quality-monitor
|
|
||||||
devices:
|
|
||||||
- "/dev/ttyUSB0:/dev/ttyUSB0"
|
|
||||||
environment:
|
|
||||||
- REDIS_HOST=redis
|
|
||||||
- PORT=8000
|
|
||||||
volumes:
|
|
||||||
- ./src:/code
|
|
||||||
depends_on:
|
|
||||||
- "redis"
|
|
||||||
ports:
|
|
||||||
- "8000:8000"
|
|
|
@ -1,13 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# install.sh
|
|
||||||
|
|
||||||
cd ../
|
|
||||||
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y python3 python3-pip python3-dev libffi-dev libssl-dev
|
|
||||||
|
|
||||||
curl -sSL https://get.docker.com | sh
|
|
||||||
sudo usermod -aG docker ${USER}
|
|
||||||
sudo pip3 install docker-compose
|
|
||||||
sudo systemctl enable docker
|
|
||||||
newgrp docker
|
|
Loading…
Reference in a new issue