6 Commits

2 changed files with 21 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
FROM alpine:3.17.0 FROM alpine:3.21.3
# Install toolchain # Install toolchain
RUN apk update && \ RUN apk update && \
@@ -11,22 +11,24 @@ RUN apk update && \
libusb-dev \ libusb-dev \
bsd-compat-headers \ bsd-compat-headers \
newlib-arm-none-eabi \ newlib-arm-none-eabi \
gcc-arm-none-eabi gcc-arm-none-eabi \
g++-arm-none-eabi \
linux-headers
# Raspberry Pi Pico SDK # Raspberry Pi Pico SDK
ARG SDK_PATH=/usr/share/pico_sdk ARG SDK_PATH=/usr/share/pico_sdk
RUN git clone --depth 1 --branch 1.5.1 https://github.com/raspberrypi/pico-sdk $SDK_PATH && \ RUN git clone --depth 1 --branch 2.1.1 --single-branch https://github.com/raspberrypi/pico-sdk $SDK_PATH && \
cd $SDK_PATH && \ cd $SDK_PATH && \
git submodule update --init git submodule update --init
ENV PICO_SDK_PATH=$SDK_PATH ENV PICO_SDK_PATH=$SDK_PATH
# Picotool installation # Picotool installation
RUN git clone --depth 1 --branch 1.1.2 https://github.com/raspberrypi/picotool.git /home/picotool && \ RUN git clone --depth 1 --branch 2.1.1 --single-branch https://github.com/raspberrypi/picotool.git /home/picotool && \
cd /home/picotool && \ cd /home/picotool && \
mkdir build && \ mkdir build && \
cd build && \ cd build && \
cmake .. && \ cmake .. && \
make && \ make -j$(nproc) && \
cp /home/picotool/build/picotool /bin/picotool && \ cmake --install . && \
rm -rf /home/picotool rm -rf /home/picotool

13
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,13 @@
node {
stage("Download SRC") {
checkout scm
}
stage("Docker build") {
docker.build("${env.DOCKER_PREFIX}/picosdk", ".")
}
stage("docker prune") {
sh 'docker system prune -f'
}
}