diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 930dffe..0000000 --- a/Dockerfile +++ /dev/null @@ -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" ] diff --git a/Makefile b/Makefile deleted file mode 100644 index 5a7f272..0000000 --- a/Makefile +++ /dev/null @@ -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 diff --git a/docker-compose.yaml b/docker-compose.yaml deleted file mode 100644 index a61512f..0000000 --- a/docker-compose.yaml +++ /dev/null @@ -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" diff --git a/scripts/install.sh b/scripts/install.sh deleted file mode 100644 index 711c48c..0000000 --- a/scripts/install.sh +++ /dev/null @@ -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