-
Notifications
You must be signed in to change notification settings - Fork 0
feat(dockercache): add registry blob storage option #438
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
base: devel
Are you sure you want to change the base?
Conversation
🤖 Pull Request Artifacts (#15486533007) 🎉 |
615eac1
to
74de440
Compare
dde2dc4
to
481dd5f
Compare
@@ -98,6 +98,8 @@ definitions: | |||
type: string | |||
registryURL: | |||
type: string | |||
dataDirectory: | |||
type: string |
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.
todo: Add the default value in the schema.
default=(), | ||
help="Registry data directory path (default: /opt/rapyuta/volumes/docker-cache/)", |
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.
todo: Specify the value in the default field and remove from the help. The Click library automatically displays the default value.
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.
Pull Request Overview
Adds support for specifying a custom data directory for the Docker cache registry.
- Introduce
--data-directory
CLI flag fordockercache
- Include
dataDirectory
in the API payload and JSON schema - Update example manifest with the new field
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
riocli/project/features/dockercache.py | Adds --data-directory option and passes it in payload |
riocli/jsonschema/schemas/project-schema.yaml | Declares dataDirectory property in project schema |
riocli/apply/manifests/project.yaml | Adds dataDirectory to example project manifest |
Comments suppressed due to low confidence (3)
riocli/jsonschema/schemas/project-schema.yaml:101
- The new
dataDirectory
schema entry lacks a description; addingdescription: 'Path to registry data directory'
will improve clarity for consumers.
dataDirectory:
riocli/apply/manifests/project.yaml:29
- [nitpick] This example path (
/opt/rapyuta/volumes/
) differs from the help text default (/opt/rapyuta/volumes/docker-cache/
); consider aligning them to avoid confusion.
dataDirectory: "/opt/rapyuta/volumes/"
riocli/project/features/dockercache.py:56
- Add or update CLI tests to cover the new
--data-directory
flag and ensure it’s passed correctly in the request payload.
--data-directory
481dd5f
to
9602b50
Compare
resolves https://github.com/rapyuta-robotics/rapyuta_io/issues/742