diff --git a/dockerfile b/dockerfile index acdee44..728dd73 100644 --- a/dockerfile +++ b/dockerfile @@ -6,18 +6,22 @@ WORKDIR /app COPY . /app # Устанавливаем необходимые зависимости -RUN apt-get update && apt-get upgrade +RUN apt-get update +RUN apt-get upgrade -RUN ./scipts/cppcheck/cppcheck-install.sh -RUN ./scipts/gcc-arm/arm-none-edabi-install.sh -RUN ./scipts/doxygen/doxygen-install.sh -RUN apt-get -y install openocd #последня версия в репе -RUN apt-get -y install make #не последняя но нормально -RUN apt-get -y install stlink-tools #не последняя но нормально -RUN apt-get -y install graphviz #для doxygen +#RUN ./scipts/cppcheck-install.sh +#RUN ./scipts/arm-none-edabi-install.sh +#RUN ./scipts/doxygen-install.sh +RUN ./scipts/cpputest-install.sh +#RUN apt-get -y install openocd #последня версия в репе +#RUN apt-get -y install make #не последняя но нормально +#RUN apt-get -y install stlink-tools #не последняя но нормально +#RUN apt-get -y install graphviz #для doxygen # Применение изменений PATH RUN echo "source ~/.bashrc" >> ~/.profile +RUN ./tools_vesion_check.sh + # Запускаем Bash, чтобы контейнер оставался активным CMD ["bash", "-c", "while true; do sleep 1000; done"] diff --git a/scipts/gcc-arm/arm-none-edabi-install.sh b/scipts/arm-none-edabi-install.sh similarity index 100% rename from scipts/gcc-arm/arm-none-edabi-install.sh rename to scipts/arm-none-edabi-install.sh diff --git a/scipts/cppcheck/cppcheck-install.sh b/scipts/cppcheck-install.sh similarity index 100% rename from scipts/cppcheck/cppcheck-install.sh rename to scipts/cppcheck-install.sh diff --git a/scipts/cpputest-install.sh b/scipts/cpputest-install.sh new file mode 100755 index 0000000..0b1ad58 --- /dev/null +++ b/scipts/cpputest-install.sh @@ -0,0 +1,8 @@ +apt-get install -y g++ make git autoconf +git clone https://github.com/cpputest/cpputest.git +cd cpputest +mkdir cpputest_build +cd cpputest_build +autoreconf .. -i +../configure +make \ No newline at end of file diff --git a/scipts/doxygen/doxygen-install.sh b/scipts/doxygen-install.sh similarity index 100% rename from scipts/doxygen/doxygen-install.sh rename to scipts/doxygen-install.sh