Skip to main content
MBand.3
Associate III
April 25, 2023
Question

STM32CubeIDE Silent/Noninteractive Install

  • April 25, 2023
  • 1 reply
  • 2062 views

I'm attempting to set up a CI pipeline to build firmware built in STM32CubeIDE, but I've not been able to get STM32CubeIDE installed via Dockerfile without manual intervention. Is there a silent install or a way to pre-accept the license agreements so that I can install the STM32 toolchain without having to hand-build my Docker images?

The container base is Ubuntu 22.04. I've tried piping `yes` to to the installer, as well as `expect` and `printf`, but the license script fails when run any way other than the default. Similarly, I've tried extracting the .debs from the script and installing via `apt` with the same results. I'm not trying to circumvent the license, I just want a way to set up the tools in a Docker container without manual intervention.

This topic has been closed for replies.

1 reply

MBand.3
MBand.3Author
Associate III
April 27, 2023

Based on looking through https://github.com/xanderhendriks/docker-stm32cubeide/blob/master/Dockerfile, it appears that adding `ENV LICENSE_ALREADY_ACCEPTED=1` to the dockerfile is enough to enable silent installation.