I'm running into an issue with a custom Docker image. I've installed a number of tools and all seem to be working except for the AWSCLI.
I install here:
RUN apt-get install -y \
python \
python-pip \
groff \
less \
mime-support \
&& \
pip install --upgrade awscli==1.14.5 s3cmd==2.0.1 python-magic && \
apt-get -v del python-pip && \
rm -rf /var/cache/apt/*
VOLUME /root/.aws
Which installs successfully, I even ran aws --version to confirm no errors. Then when running in .gitlab-ci.yml aws is not recognized but my other tools are.
Here is the command I'm running:
aws ec2 describe-instances --filters "Name=tag:Project,Values=" --region us-east-2 --query "Reservations[].Instances[].[PrivateIpAddress]" --output=text
This is the error I get:
/bin/sh: eval: line 132: aws: not found