diff --git a/Dockerfile b/Dockerfile index 0b1a92b..66ae5ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ ENV LC_ALL=C.UTF-8 RUN apt-get update \ && apt-get install -y --no-install-recommends \ binutils-arm-none-eabi \ + build-essential \ ca-certificates \ curl \ gcc-arm-none-eabi \ @@ -15,6 +16,7 @@ RUN apt-get update \ mercurial \ patch \ python3 \ + python3-dev \ python3-pip \ python3-setuptools \ python3-wheel \ @@ -30,7 +32,11 @@ RUN curl -fsSL "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-l ENV PATH=/opt/node/bin:${PATH} -RUN python3 -m pip install --no-cache-dir "mbed-cli==1.10.5" +COPY mbed-os-5.15-requirements.txt /tmp/mbed-os-5.15-requirements.txt + +RUN python3 -m pip install --no-cache-dir --default-timeout=100 --retries 10 "mbed-cli==1.10.5" \ + && python3 -m pip install --no-cache-dir --default-timeout=100 --retries 10 -r /tmp/mbed-os-5.15-requirements.txt \ + && rm /tmp/mbed-os-5.15-requirements.txt RUN arm-none-eabi-gcc --version \ && python3 --version \ diff --git a/mbed-os-5.15-requirements.txt b/mbed-os-5.15-requirements.txt new file mode 100644 index 0000000..812d506 --- /dev/null +++ b/mbed-os-5.15-requirements.txt @@ -0,0 +1,32 @@ +colorama==0.3.9 +urllib3[secure]==1.24.2 +prettytable==0.7.2 +junit-xml==1.8 +pyyaml==4.2b1 +jsonschema==2.6.0 +future==0.16.0 +six==1.12.0 +mbed-cloud-sdk>=2.0.6,<2.1 +requests>=2.20,<2.21 +idna>=2,<2.8 +pyserial>=3,<=3.4 +Jinja2>=2.10.1,<2.11 +MarkupSafe<2.1 +intelhex>=1.3,<=2.2.1 +mbed-ls>=1.5.1,<1.8 +mbed-host-tests>=1.4.4,<1.6 +mbed-greentea>=0.2.24,<1.8 +beautifulsoup4>=4,<=4.6.3 +pyelftools>=0.24,<=0.25 +manifest-tool==1.5.2 +icetea>=1.2.1,<1.3 +pycryptodome>=3.9.3,<4 +pyusb>=1.0.0,<2.0.0 +hidapi>=0.7.99,<0.8.0;platform_system!="Linux" +cmsis-pack-manager>=0.2.3,<0.3.0 +pywin32==224;platform_system=="Windows" +wmi==1.4.9;platform_system=="Windows" +psutil==5.6.6 +cryptography>=2.5,<3 +Click>=7.0,<7.1 +cbor>=1.0.0