Docker image with a registry port cannot be parsed
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 45/100
Direção de pesquisa
Start at DockerImage.parse in lean/models/docker.py and reproduce the two failing cases from the issue. The rule is to treat only a final colon segment without / as the tag; add cases covering registry ports and tags to the existing DockerImage parse tests (look under tests/) so both parse and error paths are covered. Note that linked PR #670 is already open against this issue, so confirm with maintainers before starting.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Expected Behavior
An image hosted on a registry that listens on a port, for example localhost:5000/lean or registry.example.com:5000/quantconnect/lean:123, can be used with --image and with lean config set engine-image / research-image.
Actual Behavior
DockerImage.parse splits on every colon, so the registry port is read as the tag:
localhost:5000/lean -> DockerImage(name='localhost', tag='5000/lean')
localhost:5000/lean:latest -> ValueError: too many values to unpack (expected 2)
Potential Solution
Only treat what follows the last colon as the tag, and only when it does not contain a /. I can open a PR with the fix and tests.
Reproducing the Problem
from lean.models.docker import DockerImage
DockerImage.parse("localhost:5000/lean")
DockerImage.parse("localhost:5000/lean:latest")
System Information
lean-cli master at 20e58aa, Python 3.13, Linux.
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
- Linguagem predominante
- Python
- Estrelas
- 327
- Forks
- 169
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de QuantConnect/lean-cli
-
project-create generates an invalid class name when the project name starts with a digitTalvez já em andamento @Amadeus-22 assumiu há 1 dia. Aberta
Dificuldade 2/5 Menos de uma hora Facilidade para iniciantes 40/100
QuantConnect/lean-cli#673 ·
-
lean cloud live deploy --notify-webhooks fails when the address is a URLTalvez já em andamento @Amadeus-22 assumiu há 1 dia. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 48/100
QuantConnect/lean-cli#671 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
QuantConnect/lean-cli#661 · 1 comentário ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
QuantConnect/lean-cli#619 ·
-
Implements AutocompleteTalvez livre de novo @shreejaykurhade assumiu há 194 dias e não há nenhum pull request aberto. Abertafeature
QuantConnect/lean-cli#602 · 6 comentários · 3 reações · 1 responsável ·
Todas as issues de QuantConnect/lean-cli
Issues semelhantes
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
epam/ai-dial-quickapps-backend#628 ·
Mantenedores costumam responder em até 2 dias
-
0xlau.dev 已失效,切换成 timlau.meAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 69/100
timqian/chinese-independent-blogs#2235 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
eclipse-score/coverage_tool#27 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
bojieli/ai-agent-book#1174 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
RedHatQE/mtv-api-tests#721 ·
Mantenedores costumam responder em até 1 dia