What are the requirements of pipeline service images?

My specific situation is that I have a bitbucket pipelines file that uses an AWS-CLI docker image as a service container. My pipeline step script runs `aws` commands to set some configurations before running an AWS S3 sync of files generated on the main container to a specified endpoint in S3. The problem is that I end up with the following error:

bash: aws: command not found

I defined the service definition to use the `xueshanf/awscli` image. Am I simply using the wrong one, or do I need to pass additional Docker run options in the pipeline file? I didn't see any options for that in the documentation.

1 answer

I'm thinking I misunderstood how Docker works in this context. I was under the assumption that it would expose the `aws` command to the main container. It seems as though it doesn't do that, and I can't use

docker run ...

since that is unsupported.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,758 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you