Skip to content

jasonyang-ee/STM32-Dockerfile

Repository files navigation

Test Upload Deploy Documentation

Docker Container for STM32 CMake & Ninja Compiling

Documentation

Visit Documentation for more information.

Tags

Postfix with base OS.

  • v8.0.0: Using new ARM GCC 13.3.rel1.
  • v8.1.0: Using new ARM GCC 14.2.rel1.
  • v8.2.0: Reduced image size by removing static analysis tools. Renamed container volume path. Removed -v option in build script.
  • latest: Equal to v8.2.0

Example: ghcr.io/jasonyang-ee/stm32-builder:debian-v8.2.0

Example: ghcr.io/jasonyang-ee/stm32-builder:debian-latest

-+- TL;DR -+-

This docker image auto clone an online git repo and compile the CMake & Ninja supported STM32 project locally on your computer with mounted volume.

docker run -v "{HostEmptyPath}":"/app" jasonyangee/stm32-builder:ubuntu-latest -r {Git_Repo_URL}

Run

Example Project

For CMake setup, refer to the below STM32 project template.

https://github.com/jasonyang-ee/STM32-CMAKE-TEMPLATE.git

Help Menu

docker run jasonyangee/stm32-builder:ubuntu-latest --help                              
Usage: build.sh [OPTIONS]
Options:
 -h, --help                            Print this help message
 -t, --type <build type>               Change CMake build type -- Default: Release
 -r, --repo <repository url>           Clone repository from url and build [Optional]

Commands:

docker run -v {HostPath}:/app {IMAGE:VERSION} -r {Git_Repo_URL} -t {Build_Type}

Public Registry:

ghcr.io/jasonyang-ee/stm32-builder:ubuntu-latest

ghcr.io/jasonyang-ee/stm32-builder:debian-latest

ghcr.io/jasonyang-ee/stm32-builder:alpine-latest

ghcr.io/jasonyang-ee/stm32-builder:arch-latest

jasonyangee/stm32-builder:ubuntu-latest

jasonyangee/stm32-builder:debian-latest

jasonyangee/stm32-builder:alpine-latest

jasonyangee/stm32-builder:arch-latest

About

STM32 Container for Building with CMake and ARM Toolchain. ST-Link Included.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages