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
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
@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
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 -yYou 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@t1279k Can you please contact Atlassian Support to debug this further?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.