ci: remove IOx pre-building in rust build container

Stops adding the IOx source code and performing a cargo build/test/clippy each
night. Previously this build would compile the IOx source & dependencies,
populating the incremental build cache and allowing builds that used the same
dependencies to complete quicker. This build caching was moved to
per-dependency-set caching in #496, and this pre-build is no longer used.

This should reduce the build image size substantially, making the whole CI
process a bit faster.
pull/24376/head
Dom 2020-12-03 11:58:13 +00:00
parent a088f33c35
commit 7136e5853a
1 changed files with 0 additions and 14 deletions

View File

@ -61,18 +61,4 @@ RUN groupadd -g 1500 rust \
USER rust
ENV PATH /home/rust/.local/bin:/home/rust/bin:${PATH}
# Copy the source into the image
ADD . /home/rust/project
RUN sudo chown -R rust:rust /home/rust/project
RUN sudo chmod u+rwx /home/rust/project
RUN cd /home/rust/project && git checkout main && git reset --hard
# Compile the code and bake the results into the image, so actual CI
# builds are just incremental builds from the last time the image was
# made.
RUN cd /home/rust/project && cargo build --all && \
cargo clippy && \
cargo test --no-run
CMD ["/bin/bash"]