CubeCLT for STM32 development. Use this container as a base for a devcontainer in VSCode.
143
FROM debian:bookworm
RUN apt-get update
RUN apt-get install \
git wget cmake stlink-tools \
libhidapi-hidraw0 \
libusb-0.1-4 \
libusb-1.0-0 \
libhidapi-dev \
libusb-1.0-0-dev \
libusb-dev \
libtool \
make \
automake \
pkg-config \
tclsh \
telnet \
unzip \
curl \
-y
RUN [CurlWget Extension Command]
RUN mkdir /root/Downloads \
&& mv en.st-stm32cubeclt_1.15.0_20695_20240315_1429_amd64.sh.zip /root/Downloads \
&& cd /root/Downloads \
&& unzip en.st-stm32cubeclt_1.15.0_20695_20240315_1429_amd64.sh.zip \
&& chmod +x st-stm32cubeclt_1.15.0_20695_20240315_1429_amd64.sh \
&& rm en.st-stm32cubeclt_1.15.0_20695_20240315_1429_amd64.sh.zip
# && ./st-stm32cubeclt_1.15.0_20695_20240315_1429_amd64.sh # If you un-comment will crash. Feel free to try to resolve, let me know
&& tar xf xpack-arm-none-eabi-gcc-13.2.1-1.1-linux-x64.tar.gz \
&& cp -rf xpack-arm-none-eabi-gcc-13.2.1-1.1/* /usr/local/ \
&& rm -rf xpack-arm-none-eabi-gcc-13.2.1-1.1*
CMD bin/bash
Where CurlWget Extension Command is the command from the (web browser) extension with the same name that is provided when you download "STM32CubeCLT-Lnx v1.5.0" from https://www.st.com/en/development-tools/stm32cubeclt.html
Build and run the image with: docker build --tag TAG . && docker run -it --name NAME TAG
Then enter /root/Downloads/ and run the shell script there. ST has made a lot of effort to accept their user agreements, so this is a manual step. Nothing that I have tried have successfully run the shell script from the Dockerfile
Now you have reproduced the image you can pull from this repo.
ToDO
Content type
Image
Digest
sha256:b53bef263…
Size
2.5 GB
Last updated
over 2 years ago
docker pull dockerspange/stm32devcontainer:2024-04-23