Other Parts Discussed in Thread: CCSTUDIO
I would like to containerize Code Composer Studio Theia to distribute the specific version to our colleagues to keep our versions and dev environment the same.
Now I've made a Ubuntu 22.04 image which downloads and installs CCS Theia 1.3.1. However, when i try to run it, i get the following error:
Container tools-ccstheia-1 Recreated 0.1s Attaching to ccstheia-1ccstheia-1 | [7:0408/133011.465333:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directoryccstheia-1 | Trace/breakpoint trapccstheia-1 exited with code 133
Now my question is, this has probably something to do with the way Docker works and creates a Ubuntu image.
So, has someone got this to work? What am I missing.
Running Theia from WSL2 works just fine.
This is my dockerfile:
# Get ubuntu version which is compatible with Code Composer Studio TheiaFROM ubuntu:22.04# Prevent interactive prompts during installationsENV DEBIAN_FRONTEND=noninteractive# Update package cache, install tools and dependenciesRUN apt-get update && apt-get install -y wget unzip \libpython2.7 libtinfo5 libusb-0.1-4 libusb-1.0-0-dev libgconf-2-4 libasound2 libatk1.0-0 libcairo2 \libgtk-3-0 libxi6 libxtst6 libcanberra-gtk-module binutils libc6-i386 libnss3 libdrm2 libgbm1# Set working directory to download CCS toWORKDIR /usr/workdir/downloads# Download CCS Theia to new downloads folder (made using WORKDIR above)# Note: this downloads version 1.3.1 of CCS Theia# Unzip and remove zip in quiet mode, change to the unzipped working directoryRUN unzip -q CCSTheia1.3.1.00004_linux-x64.zip && rm CCSTheia1.3.1.00004_linux-x64.zip# Change workdir to excecute commands from using RUNWORKDIR /usr/workdir/downloads/CCSTheia1.3.1.00004_linux-x64# Make the run file excecutableRUN chmod +x ccs_theia_setup_1.3.1.00004.run# Install CCS Theia and change WORKDIR to install directoryRUN ./ccs_theia_setup_1.3.1.00004.run --mode unattended --unattendedmodeui minimal --enable-components PF_C28 --prefix /usr/workdir/application/ccstheia131WORKDIR /usr/workdir/application/ccstheia131/ccs# Run CCS Theia!CMD ./theia/ccstudio --no-sandbox