Skip to content

Instantly share code, notes, and snippets.

@alisonmonteiro
Created December 12, 2019 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alisonmonteiro/af4b3fe50c118945c5f36d3715f99c62 to your computer and use it in GitHub Desktop.
Save alisonmonteiro/af4b3fe50c118945c5f36d3715f99c62 to your computer and use it in GitHub Desktop.
create docker image with ecs-cli-v2 installed
FROM docker:19.03
RUN apk add --update \
bash \
git \
openssh \
python \
python-dev \
py-pip \
build-base \
&& pip install virtualenv \
&& rm -rf /var/cache/apk/*
COPY ./local/ecs-preview-amd64 /usr/local/bin/ecs
CMD ["ecs"]
build:
git clone https://github.com/aws/amazon-ecs-cli-v2
docker build -t aws/amazon-ecs-cli-v2 amazon-ecs-cli-v2
docker create -ti --name amazon-ecs-cli-v2-builder aws/amazon-ecs-cli-v2
docker cp amazon-ecs-cli-v2-builder:/aws-amazon-ecs-cli-v2/bin/local/ .
chmod +x ./local/ecs-preview-amd64
docker build .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment