'Strange Output in Alpine Docker Image - AWS CLI
I've created a Dockerfile that will be used to run some AWS CLI commands in a CI/CD environment. The Dockerfile is Alpine based and looks like this:
FROM frolvlad/alpine-glibc:alpine-3.14
ENV AWS_CLI_VER=2.4.5
RUN apk update && apk add --no-cache bash curl zip && \
curl -s https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${AWS_CLI_VER}.zip -o awscliv2.zip && \
unzip awscliv2.zip && ./aws/install && rm awscliv2.zip
When I run an AWS CLI command (aws cloudformation create-stack), it works successfully, but I'm getting weird output in the console, looks like this:
"StackId": "arn:aws:cloudformation:us-east-1:525606957925:stack/SearchAPI-bsd-sales-salesx-dev/3ec182f0-a243-11eb-92b1-0e89978ed963"
}
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
The output I'm expecting is displayed at the top but cut off due to all the repeating '~'. Seems to be related to the AWS CLI command as it's the only time it seems to happen, but I'm not sure if this is an Alpine/Linux terminal issue I need to configure further. I'm a Linux noob, so any help is appreciated.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
