Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 1.67 KB

README.md

File metadata and controls

43 lines (32 loc) · 1.67 KB

Unofficial STM32CubeCLT Docker Image

This repo creates a Docker image for the STM32 Command Line Tools (CLT).

A ubuntu environment is recommended for building. WSL can be used on Windows.

There are a few manual steps involved.

Using

This image contains the STM32CubeCLT package (located at /opt/st) and is based on Ubuntu 24.04 with CMake installed using KitWare's APT repository and clang and pip3 installed using the standard Ubuntu repository. To use the package, pull ghcr.io/revrobotics/stm32cubeclt:<version>.

Building

  1. Download the STM32 CLT installer for Linux (DEB). It must be the DEB version.
  2. Extract the downloaded file ending in .deb_bundle.sh to this directory
  3. Update the COPY command in the Dockerfile with the script name
  4. run docker build -t ghcr.io/<organization name>/stm32cubeclt:<version> .
  5. run docker run -it ghcr.io/<organization name>/stm32cubeclt:<version> /install.sh
  6. Accept the license by pressing down arrow until you see the prompt for y/N (You must press down arrow exactly enough times to reach the prompt. It will reject the license if you press the down arrow again)
  7. run docker ps -a to find the container id
  8. run docker commit <container id from before> ghcr.io/<organization name>/stm32cubeclt:<version>

Publishing

  1. Create a PAT for your GitHub account
  2. run echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin to login to docker
  3. run docker push ghcr.io/<organization name>/stm32cubeclt:<version>

License

See the license here