Skip to content

Commit b87a3a2

Browse files
committed
Initial commit
0 parents  commit b87a3a2

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Raspberry Pi Pico Docker
2+
3+
## Run Docker container
4+
5+
```
6+
cd ./docker
7+
8+
docker build . --tag pico-sdk
9+
10+
docker run -d -it --name pico-sdk --mount type=bind,source=${PWD},target=/home/dev pico-sdk
11+
12+
docker exec -it pico-sdk /bin/sh
13+
```

docker/Dockerfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
FROM alpine:3.16.2
2+
3+
# Install toolchain
4+
RUN apk update && \
5+
apk upgrade && \
6+
apk add git \
7+
python3 \
8+
py3-pip \
9+
cmake \
10+
build-base \
11+
libusb-dev \
12+
bsd-compat-headers \
13+
newlib-arm-none-eabi \
14+
gcc-arm-none-eabi
15+
16+
# Raspberry Pi Pico SDK
17+
RUN git clone https://github.com/raspberrypi/pico-sdk /usr/pico-sdk && \
18+
cd /usr/pico-sdk && \
19+
git submodule update --init
20+
21+
ENV PICO_SDK_PATH=/usr/pico-sdk
22+
23+
# Picotool installation
24+
RUN git clone -b master https://github.com/raspberrypi/picotool.git /usr/picotool && \
25+
cd /usr/picotool && \
26+
mkdir build && \
27+
cd build && \
28+
cmake .. && \
29+
make && \
30+
cp /usr/picotool/build/picotool /bin/picotool && \
31+
rm -rf /usr/picotool

0 commit comments

Comments
 (0)