Skip to content

Comfyui #814

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 12 commits into
base: main
Choose a base branch
from
Open

Comfyui #814

wants to merge 12 commits into from

Conversation

jdacode
Copy link

@jdacode jdacode commented Aug 19, 2025

🛑 New scripts must first be submitted to ProxmoxVED for testing.
PRs for new scripts that skip this process will be closed.


✍️ Description

Adds ComfyUI LXC Script

🔗 Related PR / Issue

Link: community-scripts/ProxmoxVE#3915

✅ Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No breaking changes – Existing functionality remains intact.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

🔍 Code & Security Review (X in brackets)

  • Follows Code_Audit.md & CONTRIBUTING.md guidelines
  • Uses correct script structure (AppName.sh, AppName-install.sh, AppName.json)
  • No hardcoded credentials

📋 Additional Information (optional)

@jdacode jdacode requested review from a team as code owners August 19, 2025 05:38
@MickLesk
Copy link
Member

Stick to the guidelines of other scripts. Not a single one has split everything into subfunctions.

We have many helper functions that simply remove many lines. Take a look at the current scripts in the live repo. It's not worth evaluating the script here, as I would basically have to criticize every line of intall.sh.

@jdacode
Copy link
Author

jdacode commented Aug 19, 2025

Thanks MickLesk for your prompt response. I'm happy to reduce the script. I couldn’t find anything in the guidelines about avoiding subfunctions, just curious if there's a specific reason for not using them?. Also, is there a maximum line count limit we should follow?

@CrazyWolf13
Copy link
Member

@jdacode please follow the guidelines like everyone else does: https://github.com/community-scripts/ProxmoxVE/wiki/CONTRIBUTING

We want our scripts to follow the standarts so it's easier to maintain them.

@jdacode
Copy link
Author

jdacode commented Aug 19, 2025

Yeah, very sorry about that

@jdacode
Copy link
Author

jdacode commented Aug 19, 2025

I did some changes, happy to make more if needed 🙂

@jdacode
Copy link
Author

jdacode commented Aug 20, 2025

Do you guys accept dynamic variables in the install.sh script, such as:

python_version_uv=${python_version_uv:-3.12}

So this allows users to modify installation parameters

@tremor021
Copy link
Member

Remove all comments except header ones

@MickLesk
Copy link
Member

Do you guys accept dynamic variables in the install.sh script, such as:

python_version_uv=${python_version_uv:-3.12}

So this allows users to modify installation parameters

In the current Case the most of this will be ignored, because install.sh is an subshell execution inside the lxc

@jdacode
Copy link
Author

jdacode commented Aug 21, 2025

I made some changes to the code:

  • Removed the comments
  • Added the fetch_and_deploy_gh_release function
  • Ensured it only uses the latest version

@MickLesk thanks for responding. I was referring more to the case where users want to modify some parameters before bash command, for example:

comfyui_python_version_uv="3.12" bash -c "$(curl -fsSL https://.../ct/comfyui.sh)"

I think this is super useful. However, I'm happy to remove the dynamic variables from the script if you guys want

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.

4 participants