stm32cube-extension: STM32 Cube extension docker container for local development and github actions build.
Please let me know in the issues what you think. I'm also happy for improvements ideas to the current setup as well.
Download STM32CubeMX and STMCUFinder and place them in this directory. Update the versions in the Dockerfile if needed.
To update the image xanderhendriks/stm32cube-extension, execute the following commands in the
docker-stm32cube-extension folder:
rm -r .local/share/*
docker build -t xanderhendriks/stm32cube-extension:init .
Now run the docker image with the devcontainer to get the stm32cube extension and its bundles installed. This will populate the .local/share/ directory again which will be included inside the docker image.
To create the updated docker run:
docker build -t xanderhendriks/stm32cube-extension:<version> .
To push it to the docker hub:
docker push docker push xanderhendriks/stm32cube-extension:<version>
Make sure to update the versions at the end of this file.
$ docker pull xanderhendriks/stm32cube-extension:<version>
$ docker run -it --name stm32cube-extension \
-v c:\GIT\repo:/workspace \
xanderhendriks/stm32cube-extension:<version>
$ docker run -it --name stm32cube-extension \
-v c:\GIT\repo:/workspace \
-v /tmp/.X11-unix:/tmp/.X11-unix \
xanderhendriks/stm32cube-extension:<version>
$ docker run -it --name stm32cube-extension \
-e DISPLAY=$DISPLAY \
-v c:\GIT\repo:/workspace \
-v /tmp/.X11-unix:/tmp/.X11-unix \
xanderhendriks/stm32cube-extension:<version> /usr/local/STMicroelectronics/STM32Cube/STM32CubeMX/STM32CubeMX
To build your application from the command line execute the following commands:
cmake --preset Release cmake --build --preset Release
To see how to use this docker image in a github ci pipeline have a look at stm32-sample-application.
Content type
Image
Digest
sha256:404421e81…
Size
3.8 GB
Last updated
10 months ago
docker pull xanderhendriks/stm32cube-extension:1.0Pulls:
172
Last week