-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
113 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.venv | ||
firmware |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Python Debugger: Current File with Arguments", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "${file}", | ||
"console": "integratedTerminal", | ||
"args": [ | ||
"${command:pickArgs}", | ||
"--arch", "nrf52840", | ||
"--board", "xiao_ble", | ||
"--build_script_path", "bin/build-nrf52.sh", | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,24 @@ | ||
FROM python:3.12-bookworm | ||
ENV PIP_ROOT_USER_ACTION=ignore | ||
|
||
# Add build scripts (firmware/bin) to PATH | ||
# RUN git clone --no-checkout --depth 1 https://github.com/meshtastic/firmware.git /meshtastic && \ | ||
# git -C /meshtastic config core.sparseCheckout true && \ | ||
# echo "bin/*" > /meshtastic/.git/info/sparse-checkout && \ | ||
# git -C /meshtastic checkout master | ||
# ENV PATH="/meshtastic/bin:$PATH" | ||
|
||
# Install build dependencies | ||
RUN apt update && apt install -y \ | ||
build-essential \ | ||
cppcheck libbluetooth-dev libgpiod-dev libyaml-cpp-dev && \ | ||
# Install DRA (GitHub Releases downloader) | ||
# wget 'https://github.com/devmatteini/dra/releases/download/0.6.2/dra_0.6.2-1_amd64.deb' && \ | ||
# dpkg --install dra_0.6.2-1_amd64.deb && rm dra_0.6.2-1_amd64.deb && \ | ||
apt clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Python dependencies | ||
COPY requirements.txt . | ||
RUN python -m pip install --upgrade pip && \ | ||
pip install -U --no-build-isolation --no-cache-dir "setuptools<72" && \ | ||
pip install -U --no-build-isolation -r requirements.txt && \ | ||
pip install -U platformio adafruit-nrfutil --no-build-isolation && \ | ||
pip install -U poetry --no-build-isolation && \ | ||
pip install -U meshtastic --pre --no-build-isolation | ||
|
||
# Upgrade PlatformIO | ||
RUN pio upgrade | ||
|
||
# COPY entrypoint.sh /entrypoint.sh | ||
# ENTRYPOINT [ "/entrypoint.sh" ] | ||
|
||
COPY entrypoint.py /entrypoint.py | ||
ENTRYPOINT [ "/entrypoint.py" ] | ||
ENTRYPOINT [ "/entrypoint.py" ] | ||
CMD [ "master" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
requests | ||
GitPython | ||
platformio |