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

Signed-off-by: Jiuyue Ma <majiuyue@bosc.ac.cn>
This commit is contained in:
Jiuyue Ma 2025-05-10 14:22:26 +08:00 committed by GitHub
parent feddbab36a
commit 0c97e1df83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,4 @@
# ignore temporary files for docker build # ignore temporary files for docker build
out/
build/ build/
.docker-mill-out/ .docker-mill-out/

View File

@ -42,6 +42,6 @@ RUN git config --global --add safe.directory '*'
# download dependencies # download dependencies
# #
RUN --mount=type=bind,source=.,target=/work,readonly \ RUN --mount=type=bind,source=.,target=/work,readonly \
--mount=type=tmpfs,destination=/work/out,rw <<EOF --mount=type=tmpfs,destination=/tmp/.mill-out,rw <<EOF
make deps make deps MILL_OUTPUT_DIR=/tmp/.mill-out
EOF EOF

View File

@ -48,7 +48,6 @@ __prep_proxy: .mill-jvm-opts
# build docker image # build docker image
image: $(if $(HTTP_PROXY),__prep_proxy) init image: $(if $(HTTP_PROXY),__prep_proxy) init
@mkdir -p out $(MILL_OUTPUT_DIR)
@docker build -t $(XSDEV_IMAGE) \ @docker build -t $(XSDEV_IMAGE) \
$(if $(HTTP_PROXY),--build-arg HTTP_PROXY=$(HTTP_PROXY) \ $(if $(HTTP_PROXY),--build-arg HTTP_PROXY=$(HTTP_PROXY) \
--build-arg HTTPS_PROXY=$(HTTP_PROXY)) . \ --build-arg HTTPS_PROXY=$(HTTP_PROXY)) . \