Created
December 12, 2019 12:19
-
-
Save alisonmonteiro/af4b3fe50c118945c5f36d3715f99c62 to your computer and use it in GitHub Desktop.
create docker image with ecs-cli-v2 installed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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