-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (33 loc) · 1.24 KB
/
Dockerfile
File metadata and controls
41 lines (33 loc) · 1.24 KB
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
FROM ubuntu:22.04
WORKDIR /root
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=US
SHELL ["/bin/bash", "-c"]
RUN apt-get -y update && \
apt-get install -y wget git make autoconf gcc lsb-release && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" && \
bash Miniforge3-$(uname)-$(uname -m).sh -b -p conda
ENV PATH /root/conda/bin:$PATH
RUN conda install -y -n base conda-libmamba-solver && \
conda config --set solver libmamba && \
conda install -y -n base conda-lock==1.4.0
RUN git clone https://github.com/ucb-bar/chipyard.git && \
cd chipyard && \
git checkout 1.9.1 && \
./build-setup.sh riscv-tools -s 4 -s 5 -s 6 -s 7 -s 8 -s 9 && \
source $(conda info --base)/etc/profile.d/conda.sh &&\
source env.sh &&\
cd generators/gemmini && \
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" && \
git fetch && git checkout v0.7.1 && \
git submodule update --init --recursive && \
./scripts/build-spike.sh && \
cd ../.. && \
rm -rf generators && \
rm -rf toolchains && \
rm -rf .git && \
rm -rf tags && \
conda clean -afy && \
rm -rf /root/.cache /tmp/*