Add support for `.service` file
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start with manage_apps.py and deploy.sh, tracing the existing APP and METHOD environment-variable flow. Review the proposed SERVICEFILEPATH handling and connection.serviceExists checks, then follow how deploy.sh invokes manage_apps.py. Done means a .service file is recognized during deploy previews and the described service checks and creation flow works for applications needing services such as Redis or Postgres.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
For applications which require services like Redis or Postgres, a standard file (probably .service) would be useful to recognize and automatically spin up those services for the app. This is especially useful as part of the deploy preview, which would be frustrating to use for now for apps which depend on those resources.
We can accomplish this with logic along the lines of:
SERVICE_FILEPATH = os.environ.get("SERVICEFILEPATH")
METHOD = os.environ.get("METHOD")
if SERVICE_FILEPATH:
with open(SERVICE_FILEPATH, 'r') as svc_file:
service_configs = json.load(svc_file)
if not isinstance(service_configs, list):
service_configs = [service_configs]
if METHOD == "CHECKSVC":
for service in service_configs:
push = "false" if connection.serviceExists(APP, service['type']) else "true"
if push == "true":
print(push)
in manage_apps.py and logic along the lines of:
# Check if service needs to be created
if [[ -f "$APPS_DIR/$APP/.service" ]]; then
service_file="$APPS_DIR/$APP/.service"
create_svc=true
fi
if [[ "$create_svc" == "true" ]]; then
APP=$with_suffix METHOD="CREATESVC" SERVICEFILEPATH=$service_file python ./manage_apps.py
fi
in deploy.sh.
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 4
- Fork
- 3
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di plotly/de-deploy
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
-
enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
-
Support multiple instances Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Add support for DE4 Aperta
Tutte le issue di plotly/de-deploy
Issue simili
-
kind/bug needs-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
matrixorigin/matrixone#29223 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
copse-dev/agent-pane#2953 ·
-
bug ci-failure high priority
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
vllm-project/vllm-omni#7972 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
simonw/sqlite-utils#872 ·
-
bug good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
amponce/archive-movie-browser#166 ·