Yevgeniy Afanasyev
Yevgeniy Afanasyev

Reputation: 41360

AWS CodePloy pipe example repository : "bash: zip: command not found"

I tried to follow the Deploy to AWS with CodeDeploy instruction

and used the bitbucket-pipelines.yml

But I'm getting this error:

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

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

Can I do anything about it?

Upvotes: 3

Views: 1460

Answers (2)

Alexander Zhukov
Alexander Zhukov

Reputation: 4547

In the example repository the docker image is configured to atlassian/default-image:2 in the bitbucket-pipelines.yml

image: atlassian/default-image:2

If you use another docker image to run the pipeline, the zip CLI can be missing and you'll need to install it yourself.

Upvotes: 2

Yevgeniy Afanasyev
Yevgeniy Afanasyev

Reputation: 41360

Add this to your bitbucket-pipelines.yml

- apt-get update
- apt-get install -y zip

right before the

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

Upvotes: 2

Related Questions