diff --git a/.devcontainer/Dockerfile.All b/.devcontainer/Dockerfile.All index 2c6dbe8898..c16cfff273 100644 --- a/.devcontainer/Dockerfile.All +++ b/.devcontainer/Dockerfile.All @@ -1 +1 @@ -FROM ghcr.io/nanoframework/dev-container-all:v2.28 +FROM ghcr.io/nanoframework/dev-container-all:v2.29 diff --git a/.devcontainer/Dockerfile.AzureRTOS b/.devcontainer/Dockerfile.AzureRTOS index c2a72f33c3..1eafa89cae 100644 --- a/.devcontainer/Dockerfile.AzureRTOS +++ b/.devcontainer/Dockerfile.AzureRTOS @@ -1 +1 @@ -FROM ghcr.io/nanoframework/dev-container-azure-rtos:v1.15 +FROM ghcr.io/nanoframework/dev-container-azure-rtos:v1.16 diff --git a/.devcontainer/Dockerfile.ChibiOS b/.devcontainer/Dockerfile.ChibiOS index c17786e6ec..91d3f34f0f 100644 --- a/.devcontainer/Dockerfile.ChibiOS +++ b/.devcontainer/Dockerfile.ChibiOS @@ -1 +1 @@ -FROM ghcr.io/nanoframework/dev-container-chibios:v1.15 +FROM ghcr.io/nanoframework/dev-container-chibios:v1.16 diff --git a/.devcontainer/Dockerfile.ESP32 b/.devcontainer/Dockerfile.ESP32 index e102614a9b..527836b2c3 100644 --- a/.devcontainer/Dockerfile.ESP32 +++ b/.devcontainer/Dockerfile.ESP32 @@ -1 +1 @@ -FROM ghcr.io/nanoframework/dev-container-esp32:v2.23 +FROM ghcr.io/nanoframework/dev-container-esp32:v2.24 diff --git a/.devcontainer/Dockerfile.TI b/.devcontainer/Dockerfile.TI index 85f0ee1de6..851d85f855 100644 --- a/.devcontainer/Dockerfile.TI +++ b/.devcontainer/Dockerfile.TI @@ -1 +1 @@ -FROM ghcr.io/nanoframework/dev-container-ti:v1.15 +FROM ghcr.io/nanoframework/dev-container-ti:v1.16 diff --git a/.devcontainer/sources/Dockerfile.All b/.devcontainer/sources/Dockerfile.All index 63de19b8db..78276ed359 100644 --- a/.devcontainer/sources/Dockerfile.All +++ b/.devcontainer/sources/Dockerfile.All @@ -4,7 +4,8 @@ RUN apt-get update \ && apt-get install -y \ curl \ xz-utils \ - unzip + unzip \ + wget ARG GCC_URI=https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz RUN mkdir -p /tmp/dc-downloads /tmp/dc-extracted/gcc \ @@ -19,6 +20,14 @@ RUN mkdir -p /tmp/dc-extracted/titools \ && curl -o /tmp/dc-downloads/titools.zip $TI_TOOL_URL -L \ && unzip -d /tmp/dc-extracted/titools /tmp/dc-downloads/titools.zip +ARG CMAKE_SCRIPT=https://cmake.org/files/v3.24/cmake-3.24.0-linux-x86_64.sh +RUN wget $CMAKE_SCRIPT \ + -q -O /tmp/cmake-install.sh \ + && chmod u+x /tmp/cmake-install.sh \ + && mkdir /tmp/dc-extracted/cmake \ + && /tmp/cmake-install.sh --skip-license --prefix=/tmp/dc-extracted/cmake \ + && rm /tmp/cmake-install.sh + FROM ghcr.io/linuxcontainers/debian-slim:latest AS devcontainer # Avoid warnings by switching to noninteractive @@ -90,7 +99,9 @@ ENV PATH=$ARM_GCC_PATH/bin:${PATH} # Copy from our other container COPY --from=downloader /tmp/dc-extracted/gcc $ARM_GCC_PATH COPY --from=downloader /tmp/dc-extracted/titools/xdctools_3_62_00_08_core /usr/local/bin/titools -# COPY ./scripts/git-pull-repos.sh /usr/local/git-pull-repos.sh +COPY --from=downloader /tmp/dc-extracted/cmake /usr/bin/cmake + +ENV PATH=/usr/bin/cmake/bin:${PATH} # Putting hex2dfu in the container ENV HEX2DFU_PATH=/usr/local/bin/hex2dfu @@ -104,16 +115,6 @@ RUN mkdir -p $HEX2DFU_PATH \ RUN ln -fs /usr/bin/python3 /usr/bin/python \ && pip3 install pyserial -ARG CMAKE_VERSION=3.24.0 -RUN wget https://cmake.org/files/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.sh \ - -q -O /tmp/cmake-install.sh \ - && chmod u+x /tmp/cmake-install.sh \ - && mkdir /usr/bin/cmake \ - && /tmp/cmake-install.sh --skip-license --prefix=/usr/bin/cmake \ - && rm /tmp/cmake-install.sh - -ENV PATH=/usr/bin/cmake/bin:${PATH} - # Install ESP-IDF ENV IDF_PATH=/sources/esp-idf ENV ESP_PATCH_VER=esp-2021r2-patch5-8.4.0 diff --git a/.devcontainer/sources/Dockerfile.AzureRTOS b/.devcontainer/sources/Dockerfile.AzureRTOS index 1f78ad8afb..f4b2aed7e6 100644 --- a/.devcontainer/sources/Dockerfile.AzureRTOS +++ b/.devcontainer/sources/Dockerfile.AzureRTOS @@ -4,7 +4,8 @@ RUN apt-get update \ && apt-get install -y \ curl \ xz-utils \ - unzip + unzip \ + wget ARG GCC_URI=https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz RUN mkdir -p /tmp/dc-downloads /tmp/dc-extracted/gcc \ @@ -13,6 +14,14 @@ RUN mkdir -p /tmp/dc-downloads /tmp/dc-extracted/gcc \ && tar -xvf /tmp/dc-downloads/gcc-arm.tar -C /tmp/dc-extracted/gcc --strip-components 1 \ && rm -rf /tmp/dc-extracted/gcc/share/doc/ /tmp/dc-extracted/gcc/share/gcc-arm-none-eabi/samples/ +ARG CMAKE_SCRIPT=https://cmake.org/files/v3.24/cmake-3.24.0-linux-x86_64.sh +RUN wget $CMAKE_SCRIPT \ + -q -O /tmp/cmake-install.sh \ + && chmod u+x /tmp/cmake-install.sh \ + && mkdir /tmp/dc-extracted/cmake \ + && /tmp/cmake-install.sh --skip-license --prefix=/tmp/dc-extracted/cmake \ + && rm /tmp/cmake-install.sh + FROM ghcr.io/linuxcontainers/debian-slim:latest AS devcontainer # Avoid warnings by switching to noninteractive @@ -52,23 +61,15 @@ RUN git clone --branch mbedtls-2.28.1 https://github.com/ARMmbed/mbedtls.git --d && git clone --branch R0.14b https://github.com/abbrev/fatfs.git --depth 1 ./sources/fatfs \ && git clone --branch nf-build https://github.com/nanoframework/spiffs.git --depth 1 ./sources/spiffs -ARG CMAKE_VERSION=3.24.0 -RUN wget https://cmake.org/files/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.sh \ - -q -O /tmp/cmake-install.sh \ - && chmod u+x /tmp/cmake-install.sh \ - && mkdir /usr/bin/cmake \ - && /tmp/cmake-install.sh --skip-license --prefix=/usr/bin/cmake \ - && rm /tmp/cmake-install.sh - -ENV PATH=/usr/bin/cmake/bin:${PATH} - # set gcc location ENV ARM_GCC_PATH=/usr/local/bin/gcc ENV PATH=$ARM_GCC_PATH/bin:${PATH} # Copy from our other container COPY --from=downloader /tmp/dc-extracted/gcc $ARM_GCC_PATH -# COPY ./scripts/git-pull-repos.sh /usr/local/git-pull-repos.sh +COPY --from=downloader /tmp/dc-extracted/cmake /usr/bin/cmake + +ENV PATH=/usr/bin/cmake/bin:${PATH} # Putting hex2dfu in the container ENV HEX2DFU_PATH=/usr/local/bin/hex2dfu diff --git a/.devcontainer/sources/Dockerfile.ChibiOS b/.devcontainer/sources/Dockerfile.ChibiOS index 39ffea1819..73f63d9ecc 100644 --- a/.devcontainer/sources/Dockerfile.ChibiOS +++ b/.devcontainer/sources/Dockerfile.ChibiOS @@ -4,7 +4,8 @@ RUN apt-get update \ && apt-get install -y \ curl \ xz-utils \ - unzip + unzip \ + wget ARG GCC_URI=https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz RUN mkdir -p /tmp/dc-downloads /tmp/dc-extracted/gcc \ @@ -13,6 +14,14 @@ RUN mkdir -p /tmp/dc-downloads /tmp/dc-extracted/gcc \ && tar -xvf /tmp/dc-downloads/gcc-arm.tar -C /tmp/dc-extracted/gcc --strip-components 1 \ && rm -rf /tmp/dc-extracted/gcc/share/doc/ /tmp/dc-extracted/gcc/share/gcc-arm-none-eabi/samples/ +ARG CMAKE_SCRIPT=https://cmake.org/files/v3.24/cmake-3.24.0-linux-x86_64.sh +RUN wget $CMAKE_SCRIPT \ + -q -O /tmp/cmake-install.sh \ + && chmod u+x /tmp/cmake-install.sh \ + && mkdir /tmp/dc-extracted/cmake \ + && /tmp/cmake-install.sh --skip-license --prefix=/tmp/dc-extracted/cmake \ + && rm /tmp/cmake-install.sh + FROM ghcr.io/linuxcontainers/debian-slim:latest AS devcontainer # Avoid warnings by switching to noninteractive @@ -52,23 +61,15 @@ RUN git clone --branch mbedtls-2.28.1 https://github.com/ARMmbed/mbedtls.git --d && git clone --branch R0.14b https://github.com/abbrev/fatfs.git --depth 1 ./sources/fatfs \ && git clone --branch nf-build https://github.com/nanoframework/spiffs.git --depth 1 ./sources/spiffs -ARG CMAKE_VERSION=3.24.0 -RUN wget https://cmake.org/files/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.sh \ - -q -O /tmp/cmake-install.sh \ - && chmod u+x /tmp/cmake-install.sh \ - && mkdir /usr/bin/cmake \ - && /tmp/cmake-install.sh --skip-license --prefix=/usr/bin/cmake \ - && rm /tmp/cmake-install.sh - -ENV PATH=/usr/bin/cmake/bin:${PATH} - # set gcc location ENV ARM_GCC_PATH=/usr/local/bin/gcc ENV PATH=$ARM_GCC_PATH/bin:${PATH} # Copy from our other container COPY --from=downloader /tmp/dc-extracted/gcc $ARM_GCC_PATH -# COPY ./scripts/git-pull-repos.sh /usr/local/git-pull-repos.sh +COPY --from=downloader /tmp/dc-extracted/cmake /usr/bin/cmake + +ENV PATH=/usr/bin/cmake/bin:${PATH} # Putting hex2dfu in the container ENV HEX2DFU_PATH=/usr/local/bin/hex2dfu diff --git a/.devcontainer/sources/Dockerfile.ESP32 b/.devcontainer/sources/Dockerfile.ESP32 index 8bcac6540b..631cceb451 100644 --- a/.devcontainer/sources/Dockerfile.ESP32 +++ b/.devcontainer/sources/Dockerfile.ESP32 @@ -4,10 +4,19 @@ RUN apt-get update \ && apt-get install -y \ curl \ bzip2 \ - unzip + unzip \ + wget RUN mkdir -p /tmp/dc-downloads /tmp/dc-extracted/gcc +ARG CMAKE_SCRIPT=https://cmake.org/files/v3.24/cmake-3.24.0-linux-x86_64.sh +RUN wget $CMAKE_SCRIPT \ + -q -O /tmp/cmake-install.sh \ + && chmod u+x /tmp/cmake-install.sh \ + && mkdir /tmp/dc-extracted/cmake \ + && /tmp/cmake-install.sh --skip-license --prefix=/tmp/dc-extracted/cmake \ + && rm /tmp/cmake-install.sh + FROM ghcr.io/linuxcontainers/debian-slim:latest AS devcontainer # Avoid warnings by switching to noninteractive @@ -47,13 +56,8 @@ RUN git clone --branch v4.4.3 https://github.com/espressif/esp-idf --depth 1 --r RUN ln -fs /usr/bin/python3 /usr/bin/python \ && pip3 install pyserial -ARG CMAKE_VERSION=3.24.0 -RUN wget https://cmake.org/files/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.sh \ - -q -O /tmp/cmake-install.sh \ - && chmod u+x /tmp/cmake-install.sh \ - && mkdir /usr/bin/cmake \ - && /tmp/cmake-install.sh --skip-license --prefix=/usr/bin/cmake \ - && rm /tmp/cmake-install.sh +# copy from our other container +COPY --from=downloader /tmp/dc-extracted/cmake /usr/bin/cmake ENV PATH=/usr/bin/cmake/bin:${PATH} diff --git a/.devcontainer/sources/Dockerfile.TI b/.devcontainer/sources/Dockerfile.TI index 9961fe5aad..66a2315462 100644 --- a/.devcontainer/sources/Dockerfile.TI +++ b/.devcontainer/sources/Dockerfile.TI @@ -4,7 +4,8 @@ RUN apt-get update \ && apt-get install -y \ curl \ xz-utils \ - unzip + unzip \ + wget ARG GCC_URI=https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz RUN mkdir -p /tmp/dc-downloads /tmp/dc-extracted/gcc \ @@ -19,6 +20,14 @@ RUN mkdir -p /tmp/dc-extracted/titools \ && curl -o /tmp/dc-downloads/titools.zip $TI_TOOL_URL -L \ && unzip -d /tmp/dc-extracted/titools /tmp/dc-downloads/titools.zip +ARG CMAKE_SCRIPT=https://cmake.org/files/v3.24/cmake-3.24.0-linux-x86_64.sh +RUN wget $CMAKE_SCRIPT \ + -q -O /tmp/cmake-install.sh \ + && chmod u+x /tmp/cmake-install.sh \ + && mkdir /tmp/dc-extracted/cmake \ + && /tmp/cmake-install.sh --skip-license --prefix=/tmp/dc-extracted/cmake \ + && rm /tmp/cmake-install.sh + FROM ghcr.io/linuxcontainers/debian-slim:latest AS devcontainer # Avoid warnings by switching to noninteractive @@ -52,16 +61,6 @@ RUN git clone --branch 4.10.00.07 https://github.com/nanoframework/SimpleLink_CC && git clone --branch 1.10.0 https://github.com/nanoframework/TI_SysConfig.git --depth 1 ./sources/TI_SysConfig \ && chmod +x ./sources/TI_SysConfig/sysconfig_cli.sh -ARG CMAKE_VERSION=3.24.0 -RUN wget https://cmake.org/files/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.sh \ - -q -O /tmp/cmake-install.sh \ - && chmod u+x /tmp/cmake-install.sh \ - && mkdir /usr/bin/cmake \ - && /tmp/cmake-install.sh --skip-license --prefix=/usr/bin/cmake \ - && rm /tmp/cmake-install.sh - -ENV PATH=/usr/bin/cmake/bin:${PATH} - # set gcc location ENV ARM_GCC_PATH=/usr/local/bin/gcc ENV PATH=$ARM_GCC_PATH/bin:${PATH} @@ -69,7 +68,9 @@ ENV PATH=$ARM_GCC_PATH/bin:${PATH} # Copy from our other container COPY --from=downloader /tmp/dc-extracted/gcc $ARM_GCC_PATH COPY --from=downloader /tmp/dc-extracted/titools/xdctools_3_62_00_08_core /usr/local/bin/titools -# COPY ./scripts/git-pull-repos.sh /usr/local/git-pull-repos.sh +COPY --from=downloader /tmp/dc-extracted/cmake /usr/bin/cmake + +ENV PATH=/usr/bin/cmake/bin:${PATH} # Clean up downloaded files RUN apt-get autoremove -y \