Fuck docker
This commit is contained in:
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"idf.openOcdConfigs": [
|
|
||||||
"board/esp32s3-builtin.cfg"
|
|
||||||
],
|
|
||||||
"idf.portWin": "COM3"
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
docker run --name=otbr --detach --network=host --cap-add=NET_ADMIN --device=/dev/ttyACM0 --device=/dev/net/tun --volume=/var/lib/otbr:/data --env-file=otbr-env.list --restart=always openthread/border-router
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
docker pull openthread/border-router:latest
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
FROM python:3.12-slim
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY requirements-base.txt .
|
|
||||||
RUN pip install --no-cache-dir -r requirements-base.txt
|
|
||||||
|
|
||||||
COPY requirements.txt .
|
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
|
||||||
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
ENV FLASK_APP=app.py
|
|
||||||
ENV FLASK_RUN_HOST=0.0.0.0
|
|
||||||
ENV FLASK_RUN_PORT=5000
|
|
||||||
|
|
||||||
EXPOSE 5000
|
|
||||||
CMD ["python", "main.py"]
|
|
||||||
@@ -1,20 +1,20 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
system-api:
|
otbr:
|
||||||
build: .
|
image: openthread/border-router
|
||||||
container_name: "system-api"
|
container_name: otbr
|
||||||
ports:
|
network_mode: "host"
|
||||||
- "5000:5000"
|
restart: always
|
||||||
depends_on:
|
cap_add:
|
||||||
- mosquitto
|
- NET_ADMIN
|
||||||
environment:
|
devices:
|
||||||
- LOCAL_BROKER_USERNAME=system
|
- /dev/ttyACM0:/dev/ttyACM0
|
||||||
- LOCAL_BROKER_PASSWORD=hepl
|
- /dev/net/tun:/dev/net/tun
|
||||||
- LOCAL_BROKER_ADDRESS=system-broker
|
volumes:
|
||||||
- LOCAL_BROKER_PORT=1883
|
- /var/lib/otbr:/data
|
||||||
- API_BROKER_ADDRESS=192.168.15.125
|
env_file:
|
||||||
- API_BROKER_PORT=1883
|
- otbr-env.list
|
||||||
|
|
||||||
mosquitto:
|
mosquitto:
|
||||||
image: eclipse-mosquitto:latest
|
image: eclipse-mosquitto:latest
|
||||||
|
|||||||
13
rpi/deploy.sh
Normal file
13
rpi/deploy.sh
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
git pull
|
||||||
|
docker compose down
|
||||||
|
|
||||||
|
if [ "$1" != "preserve" ]; then
|
||||||
|
docker compose build --no-cache
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker compose up -d --force-recreate
|
||||||
|
|
||||||
|
source ./bin/activate
|
||||||
|
python3 ./main.py
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
numpy
|
|
||||||
opencv-python
|
|
||||||
ultralytics
|
|
||||||
@@ -1,8 +1,15 @@
|
|||||||
flask
|
python_dateutil
|
||||||
|
setuptools
|
||||||
|
urllib3
|
||||||
|
pydantic
|
||||||
|
typing-extensions
|
||||||
requests
|
requests
|
||||||
python-dotenv
|
python-dotenv
|
||||||
pydantic
|
|
||||||
paho-mqtt
|
|
||||||
pyyaml
|
pyyaml
|
||||||
pyserial
|
pyserial
|
||||||
grovepi
|
opencv-python
|
||||||
|
numpy
|
||||||
|
ultralytics
|
||||||
|
torch
|
||||||
|
flask
|
||||||
|
paho-mqtt
|
||||||
|
|||||||
Reference in New Issue
Block a user