Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,637
Community Members
 
Community Events
176
Community Groups

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

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

@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

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.

0 votes

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

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events