Giter Site home page Giter Site logo

elc's People

Contributors

madridianfox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

elc's Issues

Ошибка interface conversion int is not string

Замечено, что числа в значении переменных могут вызывать ошибку. Например USER_ID: 1000

Необходимо:

  1. Обработать ситуацию так чтобы не приходилось каждое число явным образом заключать в кавычки
  2. Доработать сообщение об ошибки обработки переменной так, чтобы было видно с какой именно переменной проблема

image
image

Ошибка скачивания базового образа при сборке образа при старте сервиса

При попытке запустить сервис на чистой машине (WSL), при сборке образа сервиса возникает ошибка скачивания базового образа.

[+] Building 3.6s (4/4) FINISHED
=> [internal] load build definition from Dockerfile
0.5s  => => transferring dockerfile: 32B
0.0s  => [internal] load .dockerignore
0.8s  => => transferring context: 2B
0.0s  => [internal] load metadata for dockerhub.greensight.ru/ensi-tech/php-base-image:8.1-task-83916-2021jan28-1-swoole
0.0s  => ERROR [internal] load metadata for docker.io/library/composer:2.3
2.3s 
------
> [internal] load metadata for docker.io/library/composer:2.3:
------
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: 
failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exec: 
"docker-credential-desktop.exe": executable file not found in $PATH, out:                                                                                                                                                                                                      exit status 17

Не выбирается автоматически первый добавленный воркспейс

Устанавливая elc в первый раз разработчики часто жалуются на то что при попытке работать в воркспейсе
возвращается ошибка current workspace is bad. Вероятно сломался или был намеренно убран механизм автовыбора текущего воркспейса при добавлении самого первого воркспейса.
Необходимо починить.

Неправильно определяется текущий сервис

Если в воркспейсе зарегистрированы два сервиса и название первого полностью вхолдит в название второго,
то автоопределение сервиса по текущей папке может выдавать неверный результат.
Например

  • customers
  • customers-api
    когда мы находимся в папке /path/to/apps/customers, elc start может запустить сервис customers-api

ELC не может вызвать com.docker.cli

В окружениях где докер работает не нативно (WSL, Mac) ELC не может запустить контейнер, ссылаясь на то что com.docker.cli not found in PATH.
Воспроизводится не во всех окружениях.

Выполнение git хуков падает с ошибкой про TTY

Окружение: windows 10, WSL2, Ubuntu 20.04, Docker desktop.
При попытке сделать коммит падает хук.
Падает с такой ошибкой

Run hook in ELC
the input device is not a TTY
exit status 1

Ошибка появилась после обновления Docker Desktop до версии 4.8.2

elc start --tag когда нет сервиса

Скрипт падает капитально, если сервис не склонирован. Надо сделать чтобы выводилось предупреждение и переходить к следующему сервису

Please make sure you have the correct access rights and the repository exists. Error: exit status 128

elc clone catalog-pim orders-oms
Error: yaml: line 3: did not find expected key
root@2247487-altawest75:~/work/ensi/workspace# nano
root@2247487-altawest75:~/work/ensi/workspace# nano env.yaml 
root@2247487-altawest75:~/work/ensi/workspace# nano env.yaml 
root@2247487-altawest75:~/work/ensi/workspace# elc clone catalog-pim orders-oms
# component: catalog-pim
Cloning into '/root/work/ensi/workspace/../apps/catalog/pim'...
The authenticity of host 'gitlab.com (2606:4700:90:0:f22e:fbec:5bed:a9b9)' can't be established.
ED25519 key fingerprint is SHA256:eUXGGm1YGsMAS7vkcx6JOJdOGHPem5gQp4taiCfCLB8.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? ^C
root@2247487-altawest75:~/work/ensi/workspace# elc clone --tag=code
# component: crm-client-php
Cloning into '/root/work/ensi/workspace/../packages/crm-client-php'...
The authenticity of host 'gitlab.com (2606:4700:90:0:f22e:fbec:5bed:a9b9)' can't be established.
ED25519 key fingerprint is SHA256:eUXGGm1YGsMAS7vkcx6JOJdOGHPem5gQp4taiCfCLB8.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'gitlab.com' (ED25519) to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Error: exit status 128
# component: logistic-logistic
Cloning into '/root/work/ensi/workspace/../apps/logistic/logistic'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Error: exit status 128
# component: admin-gui-frontend
Cloning into '/root/work/ensi/workspace/../apps/admin-gui/admin-gui-frontend'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Error: exit status 128
# component: cms-client-php
Cloning into '/root/work/ensi/workspace/../packages/cms-client-php'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Error: exit status 128
# component: seller-gui-backend
Cloning into '/root/work/ensi/workspace/../apps/seller-gui/seller-gui-backend'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Error: exit status 128

elc workspace без params

Если ввести elc workspace не указав параметров, то получим panic:

panic: runtime error: index out of range [2] with length 2

goroutine 1 [running]:
main.main()
        /home/madridianfox/work/ensi/runtime/elc-go/main.go:53 +0x237e

Нет команды для удаления воркспейса

Не хватает команды для удаления воркспейса, поэтому приходится ручками удалять его из конфига .elc.yaml

Предлагаю сделать что-то вроде elc workspace delete *name* для удаления воркспейса

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.