Lightweight docker image built on top of alpine with installed ARM-none-eabi toolchain and few additional tools:
- ARM-none-eabi toolchain
- stlink
- make
- cmake
DockerHub: https://hub.docker.com/r/lpodkalicki/stm32-toolchain
git clone git@github.com:lpodkalicki/stm32-toolchain-docker.git
cd stm32-toolchain
docker build --rm -t lpodkalicki/stm32-toolchain:latest .
docker run --rm --privileged -v $(pwd):/build lpodkalicki/stm32-toolchain arm-none-eabi-cpp --version
Bellow you can find recommended simple one-line installer that pulls the newest docker-image and installs stm32-toolchain script into "/usr/bin/" directory.
curl https://raw.githubusercontent.com/lpodkalicki/stm32-toolchain-docker/master/install.sh | bash -s --
- Install toolchain using recommended simple one-line installer.
- Use super command stm32-toolchain for all toolchain binaries.
- Execute toolchain binaries inside your working/project directory.
$ cd your-project/
$ stm32-toolchain arm-none-eabi-cpp --version
$ stm32-toolchain st-flash --version
$ stm32-toolchain make -version
$ stm32-toolchain cmake -version
$ stm32-toolchain cmake -Bbuild .
$ stm32-toolchain make --directory build