Skip to main content
AGill.4
Associate
May 4, 2023
Question

Can STM32CubeCLT be installed with programmatically acknowledging of the license?

  • May 4, 2023
  • 5 replies
  • 2774 views

I am trying use the new STM32CubeCLT package with a Docker container, but it requires a manual acknowledgement of the license during install. This rather defeats the purpose of using this package with a Dockerfile and CI pipeline. Is there a way to programmatically acknowledge the license some other way such as through an environment variable?

5 replies

Pavel A.
Super User
May 5, 2023

Some distros IIRC have a driver (?) which allows injecting input events, such as keystrokes. This can foil any smart er, thing that requires 'genuine' keypress.

Don't know whether this works in containers.

frainville
Explorer
January 12, 2024

Hello sir,

I needed to do it as well today so I created a Dockerfile with a patch to remove the prompts.

 

https://github.com/Rotule666/stm32cubeclt-docker/tree/master

 

you can see the applied change in the patch file 

https://github.com/Rotule666/stm32cubeclt-docker/blob/master/patch/setup.patch

 

cheers!

 

Rob.Riggs
Senior
July 16, 2024

Has ST come up with a better solution for this problem? CI/CD is a big deal in modern software engineering and making it difficult to automate tool installation into containers is a stumbling block for many of us.

Graduate
July 25, 2024

According to the documentatuion one of the main objectives of this tool is the CI/CD, while making it interactive ...
In addition, the help option shows several options, but none of them seems to be really useful for solving this problem.

frainville
Explorer
July 25, 2024

The solution I proposed work very well and is quite simple, if you need specific help on how to use it I can try to help. I am using the same solution for installing STM32Cube IDE in my CI/CD containers for many years.

https://github.com/Rotule666/stm32cubeclt-docker/blob/master/readme.MD

 

Graduate
July 25, 2024

Thank you very much frainville, I'm going to use it .