diff --git a/dockerfiles/Dockerfile b/dockerfiles/Dockerfile index 1f8ece33..d17f4027 100644 --- a/dockerfiles/Dockerfile +++ b/dockerfiles/Dockerfile @@ -15,7 +15,9 @@ RUN apt-get update && \ sudo \ ca-certificates \ keyboard-configuration \ - console-setup + console-setup \ + bc \ + unzip WORKDIR /root @@ -51,6 +53,17 @@ RUN cd chipyard && \ export MAKEFLAGS=-"j $(nproc)" && \ ./scripts/build-toolchains.sh esp-tools 1>/dev/null + +# Set up FireMarshal +SHELL ["/bin/bash", "-c"] +RUN cd chipyard && \ + source env.sh && \ + cd software/firemarshal && \ + ./init-submodules.sh && \ + pip3 install -r python-requirements.txt && \ + marshal build br-base.json + + # Run script to set environment variables on entry ENTRYPOINT ["chipyard/scripts/entrypoint.sh"] diff --git a/dockerfiles/README.md b/dockerfiles/README.md index 09ede715..887cda62 100644 --- a/dockerfiles/README.md +++ b/dockerfiles/README.md @@ -13,7 +13,8 @@ Build and Deploy the Container sudo docker tag :tag . # to tag the image after the build (ex. 0.0.3) sudo docker login # login into the account to push to sudo docker push :tag # to push to repo with tag - sudo docker run -it bash # to run an interactive version of the container + sudo docker run -it --privileged bash # to run an interactive version of the container + Path Names ----------