-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
76 lines (60 loc) · 2.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
FROM ubuntu:22.04 AS builder
ENV INST 'apt-get install -y --no-install-recommends'
ENV PIPINST 'python3 -m pip install --no-cache-dir --upgrade'
RUN apt-get update && $INST \
build-essential \
git \
libpython3-dev \
python3 \
python3-dev \
python3-pip \
wget \
&& apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/*
COPY ./third-party/iree-rv32-springbok/build_tools /build_tools
COPY ./requirements.txt /build_tools
COPY ./third-party/kenning /build_tools/kenning
WORKDIR /build_tools
RUN $PIPINST pip setuptools wheel
RUN $PIPINST -r requirements.txt
RUN ./install_toolchain.sh toolchain_backups/toolchain_iree_rv32_20220307.tar.gz
RUN ./download_iree_compiler.py
RUN pip3 install /build_tools/kenning[tensorflow,reports,uart,renode,object_detection]
FROM ubuntu:22.04
ENV INST 'apt-get install -y --no-install-recommends'
ENV PIPINST 'python3 -m pip install --no-cache-dir --upgrade'
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && $INST \
build-essential \
cmake \
fonts-lato \
git \
git-lfs \
libglfw3 \
libglfw3-dev \
libglib2.0-0 \
libpython3-dev \
libtinfo5 \
mono-complete=6.8.0.105+dfsg-3.2 \
ninja-build \
python3 \
python3-dev \
python3-pip \
python3-venv \
ruby \
wget \
xxd \
&& apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/*
COPY --from=builder /build_tools/build/iree_compiler/ /usr/local/iree_compiler
COPY --from=builder /build_tools/build/toolchain_iree_rv32imf /usr/local/toolchain_iree_rv32imf
COPY --from=builder /usr/local /usr/local
RUN $PIPINST \
git+https://github.com/antmicro/renode-run \
iree-compiler~=20230209.425 \
iree-runtime~=20230209.425 \
iree-tools-tf~=20230209.425 \
iree-tools-tflite~=20230209.425 \
jupyter-book
RUN gem install ceedling
RUN mkdir -p /opt/renode && \
wget -O /opt/renode/renode-latest.pkg.tar.gz https://builds.renode.io/renode-latest.pkg.tar.xz
ENV PYRENODE_PKG /opt/renode/renode-latest.pkg.tar.gz