diff --git a/Dockerfile b/Dockerfile index 1e2f567..0e8f1d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,7 @@ COPY requirements.txt . RUN pip install -r requirements.txt COPY . . -COPY config.template /app/config.ini - +COPY config.ini /app/config.ini COPY entrypoint.sh /app/entrypoint.sh RUN chmod +x /app/entrypoint.sh diff --git a/README.md b/README.md index 5c1f32f..b631e96 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,11 @@ Optionally: - `install.sh` will automate optional venv and requirements installation. - `launch.sh` will activate and launch the app in the venv if built. +For Docker: +- `git clone https://github.com/spudgunman/meshing-around` +- `cd meshing-around && docker build -t meshing-around` +- `docker run meshing-around` + ### Configurations Copy the [config.template](config.template) to `config.ini` and set the appropriate interface for your method (serial/ble/tcp). While BLE and TCP will work, they are not as reliable as serial connections. There is a watchdog to reconnect tcp if possible. To get BLE mac `meshtastic --ble-scan` **NOTE** I have only tested with a single BLE device and the code is written to only have one interface be a BLE port diff --git a/entrypoint.sh b/entrypoint.sh index 79bafee..86701b7 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,10 +1,6 @@ #!/bin/bash # Substitute environment variables in the config file -envsubst < /app/config.template > /app/config.ini - -# Debug: Output the generated config file -echo "Generated config.ini:" -cat /app/config.ini +envsubst < /app/config.ini > /app/config.tmp && mv /app/config.tmp /app/config.ini exec python /app/mesh_bot.py \ No newline at end of file