diff --git a/Dockerfile b/Dockerfile index 2bea73a..4c3e5fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,35 @@ +# Chipyard setup + FROM ubuntu:22.04 +SHELL ["/bin/bash", "-c"] + +# Install dependencies for ubuntu-req.sh RUN apt -qqy update && \ DEBIAN_FRONTEND=noninteractive apt install -qqy --no-install-recommends \ ca-certificates build-essential gcc g++ python3 git cmake autoconf bison flex help2man wget RUN update-ca-certificates + +WORKDIR /root +RUN apt -qqy update && \ + DEBIAN_FRONTEND=noninteractive apt install -qqy --no-install-recommends \ + ca-certificates curl build-essential git sudo pbzip2 kmod +RUN update-ca-certificates + +# Install Chipyard and run ubuntu-req.sh to install necessary dependencies +# FIXME: Using a branch, because I updated the install-conda.sh script, +# which is no longer maintained. Fix this in the future. +RUN git clone https://github.com/antmicro/chipyard.git && \ + cd chipyard && \ + git checkout mczyz/deps + +RUN ./chipyard/.github/scripts/install-conda.sh +# RUN source ~/.bashrc +# RUN bash +RUN echo "shell is "$0 +RUN ["/bin/bash", "--login", "-c", "conda activate base"] +RUN ["/bin/bash", "--login", "-c", "cd chipyard && ./build-setup.sh riscv-tools -s 6 -s 7 -s 8 -s 9"] +RUN ["/bin/bash", "--login", "-c", "cd chipyard && source ./env.sh"] + +ENTRYPOINT ["chipyard/scripts/entrypoint.sh"] +