Skip to content

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

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

guptadev21
Copy link
Member

@guptadev21 guptadev21 self-assigned this May 19, 2025
@guptadev21 guptadev21 requested review from a team as code owners May 19, 2025 02:15
@guptadev21 guptadev21 added the type/feature ✨ A new feature that currently doesn't exist in the product label May 19, 2025
Copy link

github-actions bot commented May 19, 2025

🤖 Pull Request Artifacts (#15486533007) 🎉

@guptadev21 guptadev21 force-pushed the feat/registry-blobstorage branch from 615eac1 to 74de440 Compare May 27, 2025 06:02
@guptadev21 guptadev21 force-pushed the feat/registry-blobstorage branch 2 times, most recently from dde2dc4 to 481dd5f Compare June 3, 2025 10:24
@@ -98,6 +98,8 @@ definitions:
type: string
registryURL:
type: string
dataDirectory:
type: string
Copy link
Member

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.

Comment on lines 58 to 59
default=(),
help="Registry data directory path (default: /opt/rapyuta/volumes/docker-cache/)",
Copy link
Member

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.

@ankitrgadiya ankitrgadiya requested a review from Copilot June 6, 2025 08:22
Copy link

@Copilot Copilot AI left a 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 for dockercache
  • 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; adding description: '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

@guptadev21 guptadev21 force-pushed the feat/registry-blobstorage branch from 481dd5f to 9602b50 Compare June 6, 2025 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature ✨ A new feature that currently doesn't exist in the product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants