aws-code-deploy - AWS CodedePloy 管道示例存储库 : "bash: zip: command not found"

标签 aws-code-deploy bitbucket-pipelines

我试图跟随 Deploy to AWS with CodeDeploy说明

并使用了 bitbucket-pipelines.yml

但是我收到了这个错误:

cd app && zip -r ../myapp.zip *

+ cd app && zip -r ../myapp.zip *
bash: zip: command not found

我能做些什么吗?

最佳答案

在示例存储库中,docker 镜像在 bitbucket-pipelines.yml 中配置为 atlassian/default-image:2|

image: atlassian/default-image:2

如果您使用另一个 docker 镜像来运行管道,zip CLI 可能会丢失,您需要自行安装。

关于aws-code-deploy - AWS CodedePloy 管道示例存储库 : "bash: zip: command not found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59189156/

相关文章:

amazon-web-services - 由于错误 "install",使用 CodeDeploy 部署在 "File already exists"步骤失败

amazon-web-services - AWS CodePipeline 仅部署自上次部署以来已更改的文件,而不是简单地替换应用程序

kubernetes - 为Kubernetes命名空间设置部署锁定?

Python Azure Functions 和 Bitbucket Pipelines - 如何压缩需求?

amazon-web-services - Bitbucket CI/CD 管道 - 使用 Elastic Beanstalk 部署到 AWS

symfony - 在管道中编辑 env 文件

aws-code-deploy - 使用 Amazon CodeDeploy 重启应用程序

java - 在 CodeDeploy 中访问 CodeBuild 运行时

amazon-web-services - AWS Codedeploy BlockTraffic/AllowTraffic 持续时间

google-app-engine - Bitbucket Pipeline Deploy 问题到 Google App Engine