How to get all three services to work docker nodejs and aws-cli in one step

t1279k April 18, 2021

I would like to have 3 services running docker, nodejs, aws cli. As you see below under the definition section I have mentioned the image I want to run a specific versions. When I run the below pipeline I get error. But no error message

Please let me know if I am using it wrong

 

bitbucket_error.png

 

image:
name: atlassian/default-image:2

definitions:
services:
nodejs:
image: node:10.17.0
aws-cli:
image: amazon/aws-cli
steps:
- step: &group-deploy-to-ecs2
name: Group-Deploy-ECS
services:
- docker
- nodejs
- aws-cli
script:
- echo "test"
- node --version
- docker --version
- aws --version

pipelines:
branches:
master:
- step:
<<: *group-deploy-to-ecs2
name: deploy-common-api-dev
deployment: common-api-dev

 

2 answers

0 votes
Tomáš Ligenza March 14, 2022

@Justin Thomas Can you please provide more information how to solve this issue? I have the same problem right now with pipeline:

definitions:
services:
aws-cli:
image: amazon/aws-cli
pipelines:
branches:
development:
- step:
name: Build and push Docker image
image: atlassian/default-image:3
caches:
- node
services:
- docker
- aws-cli
script:
- node --version
- docker --version
- aws --version

Screenshot from 2022-03-14 14-13-29.png

Tomáš Ligenza March 16, 2022

Information provided by Atlassian Support:

I've tested the same service defintiion(amazon/aws-cli) on my repository. It appears that the entrypoint for this image is the awscli executable itself and it is expecting us to pass a command to it which is why the build is failing without any logs.

Instead, please use the below commands to install aws in the image directly.

apt-get update -y && apt-get install awscli -y

You can also install these commands in the default atlassian image, push it to the docker hub as public image and then use it as a service container. I hope this helps. Please let me know if you have any further questions.

Like Darvesh likes this
Darvesh July 28, 2023

Thank you.

Like Tomáš Ligenza likes this
0 votes
Justin Thomas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 3, 2021

@t1279k Can you please contact Atlassian Support to debug this further?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events