Skip to content
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

Generify docker container to not hardcode /firecracker paths #4714

Merged
merged 5 commits into from
Aug 1, 2024

Conversation

roypat
Copy link
Contributor

@roypat roypat commented Jul 31, 2024

Update the docker container to not hardcode /firecracker as the root of all paths. Instead, use the --workdir option. Also use --volume instead of symlinks inside of the dockerfile to point the cargo registry toward firecracker/build/cargo_{git_registry,registry}. This is needed because we want to use this docker container to run fuzzers which we keep in a different (private) repository.

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license. For more information on following Developer
Certificate of Origin and signing off your commits, please check
CONTRIBUTING.md.

PR Checklist

  • If a specific issue led to this PR, this PR closes the issue.
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this
    PR.
  • API changes follow the Runbook for Firecracker API changes.
  • User-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.
  • New TODOs link to an issue.
  • Commits meet
    contribution quality standards.

  • This functionality cannot be added in rust-vmm.

utilifies -> utilities (e.g. replace the 'f' with a 't').

Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
Used to run cargo-afl based fuzzers.

Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
Remove all hardcoded paths that start with /firecracker from the docker
container such that it can be used outside of the firecracker
repository.

Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
bump the devctr version from v73 to v74

Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
Copy link

codecov bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.97%. Comparing base (a00e50a) to head (6cf6df8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4714      +/-   ##
==========================================
- Coverage   82.85%   81.97%   -0.88%     
==========================================
  Files         254      254              
  Lines       30807    31169     +362     
==========================================
+ Hits        25524    25552      +28     
- Misses       5283     5617     +334     
Flag Coverage Δ
5.10-c5n.metal 81.99% <ø> (-0.95%) ⬇️
5.10-m5n.metal 81.97% <ø> (-0.96%) ⬇️
5.10-m6a.metal 81.28% <ø> (-0.98%) ⬇️
5.10-m6g.metal 79.01% <ø> (-1.04%) ⬇️
5.10-m6i.metal 81.97% <ø> (-0.96%) ⬇️
5.10-m7g.metal 79.01% <ø> (-1.04%) ⬇️
6.1-c5n.metal 81.99% <ø> (-0.96%) ⬇️
6.1-m5n.metal 81.97% <ø> (-0.96%) ⬇️
6.1-m6a.metal 81.27% <ø> (-0.98%) ⬇️
6.1-m6g.metal 79.01% <ø> (-1.04%) ⬇️
6.1-m6i.metal 81.97% <ø> (-0.96%) ⬇️
6.1-m7g.metal 79.01% <ø> (-1.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@roypat roypat marked this pull request as ready for review July 31, 2024 16:30
@roypat roypat added the Status: Awaiting review Indicates that a pull request is ready to be reviewed label Jul 31, 2024
@roypat roypat merged commit f7bee6b into firecracker-microvm:main Aug 1, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting review Indicates that a pull request is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants