Generate a set of pre-configured scripts
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 28/100
Hướng nghiên cứu
Bắt đầu với luồng bootstrap dựa trên template và entry point harness-generate hiện có, sau đó kiểm tra cách các loại ứng dụng và các ghi đè của người dùng được biểu diễn. Xem lại các yêu cầu đối với README.md của project được tạo. Cần xác định tiêu chí hoàn thành cho việc tạo script, giữ nguyên các script hiện có và ghi lại cách chạy các lệnh frontend hoặc backend được tạo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Currently, cloud-harness is using a template-based file/folder hierarchie to bootstrap an application in a project. The problem is that, we still need to remember or have complex command lines that needs to be written by hand if we want, for example, to run the backend in local. For a flask + fastapi application, we need to remember to run uvicorn, what are the env var we need to pass on the command line. Usually, this is manually written in a README file somewhere on the project repo, but it can be an information sometimes complicated to find back, if written in the first place.
I wonder if it wouldn't be possible to generate some scripts, perhaps 1 by application that could just wrap the command line that needs to be passed on the cli to run the application:
- for something identified as a frontend application, a
run-{name-of-the-frontend-app}.bashfile that would just run ayarn install && yarn devor more elaborated strategy - for something identified as a django/python backend application, a
run-{name-of-the-backend-app}.bashfile that would just runCH_CURRENT_APP_NAME={name-of-the-app} CH_VALUES_PATH=deployment/helm/values.yaml {other-app-depepden-env-var} uvicorn --host 0.0.0.0 --port 8000 main:app - for complex setup where port-forwarding is also required to make the local backend communicate with the deployed db, perhaps some scripts. This could be integrated to the bash file running the backend by also providing a set of defaults options/flags to pass to the command line to target the remote db (if applicable).
The generation strategy would consider that if the script doesn't exists, it generates it, but if it does exist, it is not. The idea is to let the user being able to override those files if required (e.g: refine the command use to run the frontend, or modify some env vars)
If we push a little bit this idea, we could also generate files that generates the backend and frontend binding from an openapi specification. This is currently done by harness-generate, and even if it works well for cloud harness project that uses directly openapi specification, it doesn't work well if we use django-ninja for example, or any other kind of not-yet-supported stack. Generating a bash script for the application which is based on its type (this generated script could be part of the application template) would allow us to have a flexible way to accomodate for future evolutions without having to drastically change cloud-harness, only the templates while being flexible as we would be able to modify those scripts for each applications if we really need it.
Having those scripts generated would also allows us to generate a part of the README.md with instructions about how to run the project in a very agnostic way
- Ngôn ngữ chính
- Python
- Star
- 19
- Fork
- 5
- Merge trung bình
- 11 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MetaCell/cloud-harness
-
When using a custom image for on_exit_notify of a workflow queue and payload should not be mandatoryĐang mởgood first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
MetaCell/cloud-harness#801 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
MetaCell/cloud-harness#781 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 32/100
MetaCell/cloud-harness#709 ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
MetaCell/cloud-harness#706 · 1 bình luận ·
-
Application env specification should be a map, not listCó thể đã có người làm @eastagiletracker đã nhận 10 ngày trước. Đang mởenhancement good first issue scope:deployment
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
MetaCell/cloud-harness#705 ·
Tất cả issue của MetaCell/cloud-harness
Issue tương tự
-
enhancement good first issue Stellar Wave trivial
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
StellarCanary/ProtocolCanary-Fixtures#258 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
github_actions
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Hochfrequenz/aibap.mcp#578 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
mishraprafful/multihull#150 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
mp: /status reports the server class name as engine_type, not the configured engineCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
python-caldav/caldav#735 ·
Maintainer thường phản hồi trong vòng 1 ngày