主题中讨论的其他器件:CCStudio
我想用容器化 Code Composer Studio Theia 将特定版本分发给我们的同事、以保持我们的版本和开发环境相同。
现在、我制作了一个 Ubuntu 22.04映像、该映像可下载并安装 CCS Theia 1.3.1。 但是、当我尝试运行它时、出现以下错误:
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
现在我的问题是、这可能与 Docker 的工作方式和创建 Ubuntu 映像有关。
那么、有人用它吗? 我缺少什么。
从 WSL2运行 Theia 非常好。
这是我的文档处理文件:
# 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