【问题标题】:Error whenn installing awsebcli via Gitlab CLI通过 Gitlab CLI 安装 awsebcli 时出错
【发布时间】:2019-06-27 10:19:08
【问题描述】:

我在 gitlab 中有 springboot 项目,我尝试将其部署到我通过 Amazon Web 控制台创建的 Amazon Elastic Beanstalk 环境中。

在 gitlab 中,我使用的是默认共享 Runners。

要部署到 AWS,我必须使用 'eb' cli,为此我还需要 python

我厌倦了在我的.gitlab-ci.yml 中使用它

deploy:
 stage: deploy
 image: python:3.7.2-alpine3.7
 script:  
  - pip install -r awsebcli
  - eb use myenv-env -v
  - eb deploy myenv-env -v

但出现错误:

Pulling docker image python:3.7.2-alpine3.7 ...
Using docker image sha256:00be2573e9f79754b17954ba7a310a5f70c25b6f5bb78375e27e9e86d874877e for python:3.7.2-alpine3.7 ...
Running on runner-0c303413-project-4590-concurrent-0 via ed06f0845ef4...
Fetching changes...
Removing .m2/
Removing target/
HEAD is now at 5c19020 aws1
Checking out 5c190200 as master...
Skipping Git submodules setup
Checking cache for default...
Successfully extracted cache
Downloading artifacts for build (14719)...
Downloading artifacts from coordinator... ok        id=14719 responseStatus=200 OK token=Yy7j2TGy
$ pip install -r awsebcli
Could not open requirements file: [Errno 2] No such file or directory: 'awsebcli'
ERROR: Job failed: exit code 1

更新

当我把线改成:

pip3 install awsebcli

得到:

Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fe6611ff2e8>: Failed to establish a new connection: [Errno -2] Name does not resolve')': /simple/awsebcli/
  Could not find a version that satisfies the requirement awsebcli (from versions: )
No matching distribution found for awsebcli

【问题讨论】:

    标签: amazon-web-services spring-boot gitlab gitlab-ci amazon-elastic-beanstalk


    【解决方案1】:

    问题是代理。

    我添加了这个:

    pip3 --proxy=myProxy:myPort 安装 awsebcli --upgrade

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多