fix(docker): fix docker image build by moving MILL_OUTPUT_DIR to tmpfs (#4679)
EMU Test / Changes Detection (push) Has been cancelled
Details
Release Jobs / build-xsdev-image (push) Has been cancelled
Details
EMU Test / Generate Verilog (push) Has been cancelled
Details
EMU Test / EMU - Basics (push) Has been cancelled
Details
EMU Test / EMU - CHI (push) Has been cancelled
Details
EMU Test / Docker Build (push) Has been cancelled
Details
EMU Test / EMU - Performance (push) Has been cancelled
Details
EMU Test / EMU - MC (push) Has been cancelled
Details
EMU Test / SIMV - Basics (push) Has been cancelled
Details
EMU Test / Upload Artifacts (push) Has been cancelled
Details
EMU Test / Check Submodules (push) Has been cancelled
Details
EMU Test / Check Format (push) Has been cancelled
Details
EMU Test / Changes Detection (push) Has been cancelled
Details
Release Jobs / build-xsdev-image (push) Has been cancelled
Details
EMU Test / Generate Verilog (push) Has been cancelled
Details
EMU Test / EMU - Basics (push) Has been cancelled
Details
EMU Test / EMU - CHI (push) Has been cancelled
Details
EMU Test / Docker Build (push) Has been cancelled
Details
EMU Test / EMU - Performance (push) Has been cancelled
Details
EMU Test / EMU - MC (push) Has been cancelled
Details
EMU Test / SIMV - Basics (push) Has been cancelled
Details
EMU Test / Upload Artifacts (push) Has been cancelled
Details
EMU Test / Check Submodules (push) Has been cancelled
Details
EMU Test / Check Format (push) Has been cancelled
Details
Signed-off-by: Jiuyue Ma <majiuyue@bosc.ac.cn>
This commit is contained in:
parent
feddbab36a
commit
0c97e1df83
|
@ -1,3 +1,4 @@
|
|||
# ignore temporary files for docker build
|
||||
out/
|
||||
build/
|
||||
.docker-mill-out/
|
||||
|
|
|
@ -42,6 +42,6 @@ RUN git config --global --add safe.directory '*'
|
|||
# download dependencies
|
||||
#
|
||||
RUN --mount=type=bind,source=.,target=/work,readonly \
|
||||
--mount=type=tmpfs,destination=/work/out,rw <<EOF
|
||||
make deps
|
||||
--mount=type=tmpfs,destination=/tmp/.mill-out,rw <<EOF
|
||||
make deps MILL_OUTPUT_DIR=/tmp/.mill-out
|
||||
EOF
|
||||
|
|
|
@ -48,7 +48,6 @@ __prep_proxy: .mill-jvm-opts
|
|||
|
||||
# build docker image
|
||||
image: $(if $(HTTP_PROXY),__prep_proxy) init
|
||||
@mkdir -p out $(MILL_OUTPUT_DIR)
|
||||
@docker build -t $(XSDEV_IMAGE) \
|
||||
$(if $(HTTP_PROXY),--build-arg HTTP_PROXY=$(HTTP_PROXY) \
|
||||
--build-arg HTTPS_PROXY=$(HTTP_PROXY)) . \
|
||||
|
|
Loading…
Reference in New Issue