Skip to content

Commit

Permalink
Merge pull request #111 from FaBjE/feature/addDevcontainer
Browse files Browse the repository at this point in the history
Allow serial programming from container
  • Loading branch information
pvvx authored Jul 28, 2024
2 parents 187801a + ca1f3a2 commit 665251c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ RUN apt-get -y update && \
libncurses5 libncursesw5 \
build-essential \
python3 \
python-pip \
python3-pip \
&& rm -rf /var/lib/apt/lists*

# Install pyserial for serial programmer
RUN pip3 install pyserial
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"runArgs": [
"--name",
"ZigbeeTLc",
"--rm"
"--rm",
//Use next line to forward serial port programmer to container
"--device=/dev/ttyUSB0"
],
"postStartCommand": "/usr/bin/git config --global --add safe.directory \"*\" && make install",
"customizations": {
Expand Down

0 comments on commit 665251c

Please sign in to comment.