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

This widget could not be displayed.

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
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,291 views 8 11
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