FROM ubuntu:18.04 #Install all packages needed RUN dpkg --add-architecture i386 RUN apt-get update RUN apt-get install -y libc6:i386 RUN apt-get install -y libusb-0.1-4:i386 RUN apt-get install -y libgconf-2-4:i386 RUN apt-get install -y build-essential RUN apt-get install -y libpython2.7 RUN apt-get install -y git WORKDIR /ccs_install #Files which define which ccs feature to install COPY response.txt /ccs_install COPY ti_cgt_msp430_18.1.6.LTS_linux_installer_x86.bin /ccs_install #ADD automatically extracts the archive ADD CCS9.1.0.00010_linux-x64.tar.gz /ccs_install/ # Install ccs in unattended mode RUN /ccs_install/CCS9.1.0.00010_linux-x64/ccs_setup_linux64_9.1.0.00010.bin --mode unattended --prefix /opt/ti --response-file /ccs_install/response.txt RUN /ccs_install/ti_cgt_msp430_18.1.6.LTS_linux_installer_x86.bin --prefix /opt/ti/ccs/tools/compiler/ --mode unattended --unattendedmodeui minimal # TODO: do this in the same step as the ADD and RUN install to remove 800MB in the image. RUN rm -r /ccs_install ENV PATH="/opt/ti/ccs/eclipse/:${PATH}" WORKDIR /