blob: f76c51588fa43f79559b9863322b562e832be725 [file] [log] [blame]
Mate Toth-Pal5495f202020-07-16 08:33:48 +02001# Copyright (c) 2020 Arm Limited
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15FROM ubuntu:focal
16
17# get dependencies for retrieving and building TF-M with MCUBoot, and QEMU.
18RUN apt-get update && \
19 DEBIAN_FRONTEND="noninteractive" \
20 apt-get install -y \
21 cmake \
22 curl \
23 gcc-arm-none-eabi \
24 gdb-multiarch \
25 git \
26 libncurses5 \
27 python3 \
28 python3-pip \
29 qemu-system-arm
30
31RUN \
32 # installing python packages
33 python3 -m pip install \
Fabio Utziga069bef2020-12-14 17:10:15 -030034 imgtool==1.7.0 \
Mate Toth-Pal5495f202020-07-16 08:33:48 +020035 Jinja2==2.10 \
36 PyYAML==3.12 \
37 pyasn1==0.1.9
38
Fabio Utziga069bef2020-12-14 17:10:15 -030039# Add tfm work directory
40RUN mkdir -p /root/work/tfm
Mate Toth-Pal5495f202020-07-16 08:33:48 +020041
42# run the command
Fabio Utziga069bef2020-12-14 17:10:15 -030043CMD ["bash"]