Digging this up from a few years later...
Trying this flow inside a docker container
kinetis-design-studio \
--launcher.ini kinetis-design-studio.ini \
--launcher.suppressErrors \
-noSplash \
-data /tmp/wsp \
-application org.eclipse.cdt.managedbuilder.core.headlessbuild \
-import $PROJECT_DIR
printf "\n\n---------------------------------------------------------------------\n\n"
kinetis-design-studio \
-noSplash \
-data /tmp/wsp \
-application com.freescale.processorexpert.core.PExApplication -generateAll
outside of the container, i get a successful build. inside the container i get
!SESSION 2021-03-23 17:27:22.844 -----------------------------------------------
eclipse.buildId=3.2.0.201603041649
java.version=1.8.0_282
java.vendor=Private Build
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import all_cell_bms
Command-line arguments: -os linux -ws gtk -arch x86_64 -data /tmp/wsp -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import all_cell_bms
!ENTRY org.eclipse.equinox.app 0 0 2021-03-23 17:27:36.284
!MESSAGE Product com.somniumtech.kds could not be found.
!ENTRY org.eclipse.cdt.core 1 0 2021-03-23 17:27:46.223
!MESSAGE Indexed 'MVBms_rev1_SW' (12 sources, 84 headers) in 7.43 sec: 5,219 declarations; 16,777 references; 110 unresolved inclusions; 32 syntax errors; 866 unresolved names (3.8%)
!SESSION 2021-03-23 17:27:51.368 -----------------------------------------------
eclipse.buildId=3.2.0.201603041649
java.version=1.8.0_282
java.vendor=Private Build
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -application com.freescale.processorexpert.core.PExApplication -generateAll
Command-line arguments: -os linux -ws gtk -arch x86_64 -data /tmp/wsp -application com.freescale.processorexpert.core.PExApplication -generateAll
!ENTRY org.eclipse.osgi 4 0 2021-03-23 17:27:53.856
!MESSAGE An error occurred while automatically activating bundle com.freescale.processorexpert.core (27).
!STACK 0
org.osgi.framework.BundleException: Exception in com.processorexpert.core.PECoreActivator.start() of bundle com.freescale.processorexpert.core.
it seems like the eclipse headless build works, but i need to also generate code using processor expert and it is not working inside the docker environment. looking for a resolution if possible.