From 6fd8f6d63235431c97b69bfc5c98dd27e8b84e57 Mon Sep 17 00:00:00 2001 From: Beslan Date: Mon, 1 Jun 2026 20:17:06 +0300 Subject: [PATCH] Add Mbed GCC 9 CI image --- .dockerignore | 2 ++ Dockerfile | 30 ++++++++++++++++++++++++++++++ README.md | 24 ++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 README.md diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..35cdaf3 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.git +README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..504ef6e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +FROM ubuntu:20.04 + +ENV DEBIAN_FRONTEND=noninteractive +ENV LANG=C.UTF-8 +ENV LC_ALL=C.UTF-8 + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + binutils-arm-none-eabi \ + ca-certificates \ + curl \ + gcc-arm-none-eabi \ + git \ + make \ + mercurial \ + patch \ + python3 \ + python3-pip \ + python3-setuptools \ + python3-wheel \ + unzip \ + && rm -rf /var/lib/apt/lists/* + +RUN python3 -m pip install --no-cache-dir "mbed-cli==1.10.5" + +RUN arm-none-eabi-gcc --version \ + && python3 --version \ + && mbed --version + +WORKDIR /workspace diff --git a/README.md b/README.md new file mode 100644 index 0000000..eae44e0 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# docker-mbed-gcc9 + +Reusable CI image for Mbed OS 5 firmware builds. + +Published image: + +```text +git.tbeslan.ru/beslan/mbed-gcc9:mbed-os5 +``` + +Installed tools: + +- Ubuntu 20.04 +- Python 3 +- `mbed-cli==1.10.5` +- `gcc-arm-none-eabi` from Ubuntu 20.04 packages +- `make`, `patch`, `git`, `mercurial`, `curl`, `unzip` + +Build and push: + +```sh +docker build -t git.tbeslan.ru/beslan/mbed-gcc9:mbed-os5 . +docker push git.tbeslan.ru/beslan/mbed-gcc9:mbed-os5 +```