diff --git a/.devcontainer/sources/Dockerfile.All b/.devcontainer/sources/Dockerfile.All index 9cb113cdd4..868d327c71 100644 --- a/.devcontainer/sources/Dockerfile.All +++ b/.devcontainer/sources/Dockerfile.All @@ -1,4 +1,4 @@ -FROM ghcr.io/linuxcontainers/debian-slim:latest AS downloader +FROM ubuntu:latest AS downloader RUN apt-get update \ && apt-get -y install --no-install-recommends apt-utils \ && apt-get install -y \ @@ -28,7 +28,7 @@ RUN wget $CMAKE_SCRIPT \ && /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 +FROM ubuntu:latest AS devcontainer # Avoid warnings by switching to noninteractive ENV DEBIAN_FRONTEND=noninteractive @@ -50,11 +50,16 @@ RUN apt-get update \ curl \ ninja-build \ srecord \ - python3 \ - python3-pip \ nodejs \ libffi-dev +# Set Python 10 as the default version +RUN apt-get install -y software-properties-common \ + && add-apt-repository ppa:deadsnakes/ppa \ + && apt-get update \ + && apt-get install -y python3.10 \ + python3-pip + # Create needed directories RUN mkdir -p /usr/local/bin/gcc \ && mkdir -p /usr/local/bin/titools @@ -118,7 +123,8 @@ RUN ln -fs /usr/bin/python3 /usr/bin/python \ # Install ESP-IDF ENV IDF_PATH=/sources/esp-idf ENV ESP_PATCH_VER=esp-2021r2-patch5-8.4.0 -RUN python -m pip install -r $IDF_PATH/requirements.txt +# This is now taking care in the following line +# RUN python -m pip install -r $IDF_PATH/requirements.txt RUN $IDF_PATH/install.sh ENV PATH=$PATH:\ diff --git a/.devcontainer/sources/Dockerfile.ESP32 b/.devcontainer/sources/Dockerfile.ESP32 index d879b34b1e..de459c9d5b 100644 --- a/.devcontainer/sources/Dockerfile.ESP32 +++ b/.devcontainer/sources/Dockerfile.ESP32 @@ -1,4 +1,4 @@ -FROM ghcr.io/linuxcontainers/debian-slim:latest AS downloader +FROM ubuntu:latest AS downloader RUN apt-get update \ && apt-get -y install --no-install-recommends apt-utils \ && apt-get install -y \ @@ -17,7 +17,7 @@ RUN wget $CMAKE_SCRIPT \ && /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 +FROM ubuntu:latest AS devcontainer # Avoid warnings by switching to noninteractive ENV DEBIAN_FRONTEND=noninteractive @@ -37,11 +37,16 @@ RUN apt-get update \ curl \ ninja-build \ srecord \ - python3 \ - python3-pip \ nodejs \ libffi-dev +# Set Python 10 as the default version +RUN apt-get install -y software-properties-common \ + && add-apt-repository ppa:deadsnakes/ppa \ + && apt-get update \ + && apt-get install -y python3.10 \ + python3-pip + # Create needed directories RUN mkdir -p /usr/local/bin/gcc @@ -63,7 +68,8 @@ 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 -RUN python -m pip install -r $IDF_PATH/requirements.txt +# This is now taking care in the following line +# RUN python -m pip install -r $IDF_PATH/requirements.txt RUN $IDF_PATH/install.sh ENV PATH=$PATH:\