Hello,
I am trying to get an automated CI/CD build of my DA14683 project on my gitlab server.
I can easily build my project from Ubuntu with GUI. But I would need to install all required build tools in a Docker container and generate the Makefiles for the project without any GUI interaction in a headless environment.
I could not find any information about triggering the SmartSnippets Studio build from command line. Eclipse CDT seems to support this:https://gnu-mcu-eclipse.github.io/advanced/headless-builds/But I don't know if it works with SmartSnippets Studio.
Did you already try this before and can lead me to the right direction?
Are there any other tools which can build a project without installing the whole IDE or build generation scripts working without starting Eclipse?
Thanks and best regards
Jens
I just tried if the general CDT headless build is working. It is. Following command works great and builds the project:
The remaining question is now: Do I need to install all tools (like Ozone, etc) and SmartSnippets or only a part in my Docker image? How can I tell the SmartSnippets installation where it should search for the tools without GUI config wizard at the first start?
谢谢!
Hi jenswet,
Thanks for your question online. Let me check it and I’ll get back to you shortly.
Thanks, PM_Dialog
Hi jenswet,
You will not need to install all tools, like Ozone, SystemView, SmartSnippets etc. Only the Eclipse and the toolchain should be installed in the Ubuntu.
Thanks, PM_Dialog
Hello PM_Dialog,
thanks for getting back to me.
How can I install the toolchain via CLI without GUI interaction and tell SmartSnippets the path?
Can you provide me the download link for the toolchain?
Thanks!
Hi jenswet,
In Section 1.2 in the SmartSnippets Studio you will find steps detailed steps for how to install the tool in the Ubuntu OS. Just follow the suggested steps. Regarding the GCC arm-none-eabi toolchain is available on the ARM website.
Thanks, PM_Dialog
Hello,
it was very hard to install the Smartsnippets Studio in a headless mode. But I did succeed.
If anyone else tries to build a project from a pipeline / ci / cd runner like Gitlab, Github, Bitbucket, etc please refer to following repository and docker images:
https://hub.docker.com/repository/docker/jenswet/dialog-smartsnippets-st...
https://github.com/jenswet/docker-smartsnippets-studio
@PM_Dialog: Your unattended install is broken. I tried the following:
But it stops with an xserver error (no display found). Only way is to complete the installation manally by extracting the missing tar files etc... See my Dockerfile for more information. Maybe you can fix this in a later version. That would be great.
Best regards
Jens
Hi jenswet,
Thanks for your indication – will check it.
Thanks, PM_Dialog