Other Parts Discussed in Thread: CCSTUDIO
Hello E2E,
i try to install the CCS12.4 in a Ubuntu 22.04 Docker environment. I can download / extract the file und start the installer. After starting the installer crashes the installation. In a Ubuntu 20.04 VM does this work very well. One point is thta the installer if it's running in the unattended mode ise sended to a child shell. Therefore the Docker container will not wait until completion. In addtion i writed out the debug trace. Could you please take a view to the debug data.
Whats are your recommendations?
# ************************************************************************
# Copyright : All right reserved
# Company : Siemens AG, 2023
# Address : Clemens-Winkler-Strasse 3, 09116 Chemnitz
# Telephone : +49 371 4750
#
# Author : Andreas Kaeberlein
# eMail : andreas.kaeberlein@siemens.com
# Telephone : +49 371 4810-2108
#
# File : Dockerfile
#
# Description : Controls the build of the new cotainer
#
# Sources : https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
# https://www.ti.com/tool/download/CCSTUDIO
# https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/820478/faq-ccs-ccsv9---installer-in-text-mode-no-gui-only-cli-usage
# https://software-dl.ti.com/ccs/esd/documents/ccs_installer-cli.html#Examples
# https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1218917/codecomposer-ccstudio-in-a-modern-docker-container
#
# on : 2023-09-15
# ************************************************************************
FROM --platform=linux/amd64 ubuntu:22.04
COPY ./build/tmp/apt.conf /etc/apt/apt.conf
COPY ./build/ /tmp/build/
RUN /bin/bash -c ' source $HOME/.bashrc; \
export http_proxy=$(cat /tmp/build/tmp/proxy); \
export https_proxy=$(cat /tmp/build/tmp/proxy); \
export HELP_TOOLS="curl wget p7zip-full"; \
export CCS_COMP="PF_MSP430"; \
export CCS_INSTALL=/opt/ti/ccs; \
export CCS_URL="https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-J1VdearkvK/12.4.0/CCS12.4.0.00007_linux-x64.tar.gz"; \
export CCS_FILE=${CCS_URL##*/}; \
export CCS_DIR=${CCS_FILE%.tar.gz}; \
export CCS_RUN=${CCS_DIR%_*}; export CCS_RUN=ccs_setup_${CCS_RUN##*CCS}.run; \
export CCS_EXEC="/tmp/build/download/${CCS_DIR}/${CCS_RUN} --mode unattended --prefix ${CCS_INSTALL} --enable-components ${CCS_COMP}"; \
export CCS_DEPS="libpython2.7 libtinfo5 libusb-0.1-4 libgconf-2-4"; \
mkdir -p /tmp/build/download; \
mkdir -p ${CCS_INSTALL}; \
apt-get update && apt-get install ${HELP_TOOLS} -yq && apt-get clean && \
apt-get update && apt-get install ${CCS_DEPS} -yq && apt-get clean && \
curl ${CCS_URL} --output /tmp/build/download/${CCS_FILE} && \
tar -xvf /tmp/build/download/${CCS_FILE} -C /tmp/build/download/ && \
/tmp/build/download/${CCS_DIR}/${CCS_RUN} --help && \
/tmp/build/download/${CCS_DIR}/${CCS_RUN} --version && \
echo "[INFO] Start CCS installation: ${CCS_EXEC}" && \
${CCS_EXEC} --debugtrace ./ccsdebug.log && \
ps && \
sleep 1 && \
ls -la ${CCS_INSTALL} && \
apt-get remove ${HELP_TOOLS} -yq && apt-get purge ${HELP_TOOLS} -yq && apt-get autoremove -y && apt-get autoclean -y && \
rm -rf /tmp/build/download && \
rm -f /etc/apt/apt.conf && \
unset http_proxy && \
unset https_proxy \
'
#bash -c "${CCS_EXEC} & CCS_PID=$! wait ${CCS_PID}" && \