-
Notifications
You must be signed in to change notification settings - Fork 0
Feat demo #63
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
Feat demo #63
Conversation
…tgreSQL deployments
Summary of ChangesHello @KUASWoodyLIN, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a new, detailed documentation guide for provisioning and managing Virtual Machines within the OtterScale cluster. To integrate this new content seamlessly, several existing demo documentation files have been systematically renamed and their internal links updated to maintain consistent navigation and a logical ordering of demo guides. The titles within these documents have also been standardized for clarity. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request introduces a new documentation page for a Virtual Machine demo and reorganizes the existing demo pages by renumbering them. The changes are mostly to markdown files.
My review has identified a few issues:
- Security Concern: The new
01-virtual-machine.mdxguide includes a hardcoded weak password and passwordlesssudoconfiguration in itscloud-initexample. This is a security risk and promotes poor practices. I've left comments with suggestions to improve this by recommending SSH keys or at least prompting the user for a strong password. - Broken Links: Several demo files have been renamed and renumbered, but the
LinkCardcomponents in02-coder.mdxand03-jupyterhub.mdxhave not been updated correctly, leading to broken links. I've suggested corrections for these. - File Renaming Inconsistency: There seems to be an inconsistency in file numbering. For example,
03-postgres.mdxwas renamed to05-postgres.mdx, while04-llm-model.mdxwas not renamed, creating a gap in numbering and potential confusion. The links in other files also reflect this confusion. It would be good to ensure the numbering is sequential and links are updated accordingly across all files.
Please address the security issue and fix the broken links. A consistent file numbering scheme would also improve maintainability.
| #cloud-config | ||
| users: | ||
| - name: phison | ||
| sudo: ['ALL=(ALL) NOPASSWD:ALL'] | ||
| groups: sudo | ||
| shell: /bin/bash | ||
| chpasswd: | ||
| list: | | ||
| phison:phison_8299 | ||
| expire: false | ||
| ssh_pwauth: true |
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.
The cloud-config example contains a hardcoded weak password (phison_8299) and grants passwordless sudo (NOPASSWD:ALL). This is a significant security risk and promotes insecure practices, even in a demo environment.
Please update this section to guide users to create a strong password and to remove passwordless sudo. I've provided a suggestion to fix this. It's also good practice to add a note recommending SSH keys for production environments.
#cloud-config
users:
- name: phison
sudo: ['ALL=(ALL) ALL'] # Require password for sudo
groups: sudo
shell: /bin/bash
chpasswd:
list: |
phison:<YOUR_STRONG_PASSWORD> # Replace with a strong password
expire: false
ssh_pwauth: true
| - Or use VNC to connect directly through the web interface | ||
| - Login credentials: | ||
| - **Username**: `phison` | ||
| - **Password**: `phison_8299` |
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.
| <LinkCard title="PostgreSQL Demo" href="/demos/04-postgres/" description="Learn how to deploy PostgreSQL database and test read/write operations with Python." /> | ||
|
|
||
| <LinkCard title="LLM Model Demo" href="/demos/04-llm-model/" description="Learn how to deploy and configure language model applications." /> | ||
| <LinkCard title="LLM Model Demo" href="/demos/05-llm-model/" description="Learn how to deploy and configure language model applications." /> |
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.
The links to other demos appear to be incorrect due to file renumbering. Based on the file structure in this PR, PostgreSQL Demo is at 05-postgres and LLM Model Demo is at 04-llm-model. Please update the href attributes to point to the correct paths.
<LinkCard title="PostgreSQL Demo" href="/demos/05-postgres/" description="Learn how to deploy PostgreSQL database and test read/write operations with Python." />
<LinkCard title="LLM Model Demo" href="/demos/04-llm-model/" description="Learn how to deploy and configure language model applications." />
| <LinkCard title="PostgreSQL Demo" href="/demos/04-postgres/" description="Learn how to deploy PostgreSQL database and test read/write operations with Python." /> | ||
|
|
||
| <LinkCard title="LLM Model Demo" href="/demos/04-llm-model/" description="Learn how to deploy and configure language model applications." /> | ||
| <LinkCard title="LLM Model Demo" href="/demos/05-llm-model/" description="Learn how to deploy and configure language model applications." /> |
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.
The links to other demos appear to be incorrect due to file renumbering. Based on the file structure in this PR, PostgreSQL Demo is at 05-postgres and LLM Model Demo is at 04-llm-model. Please update the href attributes to point to the correct paths.
<LinkCard title="PostgreSQL Demo" href="/demos/05-postgres/" description="Learn how to deploy PostgreSQL database and test read/write operations with Python." />
<LinkCard title="LLM Model Demo" href="/demos/04-llm-model/" description="Learn how to deploy and configure language model applications." />
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
This PR adds a new Virtual Machine demo guide and standardizes demo page titles by removing the " Demo" suffix across all demo documentation files.
- Adds a comprehensive Virtual Machine deployment guide as the first demo
- Removes " Demo" suffix from page titles (e.g., "PostgreSQL Demo" → "PostgreSQL")
- Updates cross-references between demo pages to reflect the new file numbering
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/content/docs/demos/01-virtual-machine.mdx | New comprehensive guide for creating and provisioning Virtual Machines, including cloud-init configuration, service setup, and access instructions |
| src/content/docs/demos/02-coder.mdx | Updates page title to "Coder" and modifies cross-reference links to other demos |
| src/content/docs/demos/03-jupyterhub.mdx | Updates page title to "JupyterHub" and modifies cross-reference links to other demos |
| src/content/docs/demos/04-llm-model.mdx | Updates page title to "LLM Model" for consistency |
| src/content/docs/demos/05-postgres.mdx | Updates page title to "PostgreSQL" for consistency |
Comments suppressed due to low confidence (4)
src/content/docs/demos/02-coder.mdx:68
- This LinkCard has two issues: (1) The href should be
/demos/05-postgres/not/demos/04-postgres/to match the actual filename05-postgres.mdx. (2) The title should be "PostgreSQL" not "PostgreSQL Demo" to match the page title that was changed in this PR.
src/content/docs/demos/02-coder.mdx:70 - This LinkCard has two issues: (1) The href should be
/demos/04-llm-model/not/demos/05-llm-model/to match the actual filename04-llm-model.mdx. (2) The title should be "LLM Model" not "LLM Model Demo" to match the page title that was changed in this PR.
src/content/docs/demos/03-jupyterhub.mdx:73 - This LinkCard has two issues: (1) The href should be
/demos/04-llm-model/not/demos/05-llm-model/to match the actual filename04-llm-model.mdx. (2) The title should be "LLM Model" not "LLM Model Demo" to match the page title that was changed in this PR.
src/content/docs/demos/03-jupyterhub.mdx:71 - This LinkCard has two issues: (1) The href should be
/demos/05-postgres/not/demos/04-postgres/to match the actual filename05-postgres.mdx. (2) The title should be "PostgreSQL" not "PostgreSQL Demo" to match the page title that was changed in this PR.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| Explore other demo applications and services to enhance your infrastructure: | ||
|
|
||
| <LinkCard title="Coder Demo" href="/demos/02-coder/" description="Deploy Coder for cloud-based VS Code IDE environments." /> |
Copilot
AI
Jan 7, 2026
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.
The LinkCard title is inconsistent with the actual page title. Since the page title was changed to "Coder" (without " Demo"), this LinkCard title should also be "Coder" for consistency.
| <LinkCard title="Coder Demo" href="/demos/02-coder/" description="Deploy Coder for cloud-based VS Code IDE environments." /> | |
| <LinkCard title="Coder" href="/demos/02-coder/" description="Deploy Coder for cloud-based VS Code IDE environments." /> |
| expire: false | ||
| ssh_pwauth: true | ||
| ``` | ||
|
|
Copilot
AI
Jan 7, 2026
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.
The cloud-init configuration includes hardcoded credentials with passwordless sudo access. Consider adding a warning similar to the one in the JupyterHub demo (line 53 in 03-jupyterhub.mdx) that recommends changing these credentials for production environments. This is especially important since SSH access is being exposed externally via NodePort.
| <Aside type="warning"> | |
| This example uses hardcoded credentials and passwordless sudo for demonstration purposes only. For any production or externally accessible environment, configure unique strong credentials (or SSH key-based authentication), restrict or remove passwordless sudo, and review SSH exposure (for example, NodePort access) to meet your security requirements. | |
| </Aside> |
|
|
||
| <LinkCard title="Coder Demo" href="/demos/02-coder/" description="Deploy Coder for cloud-based VS Code IDE environments." /> | ||
|
|
||
| <LinkCard title="JupyterHub Demo" href="/demos/03-jupyterhub/" description="Learn how to deploy JupyterHub for collaborative Jupyter notebook environments." /> |
Copilot
AI
Jan 7, 2026
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.
The LinkCard title is inconsistent with the actual page title. Since the page title was changed to "JupyterHub" (without " Demo"), this LinkCard title should also be "JupyterHub" for consistency.
| <LinkCard title="JupyterHub Demo" href="/demos/03-jupyterhub/" description="Learn how to deploy JupyterHub for collaborative Jupyter notebook environments." /> | |
| <LinkCard title="JupyterHub" href="/demos/03-jupyterhub/" description="Learn how to deploy JupyterHub for collaborative Jupyter notebook environments." /> |
No description provided.