Use lockfiles for conda

This commit is contained in:
Abraham Gonzalez
2022-09-01 00:45:41 +00:00
parent 93af50b86e
commit 3f91502a04
11 changed files with 6271 additions and 66 deletions

View File

@@ -38,17 +38,12 @@ FROM base as base-with-tools
SHELL ["/bin/bash", "-cl"]
RUN conda env create -f ./chipyard/scripts/conda-requirements.yaml
# Install riscv-tools
RUN conda install -n chipyard -c ucb-bar ucb-bar-riscv-tools
SHELL ["/opt/conda/bin/conda", "run", "-n", "chipyard", "/bin/bash", "-cl"]
# Init submodules
# Initialize repo
RUN cd chipyard && \
export MAKEFLAGS=-"j $(nproc)" && \
./scripts/init-submodules-no-riscv-tools.sh --skip-validate 1>/dev/null
./setup.sh --env-name chipyard --skip-validate
SHELL ["/opt/conda/bin/conda", "run", "-n", "chipyard", "/bin/bash", "-cl"]
# Set up FireMarshal. Building and cleaning br-base.json builds the underlying
# buildroot image (which takes a long time) but doesn't keep all the br-base