Skip to content

docs: add ModelPack to Harbor push guide with modctl#72

Open
leopardx602 wants to merge 1 commit intomainfrom
modelpack
Open

docs: add ModelPack to Harbor push guide with modctl#72
leopardx602 wants to merge 1 commit intomainfrom
modelpack

Conversation

@leopardx602
Copy link
Copy Markdown

Complete documentation for packaging models as OCI artifacts and pushing to Harbor registry, including Robot Account setup, Docker configuration, and troubleshooting.

Complete documentation for packaging models as OCI artifacts and pushing to Harbor registry, including Robot Account setup, Docker configuration, and troubleshooting.
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new documentation guide for packaging and pushing ModelPacks to Harbor using modctl. Feedback focuses on improving the visual presentation by utilizing Starlight components like <Steps> and <Aside>, clarifying Docker configuration file locations, and ensuring consistent project naming across all examples.

Comment on lines +25 to +27
1. In the **OtterScale** UI, locate the left-side navigation bar.
2. Click **Registry**.
3. You will be redirected to the Harbor UI associated with your OtterScale environment.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since the Steps component is already imported, it should be used to wrap numbered lists to provide a better visual representation of the workflow in the Starlight theme. This should also be applied to other multi-step lists in the document.

<Steps>
1. In the **OtterScale** UI, locate the left-side navigation bar.
2. Click **Registry**.
3. You will be redirected to the Harbor UI associated with your OtterScale environment.
</Steps>

2. Click **Registry**.
3. You will be redirected to the Harbor UI associated with your OtterScale environment.

> OtterScale uses Harbor as its OCI registry for storing model artifacts such as ModelPack.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Use the <Aside> component instead of a standard blockquote for better visual integration and to match the existing imports.

<Aside type="note">
  OtterScale uses Harbor as its OCI registry for storing model artifacts such as ModelPack.
</Aside>

- **Username** (for example: `robot$my_project+modctl-pusher`)
- **Token (Password)**

> ⚠️ The token is shown only once. Make sure to copy and store it securely.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This security warning is important. Using <Aside type="caution"> will make it much more prominent and consistent with the documentation style. The emoji can be removed as the component provides its own icon.

<Aside type="caution">
  The token is shown only once. Make sure to copy and store it securely.
</Aside>


### Note for HTTP Harbor Registries

If your Harbor registry is **HTTP-only**, ensure it is configured as an insecure registry in Docker:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

It is helpful to specify that this configuration belongs in the Docker daemon.json file and mention its typical location (e.g., /etc/docker/daemon.json on Linux or via Docker Desktop settings).

### Example

```bash
modctl build -t 127.0.0.1:32180/my_projects/my_project001:0.1.0 .
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The project name my_projects/my_project001 is inconsistent with the robot account example my_project used in Step 3. Using a consistent project name like my_project/my-model throughout the guide prevents confusion.

modctl build -t 127.0.0.1:32180/my_project/my-model:0.1.0 .

### Example

```bash
modctl push 127.0.0.1:32180/my_projects/my_project001:0.1.0
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Update this example to match the project name used in the previous steps for consistency.

modctl push 127.0.0.1:32180/my_project/my-model:0.1.0

If your Harbor registry uses HTTP, include:

```bash
modctl push --plain-http 127.0.0.1:32180/my_projects/my_project001:0.1.0
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Update this example to match the project name used in the previous steps for consistency.

modctl push --plain-http 127.0.0.1:32180/my_project/my-model:0.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant