cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE Gitlab runner Docker image

Legacy member
Not applicable

Hi,

I'm trying to setup a server (Ubuntu server 22.04) to build my STM32 projects.

I installed a gitlab runner in docker container.

I used this image xanderhendriks/stm32cubeide:7.0 and built my own using the newest version of stm32cubeide.

however I'm running into alot of issues in my headless build

stm32cubeide --launcher.suppressErrors -nosplash \
                          -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data . \
                          -build stm32_test_project

first issue was related to my server was without any GUI or monitor.

stm32cubeide --launcher.suppressErrors -nosplash \ -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data . \ -build stm32_test_project
Unable to init server: Could not connect: Connection refused
Stm32cubeide:
An error has occurred. See the log file
/builds/xxxxxxxxx/stm32_test_project/.metadata/.log.
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1

I was able to solve this issue using a fake monitor

$ export DISPLAY=:1
$ Xvfb :1 -screen 0 1024x768x16 &

second issue was something related to :

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

$ export DISPLAY=:1
$ Xvfb :1 -screen 0 1024x768x16 &
$ sleep 2
$ stm32cubeide --launcher.suppressErrors -nosplash \ -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data . \ -build stm32_test_project
SWT SessionManagerDBus: Failed to connect to org.gnome.SessionManager: Failed to execute child process ?dbus-launch? (No such file or directory)
SWT SessionManagerDBus: Failed to connect to org.xfce.SessionManager: Failed to execute child process ?dbus-launch? (No such file or directory)
Apr 17, 2023 2:45:29 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
Could not determine the accessibility bus address
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
ERROR: Job failed: execution took longer than 1h0m0s seconds

Do you have any fix for the second issue ?

Best regards,

0 REPLIES 0