From 348e3c8b613d809874526889e0805df8b58069d0 Mon Sep 17 00:00:00 2001 From: Tung Bui Date: Thu, 29 Feb 2024 20:02:51 +0700 Subject: [PATCH 1/2] core: add aws cli to toolkit --- scripts/check_version_in_toolkit.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/check_version_in_toolkit.sh b/scripts/check_version_in_toolkit.sh index 428df09..768e6eb 100644 --- a/scripts/check_version_in_toolkit.sh +++ b/scripts/check_version_in_toolkit.sh @@ -9,6 +9,7 @@ declare -A tools=( [terraform]="1.7.4" [kubectl]="1.29.2" [helm]="3.14.2" + [aws]="2.15.24" # Add more tools as needed ) From 03a53172470d28540846f3805065a3d974f2b2af Mon Sep 17 00:00:00 2001 From: Tung Bui Date: Thu, 29 Feb 2024 20:03:43 +0700 Subject: [PATCH 2/2] core: add aws cli to toolkit --- Dockerfile | 9 +++++++++ README.md | 10 +++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4a648a8..ab3fc8e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -87,6 +87,15 @@ RUN mkdir /tmp/helm_env/ && \ mv linux-amd64/helm /usr/local/bin/helm && \ rm helm-v${HELM_VERSION}-linux-amd64.tar.gz +# Install AwsCLI +ARG AWSCLI_VERSION=2.15.24 +RUN mkdir /tmp/awscli_env/ && \ + cd /tmp/awscli_env/ && \ + wget "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${AWSCLI_VERSION}.zip" && \ + unzip awscli-exe-linux-x86_64-${AWSCLI_VERSION}.zip && \ + ./aws/install && \ + rm awscli-exe-linux-x86_64-${AWSCLI_VERSION}.zip + # Cleanup RUN apt-get clean && \ rm -rf /var/lib/apt/lists/* diff --git a/README.md b/README.md index 10f2507..e7fdc2a 100644 --- a/README.md +++ b/README.md @@ -45,11 +45,19 @@ Before you begin, make sure you have [Docker](https://docs.docker.com/engine/ins docker run --rm devops-toolkit python3 --version ``` - + ## Use the image from Docker Hub - To be implemented +## Test the image +- Run +```bash +cd scripts +chmod +x check_version_in_toolkit.sh +.check_version_in_toolkit.sh devops-toolkit +``` + ## Contributing - See: [CONTRIBUTING.md](./CONTRIBUTING.md)