File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,22 @@ FROM debian:buster-slim
2
2
3
3
RUN apt-get update \
4
4
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
5
- curl git \
6
- build-essential cmake ninja-build clang gcc-arm-none-eabi srecord \
7
- python3 python3-dev \
8
- python3-pip python3-setuptools python3-usb \
5
+ curl git mercurial \
6
+ build-essential cmake ninja-build clang srecord \
7
+ binutils-arm-none-eabi crossbuild-essential-armhf gcc-arm-none-eabi \
8
+ python3 python3-dev python3 -pip python3-setuptools python3-usb \
9
9
libffi-dev libssl-dev libxml2-dev \
10
10
&& rm -rf /var/lib/apt/lists/*
11
11
12
- RUN pip3 install -U yotta
12
+ RUN update-alternatives -- install /usr/bin/python python /usr/bin/python3 2
13
13
14
- RUN mkdir /yotta
15
- WORKDIR /yotta
14
+ RUN pip3 install -U mbed-cli yotta
15
+
16
+ RUN cd /tmp && mbed new test && cd test \
17
+ && pip3 install -r mbed-os/requirements.txt \
18
+ && mbed compile >/dev/null 2>&1; cd /tmp \
19
+ && rm -r /tmp/test \
20
+ && mbed config --global toolchain gcc_arm
21
+
22
+ RUN mkdir /app
23
+ WORKDIR /app
You can’t perform that action at this time.
0 commit comments