🔨 Improve Docker local tests support (#25583)

This commit is contained in:
John Unland
2023-03-28 23:23:27 -05:00
committed by Sven Soost
parent 90474c2553
commit be8cc5c4fe
6 changed files with 50 additions and 47 deletions

View File

@@ -1,7 +1,24 @@
FROM python:3.9.0-buster
RUN pip install -U platformio
# Disable warnings about not having a TTY
ARG DEBIAN_FRONTEND=noninteractive
# Disable debconf warnings
ARG DEBCONF_NOWARNINGS="yes"
# Upgrade pip
RUN pip install --upgrade pip
# Install platformio toolchain / framework and pyyaml
RUN pip install -U platformio PyYaml
# Upgrade platformio using development version / branch
RUN pio upgrade --dev
# To get the test platforms
RUN pip install PyYaml
# Set working directory
WORKDIR /code
# Set volumes / mount points that we are using
VOLUME /code /root/.platformio
#ENV PATH /code/buildroot/bin/:/code/buildroot/tests/:${PATH}