Generate a set of pre-configured scripts
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 28/100
Línea de trabajo
Comienza con el flujo de bootstrap basado en plantillas y el punto de entrada existente harness-generate; después, revisa cómo se representan los tipos de aplicación y las sobrescrituras del usuario. Revisa las expectativas para el README.md del proyecto generado. Se debe definir como terminado lo relativo a la generación de scripts, conservando los scripts existentes y documentando cómo se ejecutan los comandos de frontend o backend generados.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 19
- Forks
- 5
- Merge medio
- 11 d 20 h
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de MetaCell/cloud-harness
-
When using a custom image for on_exit_notify of a workflow queue and payload should not be mandatoryAbiertogood first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
MetaCell/cloud-harness#801 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 10/100
MetaCell/cloud-harness#781 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 32/100
MetaCell/cloud-harness#709 ·
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
MetaCell/cloud-harness#706 · 1 comentario ·
-
Application env specification should be a map, not listPosiblemente ocupada @eastagiletracker la tomó hace 15 días. Abiertoenhancement good first issue scope:deployment
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
MetaCell/cloud-harness#705 ·
Todos los issues de MetaCell/cloud-harness
Issues similares
-
customer-reported question
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Azure/azure-sdk-for-python#49548 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
btclib-org/btclib-wallet#409 ·
Los mantenedores suelen responder en 1 día
-
Phase 2 PSA Capability & Career Profile
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
bcgov/digital-journeys#2310 ·
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
fastmachinelearning/hls4ml#1582 ·
Los mantenedores suelen responder en 3 días
-
Sort modelsAbiertoenhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día