Skip to content

Commit a14b181

Browse files
authored
Merge pull request #10 from sysprog21/preload
Preload Chisel dependencies to shorten first-run
2 parents e58b468 + 228a6bd commit a14b181

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Dockerfile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,18 @@ RUN \
8686
--default=true \
8787
-o almond && \
8888
./almond --install --global && \
89+
# Preload Chisel dependencies to avoid first-run delay before removing coursier
90+
./coursier fetch \
91+
edu.berkeley.cs:chisel3_2.12:3.6.1 \
92+
edu.berkeley.cs:chisel-iotesters_2.12:2.5.6 \
93+
edu.berkeley.cs:chiseltest_2.12:0.6.1 \
94+
edu.berkeley.cs:dsptools_2.12:1.5.6 \
95+
edu.berkeley.cs:rocket-dsptools_2.12:1.2.0 \
96+
org.scalanlp:breeze_2.12:1.0 \
97+
org.scalatest:scalatest_2.12:3.2.2 \
98+
--cache /coursier_cache && \
8999
rm -rf almond coursier /root/.cache/coursier
90100

91-
# Execute a notebook to ensure Chisel is downloaded into the image for offline work
92-
# Disabled: dotvisualizer has JSON4s compatibility issues with Chisel 3.6
93-
# Dependencies are already cached via coursier bootstrap above
94-
# RUN jupyter nbconvert --to notebook --output=/tmp/0_demo --execute 0_demo.ipynb
95-
96101
# Last stage
97102
FROM base AS final
98103

0 commit comments

Comments
 (0)