-
Notifications
You must be signed in to change notification settings - Fork 939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DO NOT MERGE] v050 testplan backport #3439
Conversation
@thomaseizinger Can you take a look? If this looks good we should port the relevant changes to the master branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of questions, otherwise LGTM. I already have backport PRs open. Do you mind just opening a PR to master? We can merge that separately and I'll backport it to the releases later.
WORKDIR /workspace | ||
ADD . . | ||
RUN --mount=type=cache,target=./target \ | ||
--mount=type=cache,target=/usr/local/cargo/registry \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What exactly is the cache referenced here? Old layers that don't match exactly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a fairly new cool feature. It is a cache that is saved separate from layers. So even if the earlier layers get rebuilt we still persist our cargo and build cache. So builds will be just be fast without any tricks. https://docs.docker.com/engine/reference/builder/#run---mount
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is amazing! Thank for your introducing me to this feature, that is indeed a godsend for Rust-based containers!
@@ -0,0 +1,20 @@ | |||
# syntax=docker/dockerfile:1.5-labs | |||
FROM rust:1.67.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be a multi-stage dockerfile?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, but why? We aren't pushing this to a registry or uploading/downloading the image somewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right and we need to pull all layers anyway so I guess it doesn't matter!
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
Sounds good |
Description
Updates the test implementation to follow the new spec.
Updates the dockerfile so it can be built by anyone, not just linux folks
In draft to fiddle with CI.