lean live deploy skips the localhost host rewrite and symbol map mount for brokerage settings
Los mantenedores suelen responder en 6 días
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
Línea de trabajo
Start with lean/components/docker/lean_runner.py, reading get_basic_docker_config and _mount_common_directories to understand how the existing top-level settings are handled. Compare those paths with the selected environment settings used by lean live deploy; done means the environment's localhost host is rewritten and its symbol map file is mounted.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Expected Behavior
lean live deploy with the Terminal Link brokerage (renamed to Quant Bridge in #685) rewrites a localhost / 127.0.0.1 server host to host.docker.internal. It also mounts the symbol map file from data/symbol-properties. lean data download and lean backtest already do both.
Actual Behavior
For lean live deploy neither happens. The Lean container gets "terminal-link-server-host": "localhost", so it can't reach a server running on the user's machine. The symbol map file isn't mounted either, and terminal-link-symbol-map-file keeps its relative value.
LeanRunner only checks the top level of the Lean config (lean/components/docker/lean_runner.py: the server host loop in get_basic_docker_config and files_to_mount in _mount_common_directories). lean live deploy writes the brokerage and live data provider settings into lean_config["environments"][<environment>] instead, so the checks never find them.
Potential Solution
Apply the host rewrite and the file mounts to the selected environment's entries as well as the top-level ones.
Reproducing the Problem
lean live deploy "<project>" --brokerage "Terminal Link" --data-provider-live "Terminal Link" --terminal-link-server-host localhost ...(with all the other required--terminal-link-*options)- Look at the config passed to the container:
environments["lean-cli"]["terminal-link-server-host"]is stilllocalhost, and onlyconfig.jsonis mounted. - For comparison,
lean data download --data-provider-historical "Terminal Link" ... --terminal-link-server-host localhostpasseshost.docker.internaland mounts/Files/terminal-link-symbol-map-file.
System Information
lean-cli master (1873571).
Checklist
- I have completely filled out this template
- I have confirmed that this issue exists on the current
masterbranch - I have confirmed that this is not a duplicate issue by searching issues
- Lenguaje dominante
- Python
- Estrellas
- 329
- Forks
- 169
- Merge medio
- 4 d 18 h
- PR fusionados (30 d)
- 9
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 QuantConnect/lean-cli
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
QuantConnect/lean-cli#692 ·
Los mantenedores suelen responder en 6 días
-
cloud pull --encrypt leaves the project without its key path and encrypts referenced librariesPosiblemente ocupada @Amadeus-22 la tomó hace 1 día. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
QuantConnect/lean-cli#688 ·
Los mantenedores suelen responder en 6 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
QuantConnect/lean-cli#681 ·
Los mantenedores suelen responder en 6 días
-
lean cloud push overwrites read-only shared library filesPosiblemente ocupada @Amadeus-22 la tomó hace 1 día. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
QuantConnect/lean-cli#661 · 2 comentarios ·
Los mantenedores suelen responder en 6 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
QuantConnect/lean-cli#619 ·
Los mantenedores suelen responder en 6 días
Todos los issues de QuantConnect/lean-cli
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
weecology/DeepForest#1445 ·
-
agent-ready priority: medium status: ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
melodic-software/claude-code-plugins#11864 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
PolicyEngine/policyengine-uk#2785 ·
Los mantenedores suelen responder en 2 días
-
correction metadata
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
acl-org/acl-anthology#10724 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
use-agent-os/agent-os#3739 ·
Los mantenedores suelen responder en 1 día