Skip to content

Commit

Permalink
Improve container build time and disk usage when paused (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin authored Mar 1, 2024
1 parent a30ed3e commit 51df7ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ RUN apt-get update && apt-get install -y curl build-essential && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
sh -s -- --default-toolchain=nightly --component=miri --component=rust-src --profile=minimal -y && \
cargo install --git https://github.com/saethlin/miri-tools cargo-download inapty get-args && \
cargo install cargo-nextest --locked && \
cargo install --git https://github.com/RalfJung/cargo-careful --rev 7fa90c6 cargo-careful && \
curl -L https://get.nexte.st/latest/linux | tar zxf - && mv cargo-nextest /root/.cargo/bin/ && \
rm -rf /var/lib/apt/lists/*

COPY nextest.toml /root/.cargo/nextest.toml
Expand Down
2 changes: 2 additions & 0 deletions docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,6 @@ do
fi
fi
echo "-${TEST_END_DELIMITER}-"
# Delete everything in our writable mount points
find /build /tmp /root/.cargo/registry -mindepth 1 -delete
done < /dev/stdin

0 comments on commit 51df7ce

Please sign in to comment.