- curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
- sudo apt-get install jq
- unzip awscli-bundle.zip
- ./awscli-bundle/install -b ~/bin/aws
- export PATH=~/bin:$PATH
I'm trying to follow this document: https://confluence.atlassian.com/bitbucket/deploy-to-amazon-ecs-892623902.html
to create a pipeline to make CD/CI to ECS but it returns an error saying:
bash: sudo: command not found
currently I'm using this image: image: atlassian/default-image:2
Is there an image I can use instead that has sudo command?
Hey Kaveh,
if you’re already logged in as the root user then you don’t need to use sudo, just start at the apt-get part
CCM
Hey Craig,
The bitbucket pipeline still a bit not clear, First I don't know where the container are created, Are they created on the bitbucket server?
And how can I know if I'm logged in as the root user?
I removed the sudo as you said now it complains that:
E: Unable to locate package jq
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The command "whoami" will tell you about your login.
The "apt-get install jq" means it wants to install a JSON parsing tool on the system you are running on. Problem is that your system does not have that package in its current repository lists. You'll need to read up on how to add a repository for it to your particular system (or install it from a different place)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.