remove installation scripts

thanks no thanks
This commit is contained in:
raf 2023-11-28 20:45:49 +03:00
parent 69eeadfa05
commit 88e4c96943
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
4 changed files with 0 additions and 62 deletions

View file

@ -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" ]

View file

@ -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

View file

@ -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"

View file

@ -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